Updated Object (markdown)
@@ -56,7 +56,9 @@ local mainFrame = basalt.createFrame("myFirstFrame"):setSize(15,5)
|
||||
**returns:** self<br>
|
||||
|
||||
## setFocus
|
||||
sets the object to be the focused object
|
||||
sets the object to be the focused object.
|
||||
If you click on a object, it's normaly automatically the focused object. As example, if you :show() a frame and you want this particular frame to be in
|
||||
the foreground, you have to use :setFocus()
|
||||
````lua
|
||||
local mainFrame = basalt.createFrame("myFirstFrame"):show()
|
||||
local aButton = mainFrame:addButton("myFirstButton"):setFocus():show()
|
||||
|
||||
Reference in New Issue
Block a user