User Tools

Site Tools


takedisablebutton_disable_target_button_control_.htm
Navigation:  ABC Library Reference > WindowManager > WindowManager Methods >====== TakeDisableButton (disable target button control) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

TakeDisableButton (control, flag), VIRTUAL

blk2blue.jpg

control An integer constant, variable, EQUATE, or expression containing the control number of the control whose contents to disable. This is the field equate number of the control.
flag A BYTE value that controls whether the target control will be enabled or disabled.

The TakeDisableButton virtual method processes a target control and disables the control if the flag value is set to TRUE (1). If the flag value is set to FALSE (0), the target control is enabled.

Implementation:

The EnableCancelControls and the DisableCancelControls PRIVATE methods call the TakeDisableButton method.

Example:

WindowManager.TakeDisableButton PROCEDURE(SIGNED Control,BYTE MakeDisable)

 CODE

    IF Control THEN

       IF MakeDisable THEN

          DISABLE(Control)

       ELSE

          ENABLE(Control)

       END

    END

See Also:     SaveonInsertAction , TakeAccepted

takedisablebutton_disable_target_button_control_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1