Top
PowerCOBOL V11.0 Reference
FUJITSU Software

4.95 Default Property

Description:

Indicates the default control in the form.

Used in control(s):

CommandButton

Custom

Values (with constants):

True - This is the default control.(POW-TRUE)

False - This is not the default control.(POW-FALSE)

A black border highlights the default button.

The default control receives a Click event when the ENTER key is pressed.

Only one control in a dialog can be the default control. Setting the value to True for one control causes the value to be set to False in all the other controls.

Some controls, such as a multi-line TextBox, use the ENTER key event for their own purposes. If the focus is in one of these controls the default control does not get a Click event when the ENTER key is pressed.

Also, if the user moves the focus (a black border) to another button, the value is changed to False automatically and the Default property of the button that receives focus is set to True automatically. Thus the new default button will receive the Click event when the ENTER key is pressed.

Note that if the UnacceptableDefault property is True the value of the Default property is forced to be 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:

POW-DEFBUTTONPIC S9(4) COMP-5