SetFocus

From OxeyeWiki

(Difference between revisions)
Jump to: navigation, search
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...')

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.

Daisymoon GUI Lib


Example

   local edit = gui.createComponent("editbox", frame)

   edit:setText(WChar("Enter your name here"))
   edit:setRelativePosition(10, 200, 100, 20)
   edit:setFocus()

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox