[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamic menus on base widget using MBAR



Ricardo Fonseca (zamb@physics.ucla.edu) writes:

> Is there a way to dynamically change the menu on a base widget? When I begin
> my program I create a menu using the MBAR keyword on the WIDGET_BASE
> function. While it is running, and depending on user input, I'd like to
> change the menu to a completely different one.
> 
> So far I've attempted to destroy the old button widgets and regenerating the
> menu, but it's not working.

I wrote an article about how to do this and put it on my
web page:

   http://www.dfanning.com/tips/dynamic_menus.html

Cheers,

David

-- 
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155