PopUpMenu

PopUpClose

Close a pop-up menu and restore the saved screen region

Syntax

Signature
xBool       PopUpClose( PopUpMenu *popUp, int closeChild );

Arguments

popUp the pop-up menu.

closeChild use T or NIL to close the open submenu of the current item recursively. Use F to leave that submenu open.

Return value

T on success, or F if the object is NULL.

Description

Each open submenu on the current selection path is closed before its parent when recursive closing is enabled. Closing an open menu restores the screen saved by `PopUpOpen()` and resets the current position to `0`. Closing a menu that is already closed succeeds without restoring the screen.

See also