|
Re: checked menu bars - not toggling on / off [message #60878 is a reply to message #60868] |
Tue, 17 June 2008 13:27  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
cgoethel@igpp.ucla.edu writes:
> How does the toggle button on the checked menu button work? I believe
> I have properly set up the tlb, menu widget button, and checked menu
> button, least ways it initially displays correctly with a check mark
> next to that menu item. However, when I click on that menu item, to
> turn it off, the pulldown menu display is not updated (to not have a
> check). I do get an event and I call widget_control ...
>
> WIDGET_CONTROL, event.id, /set_button
>
> From the documentation, it looked like this should work as a toggle
> button. I took that to mean that each time widget_control was called
> with the /set_button keyword the value would change from 0 to 1. In
> debugging, when I call widget_info - the value is always 1. What do I
> need to do to set this button to 0 or 1?
Here is an article that explains the whole process:
http://www.dfanning.com/widget_tips/checkmarks.html
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|