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

Home » Public Forums » archive » Re: Beginners question on widgets
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: Beginners question on widgets [message #14278] Tue, 16 February 1999 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Nigel Wade (nmw@ion.le.ac.uk) writes:

> Christian Haas wrote:
>>
>> I would like to write a larger widget application for medical imaging
>> purposes. Since I have no experience with IDL widgets yet I need to
>> know if there is an easy way of hiding and showing text and draw
>> widgets that all belong to one widget base without destroying and
>> realizing them each time.
>
> It is possible, but only for a widget base. Look at the IDL help for
> WIDGET_CONTROL and the keyword MAP.
>
> Basically, you can call WIDGET_CONTROL, id, MAP=0 for any widget, but
> all widgets in the same base will be unmapped. Just create a new base
> which only contains the widgets you want to be able to map and un-map.

Look at a program like XLOADCT for an example of a program
that maps three different widget hierarchies into the same
physical space, changing them as the buttons along the top
of the program are selected.

If you are just starting to write widget programs try to
get some good examples to learn from. These are not always
found in the IDL distribution. :-)

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
Re: Beginners question on widgets [message #14280 is a reply to message #14278] Tue, 16 February 1999 00:00 Go to previous message
Nigel Wade is currently offline  Nigel Wade
Messages: 286
Registered: March 1998
Senior Member
Christian Haas wrote:
>
> Hi!
>
> I would like to write a larger widget application for medical imaging
> purposes. Since I have no experience with IDL widgets yet I need to
> know if there is an easy way of hiding and showing text and draw
> widgets that all belong to one widget base without destroying and
> realizing them each time.
>

[comp.lang.idl removed]

It is possible, but only for a widget base. Look at the IDL help for
WIDGET_CONTROL and the keyword MAP.

Basically, you can call WIDGET_CONTROL, id, MAP=0 for any widget, but
all widgets in the same base will be unmapped. Just create a new base
which only contains the widgets you want to be able to map and un-map.

--
-----------------------------------------------------------
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523568, Fax : +44 (0)116 2523555
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Unsupported X Windows visual
Next Topic: Re: Is a point in a 4 vertex polygon?

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

Current Time: Sat Oct 11 08:13:35 PDT 2025

Total time taken to generate the page: 0.64292 seconds