Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-19-2007, 03:04 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
Detecting if a GUI Control has been selected

How would I do this? (read the title)
__________________
What signature? I see no signature?
Reply With Quote
  #2  
Old 05-19-2007, 03:11 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Do you mean if a window control is on focus, or if an item is selected from a list, ..?
__________________
Skyld
Reply With Quote
  #3  
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
  #4  
Old 05-19-2007, 03:13 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
You could try obj.isfirstresponder(); - i think this will return whether it is selected or not.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:13 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.