dss@cubsvax.UUCP (David Silver) (10/08/86)
I am attempting to use the MENUTOGGLE option in a MenuItem to cause the
system to automatically toggle the appearance of a checkmark when the
item is selected repeatedly. The MENUTOGGLE flag is only mentioned in
the eratta to the Intuition manual. I think I'm doing everything right,
my menus work, but the darn checkmark won't go away! The manual
explicitly states that one shouldn't play with the CHECKED bit in the
structure. So, is this implemented? Could I possibly have an outdated
amiga.lib?
Also, what if I do want to make a checkmark appear or disappear to reflect
some current configuration of a program. I don't see any way to do it
short of doing a ClearMenuStrip and another SetMenuStrip with the
appropriate CHECKED flags. Is there an easier way?
Thanks for any answers!
--
David Silver
{philabs,rna}!cubsvax!dss
cubsvax!dss@columbiaandy@amiga.UUCP (Andy Finkel) (10/09/86)
In article <555@cubsvax.UUCP> dss@cubsvax.UUCP (David Silver) writes: >I am attempting to use the MENUTOGGLE option in a MenuItem to cause the >system to automatically toggle the appearance of a checkmark when the >item is selected repeatedly. The MENUTOGGLE flag is only mentioned in >the eratta to the Intuition manual. I think I'm doing everything right, >my menus work, but the darn checkmark won't go away! >-- >David Silver >{philabs,rna}!cubsvax!dss >cubsvax!dss@columbia Under V1.1, MENUTOGGLE was broken. It is fixed under V1.2. (poof) The only suggestions I can make about doing it under V1.1 is either define your own checkmark, and turn it off and on yourself by changing the IText of the menu item (while the menu strip is cleared, of course), or making a submenu with an OFF entry and an ON entry. Or hold out until V1.2. andy finkel -- andy finkel Commodore(Amiga) {ihnp4|seismo|allegra}!cbmvax!andy or pyramid!amiga!andy Any expressed opinions are mine; but feel free to share. I disclaim all responsibilities, all shapes, all sizes, all colors. "Remember, no matter where you grow, there you are." - Buckaroo Bonsai.
danny@convex.UUCP (10/11/86)
In one of my programs, I'm doing exactly what you want to avoid. ClearMenuStrip() set appropriate CHECKED fields SetMenuStrip() not that hard and you get what you want. Dan Wallach ...!ihnp4!convex!danny