From bf5365b04acfc4772b73a6740a5461dc6fdceea1 Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Mon, 2 May 2022 17:25:11 +0200 Subject: [PATCH] Updated Object (markdown) --- Object.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()