Changing ATEasy control properties that affect the control window area does not take effect until you return from the form/control event

Knowledge Base Article # Q200040

Read Prior Article Read Next Article
Summary How to force updating of a form or a control within a form event

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 4:12:39 PM
Keywords ATEasy, AControl.Refresh(), DoEvents()

0 ratings | 0 out of 5
Read Prior Article Read Next Article