Property Integer Default_Action_Button
Read Access: | Get Default_Action_Button to IntegerVariable |
Write Access: | Set Default_Action_Button to IntegerVariable/Value |
A single button object within a panel/dialog object may be designated as the default-action button. This button is assigned by setting its default_action_button property. This property is not normally set directly. Instead, you will usually set the default_state of the button (which, in turn, will set the Default_action_button property). The following two samples will exhibit the same behavior.
Object OK_bn is a Button Set Label to "&Ok" Set Location to 115 152 Set default_state to TRUE Procedure OnClick Send Save_record End_Procedure End_Object
and:
Object OK_bn is a Button Set Label to "&Ok" Set Location to 115 152 Procedure OnClick Send Save_record End_Procedure End_Object Set default_action_button to Ok_bn
See default_state in the button class for more information on default action buttons.