Description

Button is a push button control. Use Button to put a standard push button on a form. An important and frequently used component. For example, it may serve to save a record to the database.

Performs a predefined action or a script when you click on it.


Component properties

 Property

 Description

 Action

 Allows you to select a button action. More info.

 Caption

 Specifies the text string that labels the control.

 Font → Color

 Specifies the font color to use when displaying the text. Starting with Windows Vista, you cannot change the font color for a button.

 Font → Name

 Identifies the typeface of the font.

 Font → Size

 Specifies the height of the font in points.

 Font → Style

 Determines whether the font is normal, italic, underlined, bold, and so on.

 Icon

 Allows you to select an icon for the button.

 Name

 Specifies the name of the component.

 Left

 Specifies the horizontal coordinate of the left edge of a component relative to its parent.

 Top

 Specifies the Y coordinate of the upper-left corner of a control, relative to its parent or containing control in pixels.

 Width

 Specifies the horizontal size of the control in pixels.

 Height

 Specifies the vertical size of the control in pixels.

 Style

 Allows you to select the style of the button.

 TabOrder

 Indicates the position of the control in its parent's tab order.

 TabStop

 Determines if the user can tab to a control.

 Visible

 Specifies whether the component appears onscreen.

 Anchors

 Specifies how the control is anchored to its parent. More info.



Additional properties

 Property

 Description

 BiDiMode

 Specifies the bi-directional mode for the component.

 Cancel

 Determines whether the button will be automatically pressed when the Escape key is pressed.

 ComandLinkHint

 Text displayed as hint below button caption for Command Link. It makes sense if the Style button property = bsCommandLink

 Constraints

 Specifies the size constraints for the component.  It makes sense when using the Anchors property.

 Cursor

 Specifies the image used to represent the mouse pointer when it passes into the region covered by the component.

 Enabled

 Controls whether the component responds to mouse and keyboard events.

 Hint

 Hint contains the text string that appears when the user moves the mouse over the component. The hint will be shown if the ShowHint property = True

 ImageAlignment

 Alignment of image on button. It makes sense if the icon is selected in the Icon property.

 ShowHint

 Determines whether the control displays a Help Hint when the mouse pointer rests momentarily on the component. See also property Hint

 WordWrap

 Specifies whether the button text wraps to fit the width of the component.