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

Home » Public Forums » archive » Re: Pull Down Menus
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Pull Down Menus [message #6348] Sat, 01 June 1996 00:00
Peter Mason is currently offline  Peter Mason
Messages: 145
Registered: June 1996
Senior Member
> I was just wondering what the best way to do the following would be:
> I want a pull down menu from which I want to add and remove entries.
> Should I use cw_pdmenu or create my own?
> Can I do this w/o remapping the menu?
> How would my event handler keep up w/ this?
> Am I crazy or just insane?

I've hacked CW_PDMENU to do this - I can change button labels or increase /
decrease the number of buttons in the list by passing my routine a STRARR
of button names in a /SET_VALUE call. Internally I destroy and recreate
the menu (from a base below the menu's main base) when the number of buttons
changes. The only thing the calling program's event handler must allow
for is the change in the range of values the widget can return after it
is resized.

Under Unix the hack works OK, except that I normally wrap a menu resizing
call with WIDGET_CONTROL,UPDATE=0 and /UPDATE on the container base to speed
things up.
Under Windows 3.1x and 95 I've found that this sort of thing chews up
Windows "resources" really quickly.
I'll e-mail you a copy of my hacked CW_PDMENU if you like.

Peter Mason
CSIRO division of Exploration and Mining
P.O Box 136, North Ryde, NSW, 2113, Australia
E-Mail: peter.mason@dem.csiro.au Tel: +61 2 887-8883 Fax: 887-8921/8909
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: making a composite from several images
Next Topic: Automatic Linefeed between TEXT Widgets...

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

Current Time: Wed Oct 08 17:35:55 PDT 2025

Total time taken to generate the page: 0.00522 seconds