diff --git a/Object.md b/Object.md index 362ba3e..22e20dd 100644 --- a/Object.md +++ b/Object.md @@ -56,7 +56,9 @@ local mainFrame = basalt.createFrame("myFirstFrame"):setSize(15,5) **returns:** self
## 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()