Default

[property icon] Default

Specifies the default tab for the tab control

Boolean property

Applies to: TabbedItem


[property icon] Default

Used to specify if the button is to be the forms default button

This is a style property that is only available in the forms designer. It is possible to modify this programmatically through the Style property in the Create event.

Applies to: Button , Picture Button


>Default

Default

Use with tab controls

This property is used to set the specified tab as the default tab within a tab control. The default tab is the tab initially displayed when the form is opened. A value of TRUE makes the specified tab the default tab. For tabs this property can be set at both design and run time. For example:

 .TabControl1.tab1.default = TRUE

Use with buttons controls

This property is used to determine whether a button is the default button for the form. The default button is the button that will be actioned if RETURN is pressed. This is indicated by having a thicker shadow. Clearly only one button should have this style and generally it is the OK button, if there is one. For forms where there is no action to take place a Close button is the logical choice.

The rule for handling RETURN is to first see if the current control wants to handle it locally, say because of a .WantReturn property. If not then it will be offered to the first control in the tab order that has the .Default property set to TRUE and if no such control, it will go to the OK button. There is a similar hard wiring of Cancel for the escape key.

As it is a button style the property can only be set in the Forms Designer and cannot be set or inspected programmatically.

Use with fonts

This can be used to specify which stock font is the default.

See also

Button methods, properties and events. Picture Button methods, properties and events. TabbedItem methods, properties and events.