Hides the window immediately without animation.

Syntax

rv = Send_Message(Ctrl, "OLE.Close")

Remarks

The Close method hides the popup immediately without animating it. In contrast, the Visible property, when set to 0, hides the popup using the current animation settings. This method works best when attempting to close the popup from within the OnItemClick event.

This method also destroys the popup and removes it from memory whereas the Visible property simply hides the popup but leaves it in memory. In either case, the popup is always removed from memory when the SRP Popup Control's parent window is closed.

Example

// close the popup immediately 
Send_Message(@Window:".OLE_POPUP", "OLE.Close")

See Also

ShowAtVisibleOnItemClick

  • No labels