UIEnable
This event gives you a hook into the controls on a page when the page is activated or deactivated. It fires for each control on the page on the way into and on the way out of the page. It took us awhile to "get" this one, but it's actually pretty cool.
Usage |
PROCEDURE oObject.UIEnable LPARAMETERS [ nControlIndex ,] lComingIn |
Parameter |
Value |
Meaning |
nControlIndex |
Numeric |
If the control is contained in an array, indicates which element of the array fired the event. |
Omitted |
The control is not part of a control array. |
|
lComingIn |
.T. |
The event fired because the page containing this control is being activated. |
.F. |
The event fired because the page containing this control is being deactivated. |
Example |
* In a simplified version of the example above, * assume one page of a page frame contains a list * based on a query (RowSourceType=3) and that * the query conditions include some variables, * which are the ControlSources of controls * on other pages. * To update the list when its page comes to * the top, you'd have the following in * the list's UIEnable event: IF lEnable && Only on the way in This.Requery() ENDIF |
See Also |