Re: Setting Disabled State on Menu Item
Aesculus <Aesculus.a0me5z-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]>
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Organization | Logitech Squeezebox Forums |
| Message-ID | <[email protected]> |
mherger wrote: > Such a change is unlikely going to happen. Maybe if you describe your > use case we can find some kind of workaround? The use case is that in some conditions some menu items depend on others higher in the list. For example I have a dynamic equalizer setting that can be on or off in one menu. In another menu the user can adjust the reference level offset of the amplifier, but only if they had pre selected the dynamic equalizer as on. So I don't want to get rid of the reference level menu because it would come and go and confuse the user. So I detect the state of the dynamic equalizer when building (or rebuilding) the reference level menu. If I find the Dyn Eq off I just leave the Action section off of the menu items. This makes them do nothing when pressed which is good and the way it should be. But they still LOOK like they should react. They are not grayed out like you would expect disabled options to be. The Squeezer guy implemented the disabled look in his client if he sees a menu item without an action. 34372 +-------------------------------------------------------------------+ |Filename: temp.jpg | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=34372| +-------------------------------------------------------------------+ Chris ------------------------------------------------------------------------ Aesculus's Profile: http://forums.slimdevices.com/member.php?userid=14876 View this thread: http://forums.slimdevices.com/showthread.php?t=114389