Indigo Rose Software
  #1  
Old 11-13-2003
ero ero is offline
Forum Member
 
Join Date: Nov 2003
Posts: 25
Disabled icons

Is there anyway either now or as an enhancement that the "On Enter" and "On Leave" actions still operate when a button is NOT enabled.

I have an menu that if IIS is not available, I don't want a user to be able to click a certain button - and i do like to show all the options just disable certain ones. When the user sees it being disabled they may want to know why. Hence, when the user goes over the button a message such as "Cannot press this cos IIS not installed".

Or, perhaps there is a way just to change the text color at runtime, that I can check to see the color when the On Enter action occurs. I don't think this is possible but perhaps my development in LUA is at its most basic at the moment.

Thankyou.
Reply With Quote
  #2  
Old 11-13-2003
TJ_Tigger's Avatar
TJ_Tigger TJ_Tigger is offline
Indigo Rose Customer
 
Join Date: Sep 2002
Location: Sol 3
Posts: 3,188
Could you put a check on the page that will check to see if the button is enabled.

Button.IsEnabled ("Button1")

If the button is disabled then show a hotspot over the button that will provide your description of why the button is not enabled.

if (Button.IsEnabled ("Button1")) then
HotSpot.SetEnabled ("Hotspot1", true)
end

This way your button is still disabled but the hotspot over the button will allow you to perform the notifications you want to your user.
Reply With Quote
  #3  
Old 11-13-2003
ero ero is offline
Forum Member
 
Join Date: Nov 2003
Posts: 25
too good - thankyou - all works
Reply With Quote
  #4  
Old 11-13-2003
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
Cool tip... Man, I've got to get some sort of tips archive set up at some point here, these are gold.

Corey Milner
Creative Director, Indigo Rose Software
Reply With Quote
  #5  
Old 11-13-2003
TJ_Tigger's Avatar
TJ_Tigger TJ_Tigger is offline
Indigo Rose Customer
 
Join Date: Sep 2002
Location: Sol 3
Posts: 3,188
No Problem. glad to help. The guys on this forum have been a great help to me so I try to pay back when I can.

The other thing you could do is in your check for IIS, if the result comes back as false, then you could enable the hotspot at that point. Most likely just after you disable the button.

And another way you could do this is to perform your check for IIS and if not installed set a variable to false.

IIS_Installed = false;

Then whenever you click a button check against that variable.

if (IIS_Installed = false) then
--display a message here that they need to install IIS before they can use this button
else
-- do what you originally planned to do.
end
Reply With Quote
Reply

Thread Tools
Display Modes

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



All times are GMT -6. The time now is 05:10 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software