Re: VFP tip: thisform.Lockscreen

2007-02-20 Thread Derek Kalweit
LockScreen speeds native VFP updates* --*- set THISFORM.LockScreen True before updating or refreshing the form, then LockScreen False when all changes are completed. FoxPro repaints the screen once instead of many times, actually speeding up the application. This also provides a psychological

Re: VFP tip: thisform.Lockscreen

2007-02-20 Thread MB Software Solutions
Derek Kalweit wrote: And if your LockScreen=.F. commands are causing flashy updates(particularly image controls with alpha channels), here's a work-around for that too. Create a Lockscreen_assign method, and use this code: LPARAMETERS tlNewLockScreen IF tlNewLockScreen Then

Re: VFP tip: thisform.Lockscreen

2007-02-20 Thread Derek Kalweit
Note that the API function needs to be defined ahead of time: DECLARE INTEGER LockWindowUpdate IN user32 INTEGER hWndLock Cool! What's your preference of where you'd declare that? I declared it in load event of the one form I had to implement this in, as init wasn't soon enough. It might

VFP tip: thisform.Lockscreen

2007-02-19 Thread MB Software Solutions
Many already know this, but for some who may not, I stumbled across Ted's whitepaper notes from DevCon '04 that gives tips on improving performance (or at least perceived performance) while searching for issues with multiple, nested LockScreens.