Quote:
Originally Posted by Skyld
Do you mean if a window control is on focus, or if an item is selected from a list, ..?
|
Like when a GuiTextEditCtrl gains focus. I want it so that when the player clicks the box / presses Tab and the edit box gets focus, It selects all the text.
[PS: I already know of that function.
setSelection(begin, end);]
Edit:
Quote:
Originally Posted by Twinny
You could try obj.isfirstresponder(); - i think this will return whether it is selected or not.
|
That worked :]