View Single Post
  #4  
Old 05-19-2007, 03:14 PM
godofwarares godofwarares is offline
Webmaster
godofwarares's Avatar
Join Date: Dec 2006
Location: Florida
Posts: 552
godofwarares is on a distinguished road
Send a message via ICQ to godofwarares Send a message via AIM to godofwarares Send a message via MSN to godofwarares Send a message via Yahoo to godofwarares
Quote:
Originally Posted by Skyld View Post
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 View Post
You could try obj.isfirstresponder(); - i think this will return whether it is selected or not.
That worked :]
__________________
What signature? I see no signature?

Last edited by godofwarares; 05-19-2007 at 04:24 PM..
Reply With Quote