View Single Post
  #5  
Old 07-19-2008, 08:10 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by LoneAngelIbesu View Post
Yes, it does look grayed out. However, with those GUI controls I mentioned, the user can still select an entry.

For example, I have a right-click menu (context menu) with 4 entries. I run a check to see if a user's account is in an array. If it's not, 2 of the entries are disabled. However, the user can still select a disabled entry, and the action will still go through. To prevent that, I have to run another check through the array; if the user isn't in there, I simply "return;" the action.
You should be running that check regardless.. Don't rely on gui control variables.
__________________
Do it with a DON!
Reply With Quote