The check in a menu item

Sjoerd Op 't Land sjoerdoptland at mac.com
Sat Jan 26 17:22:00 EST 2002


Terry Vogelaar wrote/ schreef:

> In a menu I have 3 items that can be checked. When the check appears in the
> 1st item, it should be removed from the 2nd and the 3rd item, and so on.
> 
> But there is something about checking I don't understand. When I want a
> menu-item to be checked, I put "!c" before the line of that item. But when I
> want to move the check from that item to another, I get (or RR gets)
> confused. If I just remove the "!c" from the first line and then add "!c" to
> the second, I have 2 items checked instead of one. But when I remove replace
> the "!c" with a "!n", the check is gone. Then I check a third item. Then
> chaos begins. "!n" is visible in the 1st item. And the more I swap the
> menus, the more "!n!n!n"s I see.
> 
> With a lot of extra scripting, I managed to let it work reasonably reliable.
> But I've got a feeling it should be less complex.
What is the script you're using?

> BTW, why is there a "!n" or a "!u" anyway? I think the check/diamond should
> be gone as soon as the "!c"/"!r" is gone.
> 
> Terry
Regards, / Groeten,
Sjoerd




More information about the use-livecode mailing list