SetFocus

From OxeyeWiki

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