Updated Object (markdown)

Robert Jelic
2022-05-02 17:25:11 +02:00
parent 10534c0b5d
commit bf5365b04a

@@ -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()