Gambas Documentation
Compilación e instalación
Componentes
gb
gb.cairo
gb.chart
gb.complex
gb.compress
gb.crypt
gb.db
gb.db.form
gb.desktop
gb.form
gb.form.dialog
gb.gui
gb.image
gb.net
gb.net.curl
gb.net.pop3
gb.net.smtp
gb.opengl
gb.qt4
.TextBox.Selection
_TreeView
Button
CheckBox
Color
ColumnView
ComboBox
Container
Control
Background
Cursor
DblClick
Delete
Design
Drag
Drag
DragMove
Drop
Drop
Enabled
Enter
Expand
Font
Foreground
GotFocus
Grab
H
Handle
Height
Hide
Hovered
Id
Ignore
Left
Lower
Menu
Mouse
MouseDrag
MouseMove
Move
MoveScaled
Name
Next
Parent
PopupMenu
Previous
Raise
Refresh
Reparent
Resize
ResizeScaled
ScreenX
ScreenY
SetFocus
Show
Tag
Tooltip
Top
Visible
W
Width
Window
X
Y
Cursor
Desktop
Dialog
DrawingArea
Form
Frame
GridView
HSplit
IconView
Image
Key
Label
ListBox
ListView
Menu
Message
MovieBox
Paint
PaintBrush
Panel
Picture
PictureBox
Printer
ProgressBar
RadioButton
ScrollBar
ScrollView
Separator
Slider
SpinBox
TabStrip
TextArea
TextBox
TextLabel
ToggleButton
ToolButton
trayicon
TreeView
UserContainer
Window
gb.qt4.ext
gb.settings
gb.xml
gb.xml.rpc
Controls pictures
Cómo...
Descripciones del Lenguaje
Developer Documentation
Documentacion y Recetas
Documentación del Entorno de Desarrollo
Fragmentos de código
Glosario
Índice del Lenguaje
LÉEME
Licencia del Wiki
Manual del Wiki
Mensajes de Error
Pendiente de traducción
Registrarse
Repositorio de Aplicaciones
Tutoriales
Últimos cambios

Control.Proxy (gb.qt4)

Property Proxy As Control

Return or set the "proxy" of a control.

When a control has a proxy, it will duplicate all mouse and keyboard events of the proxy for itself. I.e., if the proxy raises a KeyPress event, then the control will raise it too.

Moreover, the SetFocus and HasFocus methods will actually act on the proxy.

Use the proxy when you create a compound control based on a UserControl, with one of the child handling all mouse and keyboard events.

For example, the class ButtonBox, a TextBox and a Button, uses its inner TextBox as proxy. You see all events raised by the TextBox as if the ButtonBox has actually raised them.

List of properties and methods that take the proxy into account: List of events that take the proxy into account:

See also