RectControl → Control → Object

PushButton Class

The standard push button.

Events
Action
GotFocus
LostFocus
MouseDown
MouseUp

Properties
Bold
Cancel
Caption
Default
Italic
TextFont
TextSize
Underline

Methods
AddActionNotificationReceiver
Push
RemoveActionNotificationReceiver
SetFocus

Because this is a RectControl, see the RectControl for other properties and events that are common to all RectControl objects.

# Note

If the Caption property contains an ampersand character, it will display only if it is preceded by another ampersand character. This is done to make applications on all platforms behave consistently.

The PushButton's Caption property can show a caption that uses an encoding that doesn't match the application's region code (or while running within the IDE, the IDE's region code). For example, an English application can set a Japanese caption, as long as it first sets the button's TextFont to Osaka.

# See Also

BevelButton control; RectControl class.