Summary
|
How to force updating of a form or a control within a form event
|
|

|
Login to rate article
|
|
|
|
Solution:
For example changing the ASwitch control Value property will not take effect (in the control area in the form) until you exit the form event.
Use one of the following methods to force painting:
1. Call DoEvent() this will cause events to be handled while the form event is handled. (ATEasy 4.0)
2. Use the control Refresh() method (ATEasy 4.0 build 90 and above).
3. You can use User32.dll UpdateWindow(hwnd) to force painting (hwnd is the control.hWnd property).
|
|
Article Date
|
10/31/2002
|
Keywords
|
ATEasy, AControl.Refresh(), DoEvents()
|
|
|
|
|