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

Home » Public Forums » archive » Re: Switching Between Multiple XMANAGER Windows
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: Switching Between Multiple XMANAGER Windows [message #17346 is a reply to message #17335] Thu, 07 October 1999 00:00 Go to previous messageGo to previous message
Harald Frey is currently offline  Harald Frey
Messages: 41
Registered: March 1997
Member
Pavel Romashkin wrote:

> Although I am not quite clear about what an XMANAGER window is, I see no
> obstacle to using WIDGET_DRAW to produce more than one popup daughter windows
> when the mouse is clicked inside that WIDGET_DRAW. Why not just include a
> base widget creation routine in the event handler for the draw widget, and
> have event_handler create a base with an information widget, with pixel ID,
> label, text, table or image zoom-in - anything you want, and leave it in case
> you need that information. Then, when you click on another pixel, another
> window, identical to the first info base, will pop up, and so on. To destroy
> them easily, I'd use /group_leadre keyword. Or am I missing something
> complicating here? I don't even see the need to use pointers.
> Good luck,
> Pavel
>

If you do this you may end up with dozens of similar

widget windows. What I do to avoid this is to set a

flag in my info structure which shows that the child

widget already exists and it will be destroyed before

the new one is created. It looks like this.

IF (info.wiczoom NE 0l) then WIDGET_CONTROL,info.wiczoom,/DESTROY
zoomBase = WIDGET_BASE(TITLE='WIC Zoom',ROW=3)
info.wiczoom = zoomBase

Harald

=========================================================
Harald U. Frey
Space Sciences Lab phone: 510-643-3323
University of California fax: 510-643-2624
Berkeley, CA 94720-7450 email: hfrey@ssl.berkeley.edu
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Floating Point Dilate and Erode
Next Topic: Re: Velocity vectors on maps

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

Current Time: Fri Oct 10 04:15:11 PDT 2025

Total time taken to generate the page: 0.16172 seconds