Condividi tramite


UIEnable Event

Occurs for all objects contained within a page whenever the page is activated or deactivated.

PROCEDURE Object.UIEnable
LPARAMETERS [nIndex,] lEnable

Parameters

  • nIndex
    Contains a number that uniquely identifies a control if it is in a control array. The nIndex parameter is passed only if the control is in a control array.
  • lEnable
    Contains a logical value that specifies whether the page that the object is contained within is being activated or deactivated. If lEnable is true (.T.), the page that the object is contained within is being activated (becoming the active page). If lEnable is false (.F.), the page is being deactivated (becoming the inactive page).

Remarks

Use the UIEnable event to specify any action you want to occur for an object or control when the page that it is contained within is activated or deactivated.

The UIEnable event does not occur for pages when the form is initially activated. The UIEnable event occurs only when a page is programmatically or interactively activated or deactivated.

See Also

Activate Event | Deactivate Event

Applies To: CheckBox | ComboBox | CommandButton | CommandGroup | Container Object | Control Object | EditBox | Grid | Image | Label | Line | ListBox | OLE Bound Control | OLE Container Control | OptionGroup | PageFrame | Shape | Spinner | TextBox