SetFocus

From OxeyeWiki

Revision as of 18:39, 6 February 2010 by Jeb (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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