comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Can I make entries in CW_PDMENU insensitive?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Can I make entries in CW_PDMENU insensitive? [message #14391 is a reply to message #14385] Wed, 24 February 1999 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Liam Gumley (Liam.Gumley@ssec.wisc.edu) is good enough to
expand on my rather flippant comments with this:

> The following example expands a little on the excellent tip by David
> Fanning. Here I've tried to replicate part of the menu bar of a well
> known word processor. I think it demonstrates the concepts that are of
> interest in this case.

I would just add the XSIZE keyword to the first line of
this code for those of you who want to see this on a Windows
machine. :-)

base = widget_base( title = 'Menu Test', mbar=menu_bar, XSIZE=200 )

I'm not a fan of XSIZE keywords at all, but Windows will make a
very *tiny* window in the upper left corner of your display if
the top-level base doesn't have a size or (at least) something
inside it.

> Does anyone know how to include a separator line between menu items,
> e.g. between 'Close' and 'Send To'?

You are not going to believe this, but you could add a SEPARATOR
keyword to the "Send To" button. :-)

file_but4 = widget_button( file_menu, value='Send To', /menu, $
/Separator)

Ya just gotta love IDL sometimes!

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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: NaN in pv-wave
Next Topic: Re: Misc. Bugs & Problems

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 10:07:39 PDT 2025

Total time taken to generate the page: 2.47791 seconds