Loading...
 

Lock

Lock

Lock(windowID, childID), Lock(windowID), Lock(, childID), Lock

parameters: Identifier of a Windows and a child Windows object

Stack
Stack Position Description
Stack(In) Top -
Stack(Out) Top -

A button, menu item or input field is locked. If the item is NON_SELECTABLE or LOCKED (see also Item), this call does nothing. With CX_WIDGET։։IsLocked you can check if a widget is locked and with Unlock you can unlock a widget (but not if it is NON_SELECTABLE)

In the case of a menu item (context menu / window menu) it is checked whether by calling Lock all sub-items of the parent item (of the locked item) are now LOCKED or NON_SELECTABLE. If so, Lock is also called on the parent item, so that menu items are automatically locked if their last sub-item was locked and they are not already locked.