At 19:25 2019-05-07, "MB Software Solutions, LLC" mbsoftwaresolutions@mbsoftwaresolutions.com wrote:
On 5/7/2019 8:13 PM, Gene Wirchenko wrote: >     I set .lockscreen to .t. at the beginning of instantiating a form > and back to .f. after the setup. I have not looked at the speed-up > recently, but in my testing years ago, it made about a 20% difference. > >     I do not use it otherwise. > When you say "after the Setup", Gene, what event is that...Show() ?
I misstated some. The following is after a code check.
First of all, at the beginning and end of form .init().
Secondly, I have some display routines where a lot happens (basically, a lot of .enable setting). To avoid flicker, I use .lockscreen there, too.
I use .lockscreen minimally. I am not trying to do tricks to speed up display maximally but rather enough that it works.
My display methods are not .show() -- it has never occurred to me to add code to .show() -- but custom methods. They often call .refresh() indirectly. ("indirectly" because I usually do not directly call methods where there is an event of the same name. I tend to call a method that does that call.)
Sincerely,
Gene Wirchenko