|
#1
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
|||
|
|||
|
too good - thankyou - all works
|
|
#4
|
||||
|
||||
|
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 |
|
#5
|
||||
|
||||
|
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 |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
All times are GMT -6. The time now is 05:10 AM.








Linear Mode
