Page 1 of 1

Flick on folder

Posted: Sat May 28, 2022 10:21 pm
by Silvio.Falconi
When changing the folder you notice a flash, how could I avoid it?


Image

Re: Flick on folder

Posted: Sun May 29, 2022 10:54 am
by Antonio Linares
Dear Silvio,

Is it a standard TFolder or a TFolderEx ?

Re: Flick on folder

Posted: Sun May 29, 2022 5:30 pm
by Silvio.Falconi
Standard but I tried Also with folderex

Re: Flick on folder

Posted: Sun May 29, 2022 8:18 pm
by Antonio Linares
Dear Silvio,

Do you use a oFolder:bChange ? If so, please try to set it to nil, so it changes the folder page quicker

Re: Flick on folder

Posted: Sun May 29, 2022 10:48 pm
by Silvio.Falconi
No i not use bchange on folder
I can senso U a test

Re: Flick on folder

Posted: Mon May 30, 2022 12:07 am
by Antonio Linares
Maybe the browsers are complex enough to paint slowly...

Re: Flick on folder

Posted: Mon May 30, 2022 7:39 am
by Silvio.Falconi
Antonio Linares wrote:Maybe the browsers are complex enough to paint slowly...


Not I tried also
the xbrowses are not complex to build
are the same configuration, change only the headers

Re: Flick on folder

Posted: Mon May 30, 2022 10:19 am
by Antonio Linares
Dear Silvio,

Please try this:

Code: Select all | Expand

METHOD SetOption( nOption ) CLASS TFolder

   local nOldOption

   ::BeginPaint()

   if nOption > 0 .and. nOption != ::nOption .and. ::aEnable[ nOption ]
      if ::nOption <= Len( ::aDialogs ) .and. ::nOption != 0 .and. ;
          ::aDialogs[ ::nOption ] != nil
         ::aDialogs[ ::nOption ]:Hide()
      endif
      nOldOption = ::nOption
      ::nOption  = nOption

      if nOption <= Len( ::aDialogs ) .and. ::aDialogs[ nOption ] != nil
         if ::bChange != nil
            Eval( ::bChange, nOption, nOldOption )
         endif
         ::aDialogs[ nOption ]:AEvalWhen()
         ::aDialogs[ nOption ]:Show()
         ::aDialogs[ nOption ]:SetFocus()
      endif
   endif

   if nOption > 0
      PostMessage( ::hWnd, TCM_SETCURSEL, ::nOption - 1 )
      if ! ::aEnable[ nOption ]
         MsgBeep()
      endif
   endif

   ::EndPaint()

return nil

 

Re: Flick on folder

Posted: Mon May 30, 2022 10:49 am
by Silvio.Falconi
sorry,
it's same

Re: Flick on folder

Posted: Tue May 31, 2022 6:32 am
by Silvio.Falconi
Antonio,
do U have found the error ?