You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you click on an object, it's normally automatically the focused object. For example, if you call :show() on a frame, and you want this particular frame to be in
92
-
the foreground, you should use :setFocus()
94
+
the foreground, you should also use :setFocus()
93
95
#### Returns:
94
96
1.`object` The object in use
95
97
@@ -101,18 +103,19 @@ local aButton = mainFrame:addButton("myFirstButton"):setFocus():show()
101
103
```
102
104
103
105
## setZIndex
104
-
Sets the zindex where a higher z index has higher draw/event priority, with higher values higher priority. You are also able to add multiple objects to the same zindex. On the same z index: the last created object has the highest priority.
106
+
Sets the z-index. Higher value means higher draw/event priority. You can also add multiple objects to the same z-index, if so the last added object will have the highest priority.
105
107
#### Parameters:
106
108
1.`number` z-index
107
109
108
110
#### Returns:
109
111
1.`object` The object in use
110
112
111
113
#### Usage:
112
-
* Sets the z-index of "myFirstButton" to `1`
114
+
* Sets the z-index of "myFirstButton" to `1` and the z-index of "myFirstLabel" to `1`
0 commit comments