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

Home » Public Forums » archive » Re: Q: floating child (base) widget
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: Q: floating child (base) widget [message #12860] Thu, 17 September 1998 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Mirko Vukovic (mirko_vukovic@notes.mrc.sony.com) writes:

> I would like to create a child base widget that floats by itself.

Ain't gonna happen. :-)

By definition a widget program that appears in its own window
is in its own top-level base. There will be no propagation going
on to the group leader or to anyone else.

> The reason is that I want some event to propagate back to the top level base,
> but want to be able to move the child widget around(it is a plot window),
> re-size it and stuff like that.
>
> Reading the documentation, /float seems to apply only to base widgets with
> group leaders. But then, to pass the information up, I need to create an
> artifical event, which just does not seem to be the artfull thing to do
> (one extra programming line).

I'd go with the unartful thing in this case and write the extra
line notifying some other widget program that an event occurred.
You can use XCOLORS as an example of using the NOTIFYID keyword
to get the ID of a widget (or list of widgets) to notify when the
color table changes.

http://www.dfanning.com/programs/xcolors.pro

Cheers,

David

----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438, Toll-Free Book Orders: 1-888-461-0155
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Previous Topic: Map coordinates to Lon/Lat
Next Topic: -- WAV and IDL --

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

Current Time: Sat Oct 11 04:00:45 PDT 2025

Total time taken to generate the page: 0.96278 seconds