Re: Child window [message #14573] |
Sun, 07 March 1999 00:00 |
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
|
|
|