SetFocus
From OxeyeWiki
(Difference between revisions)
Jeb (Talk | contribs)
(Created page with '{{GUIMethod | component:setFocus() | Moves the user input's focus to this element. Currently only works for edit fields. | {{NoParams}} | Returns nothing. }} === Example === <p...')
(Created page with '{{GUIMethod | component:setFocus() | Moves the user input's focus to this element. Currently only works for edit fields. | {{NoParams}} | Returns nothing. }} === Example === <p...')
Latest revision as of 18:39, 6 February 2010
|
component:setFocus() | ||
|
Moves the user input's focus to this element. Currently only works for edit fields. | ||
| Parameter | Expected Type | Description |
| No parameters | ||
| Returns | ||
|
Returns nothing. | ||
Example
local edit = gui.createComponent("editbox", frame)
edit:setText(WChar("Enter your name here"))
edit:setRelativePosition(10, 200, 100, 20)
edit:setFocus()