> "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 speed-up, and the operator does not see each control
> refreshing, then another, then another"
>
> The tip below that about moving OCXs (like treeviews) offsite is a
> pretty good one too, although I don't use OCXs so it really doesn't
> affect me.
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
This.LockScreen = .T.
ELSE
LockWindowUpdate(Thisform.hWnd)
ThisForm.LockScreen = .F.
DOEVENTS FORCE
LockWindowUpdate( 0 )
ENDIF
Note that the API function needs to be defined ahead of time:
DECLARE INTEGER LockWindowUpdate IN user32 INTEGER hWndLock
--
Derek
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.