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

Home » Public Forums » archive » Re: Child window
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: Child window [message #14573] Sun, 07 March 1999 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Dmitriy Ryzhov (dryzhov@dialup.ptt.ru) writes:

> How i can make child window(that it position and size is in main window) in
> IDL.
> If i call other window procedure OtherWindow, group_leader=Event.top, new
> window appears as
> overlapped window but not child.

Graphics windows inside of other windows (called top-level base widgets)
are implemented as children (or grandchildren, etc.) of the top-level base.
The top-level base is a base widget defined without a parent parameter.
It is by definition it's own window on the display.

Here is an example with two graphics windows inside a top-level
base window:

PRO Example
tlb = Widget_Base(Row=1)
drawID_1 = Widget_Draw(tlb, XSize=300, Ysize=300)
drawID_2 = Widget_Draw(tlb, XSize=300, Ysize=300)
Widget_Control, tlb, /Realize
Widget_Control, drawID_1, Get_Value=wid_1
WSet, wid_1
Plot, Findgen(11), Title='Window 1 Plot'
Widget_Control, drawID_2, Get_Value=wid_2
WSet, wid_2
Plot, Reverse(Findgen(11)), Title='Window 2 Plot'
END

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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Colour modes other than 256
Next Topic: Child window

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

Current Time: Wed Oct 08 19:22:54 PDT 2025

Total time taken to generate the page: 0.00522 seconds