Top
PowerCOBOL V11.0 Reference
FUJITSU Software

4.31 Cancel Property

Description:

Indicates whether the control is the default cancel button (i.e. the button activated by the ESC key).

Used in control(s):

CommandButton

Custom

Values (with constants):

True - This is the default cancel button.(POW-TRUE)
False - Not the default cancel button.(POW-FALSE)

When it is True, the Click event is generated when the ESC key is pressed. The focus, however, does not move.

Only one control in a form can be the default cancel button. When the Cancel property is set to True for a control, PowerCOBOL sets the Cancel properties of all other controls to False.

Default value:

False(POW-FALSE)

COBOL picture:

S9(4) COMP-5

OLE data type:

VT_BOOL

Design time access:

Set and reference.

Execution time access:

Set and reference.

Backward compatibility attribute:

None.