Button (gb.gtk)

This class implements a push button control.

A push button can display text, a picture, or both.

One button inside a window can be the Default button. Pressing the RETURN key will activate the button automatically.

One button inside a window can be the Cancel button. Pressing the ESC key will activate the button automatically.

Esta classe herda Control.

Esta classe é criável.

Propriedades
AutoResize  
Border   Returns or sets if the control has a border.
Cancel   Indicates if the button is activated when the ESC key is pressed.
Caption   This is a synonymous of the Text property.
Default   Indicates if the button is activated when the RETURN key is pressed.
Picture   Returns or sets the picture shown into the button.
Text   Returns or sets the text displayed in the button.
Value   Sets this property to TRUE to activate the button.

Inherited properties
Action  
Background   Returns or sets the background color used by the control.
Cursor   Use this property for assigning a custom cursor to a control.
Design   Indicates that the control is in design mode.
Direction  
Drop   Returns or sets if a control accepts drops.
Enabled   Indicates that the control is enabled.
Expand   Returns or sets if a control will expand if included in a container that arranges its contents.
Font   Returns or sets the font used to draw text in the control.
Foreground   Returns or sets the foreground color used by the control.
H  
Handle  
HasFocus  
Height  
Hovered  
Id  
Ignore  
Left  
Mouse   Returns or sets the appearence of the cursor when it points inside the control.
Name  
Next  
NoTabFocus  
Parent  
PopupMenu  
Previous  
Proxy  
RightToLeft  
ScreenX  
ScreenY  
Tag  
Tooltip  
Top  
Tracking  
Visible  
W  
Width  
Window  
X  
Y  

Inherited methods
Delete  
Drag  
Grab  
Hide  
Lower  
Move  
MoveScaled  
Raise  
Refresh  
Reparent  
Resize  
ResizeScaled  
SetFocus  
Show  

Eventos
Click   Raised when the user clicks on the button.

Inherited events
DblClick  
Drag  
DragLeave  
DragMove  
Drop  
Enter  
GotFocus  
KeyPress  
KeyRelease  
Leave  
LostFocus  
Menu  
MouseDown  
MouseDrag  
MouseMove  
MouseUp  
MouseWheel