Changing ATEasy control properties that affect the control window area does not…

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
Login to rate article

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()

Login to rate article

Read Prior Article Read Next Article