Control (gb.gtk)

This class is the parent class of all controls, except Menu.

Esta clase no es instanciable.

Propiedades
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  

Métodos
Delete  
Drag  
Grab  
Hide  
Lower  
Move  
MoveScaled  
Raise  
Refresh  
Reparent  
Resize  
ResizeScaled  
SetFocus  
Show  

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

All events raised by the Control class are native events. Beware that they are raised even if the Enabled property is FALSE.

If you need to disable / enable events you should use Object.Lock / Object.Unlock.

Beware that some controls or containers implemented in Gambas may not raise all native events as expected, because those native events may have been "eaten" by the control implementation.