Difference between revisions of "GotFocus event"

From Xojo Documentation

m
 
Line 9: Line 9:
  
 
==Notes==
 
==Notes==
If the [[Control]] has an AcceptFocus property, then it must be set to [[True]] for the [[Control]] to be capable of getting the focus, e.g. [[BevelButton]].
+
If the [[Control]] has an AllowFocus property, then it must be set to [[True]] for the [[Control]] to be capable of getting the focus, e.g. [[BevelButton]].
  
 
{{Information|On Macintosh, controls other than text fields and lists will accept focus only if the full keyboard access option is enabled in System Preferences/Keyboard.}}
 
{{Information|On Macintosh, controls other than text fields and lists will accept focus only if the full keyboard access option is enabled in System Preferences/Keyboard.}}

Latest revision as of 14:01, 6 May 2020

Event


Control.GotFocus()

Supported for all project types and targets.

The Control has received the focus and has a selection rectangle around it.

Notes

If the Control has an AllowFocus property, then it must be set to True for the Control to be capable of getting the focus, e.g. BevelButton.

fa-info-circle-32.png
On Macintosh, controls other than text fields and lists will accept focus only if the full keyboard access option is enabled in System Preferences/Keyboard.


Controls implementing the GotFocus event

BevelButton Windows only New in 2005r1
Canvas
Checkbox Note : On Macintosh, the full keyboard access option must be enabled in System Preferences/Keyboard
ComboBox
DisclosureTriangle Windows only New in 2005r1
ListBox
PopupMenu Windows and Linux only
PushButton
RadioButton Note : On Macintosh, the full keyboard access option must be enabled in System Preferences/Keyboard
Scrollbar Windows and Linux only
Slider Windows and Linux only
TabPanel Windows only
TextArea
TextField
UpDownArrows Note : On Macintosh, the full keyboard access option must be enabled in System Preferences/Keyboard