PushButton

From Real Software Documentation

Jump to: navigation, search

     

For web applications, see WebButton.
Class (inherits from RectControl)

A PushButton is the standard button used in desktop apps.


Events
Action DropObject MouseExit
Close GotFocus MouseMove
ConstructContextualMenu KeyDown MouseUp
ContextualMenuAction KeyUp MouseWheel
DragEnter LostFocus Open
DragExit MouseDown
DragOver MouseEnter


Properties
Active Italic Scope
AutoDeactivate Left TabIndex
Bold LockBottom TabStop
ButtonStyle LockLeft TextFont
Cancel LockRight TextSize
Caption LockTop Top
Default MouseCursor TrueWindow
Enabled MouseX Underline
Handle MouseY Visible
Height Name Width
HelpTag PanelIndex Window
Index Parent


Methods
AcceptFileDrop Close Refresh
AcceptPictureDrop DrawInto RefreshRect
AcceptRawDataDrop Invalidate SetFocus
AcceptTextDrop Push


Notes

To set an accelerator character, precede the character in the Caption with an ampersand. In order to show an ampersand in the Caption, use two ampersands in a row.

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.

If your Pushbutton has a height greater than 22 pixels, on OS X it will not have the standard rounded appearance and will instead be drawn as a square button. This is a restriction of OS X, not Real Studio.

See Also

BevelButton, SegmentedControl controls; RectControl class.

Personal tools