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

Home » Public Forums » archive » floating widget problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
floating widget problem [message #38046] Mon, 16 February 2004 09:21 Go to previous message
kini is currently offline  kini
Messages: 6
Registered: February 2004
Junior Member
Dear IDL fans,

I have the following issue with widget handling:

I have a main screen to my program, namely screen_100. The top level
base widget for this happens to be "w_bas_main". I have created
another modal screen, screen_200 that has "w_bas_main" to be it's
group leader.

When I first run the program, I simply move the screen_100 to some
arbitrary position on the screen. When I invoked screen_200, I
expected the modal screen_200 to appear directly above screen_100,
possibly overlapping a certain area of screen_100 (as illustrated
below).

Sadly, modal screen_200 always appears at the left top corner of the
screen, no matter where the main screen, screen_100 is positioned.

...........................
.............. .
.. . .
.. SCR . .
.. 200 . . Had expected !
.. . .
.............. .
. .
. SCR 100 .
...........................

...........................
. .
. ............. .
. . . .
. . SCR . .
. . 200 . . Had expected !
. . . .
. ............. .
. SCR 100 .
...........................

.............
. .
. SCR . Reality !!
. 200 .
. . ...........................
............. . .
. .
. .
. .
. .
. .
. .
. .
. SCR 100 .
...........................

I have pasted the definitions of both screen_100 and screen_200 below.
Kindly help me fix the aesthetics of my program :).

;---------------------------
; Screen 100
;---------------------------

w_bas_main_100 = Widget_Base( GROUP_LEADER=wGroup, UNAME='w_bas_main'
$
,YOFFSET=5 ,SCR_XSIZE=800 ,SCR_YSIZE=620 $
,NOTIFY_REALIZE='init_screen_100' ,TITLE='TreeVaw � Ver 1.0' $
,SPACE=3 ,XPAD=3 ,YPAD=3 ,MBAR=w_bas_main_MBAR)

;---------------------------
; Screen 200
;---------------------------

wGroup = <widget ID of w_bas_main_100> ; w_bas_main belongs to screen
100

w_bas_main_200 = Widget_Base( GROUP_LEADER=wGroup, $
UNAME='w_bas_main_200' ,XOFFSET=5 ,YOFFSET=5 ,SCR_XSIZE=500 $
,SCR_YSIZE=400 ,TITLE='Image Processing Parameters' ,SPACE=3 $
,XPAD=3 ,YPAD=3 ,/MODAL,TLB_FRAME_ATTR=8, /FLOATING)

;---------------------------

PS: I have tried making the main screen 100 as floating. But the
following code generated by GUI builder keeps me from running the
program.

;---------------------------
; This is the troublesome piece of code
; that prevents me from declaring the
; main screen, screen_100 to be floating,
; as I do not know the group leader for the
; very first screen that I create
;---------------------------

if(N_Elements(wGroup) eq 0)then $
Message,'Group leader must be specified for Modal or Floating'+ $
' top level bases'

Kind regards, Ananth Kini
____________________________________________________________ _____

Ananth Kini, Masters in Computer Science, Dept. of Computer Science
Harvey R. Bright Bldg, TAMU, College Station, TX 77843
#4302, College Main, Apt 319, Bryan, TX 77801, Phone : 979-260-1954
[Message index]
 
Read Message
Read Message
Previous Topic: floating widget
Next Topic: Re: IDLitWindow Background Colour

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

Current Time: Sun Oct 12 03:34:48 PDT 2025

Total time taken to generate the page: 2.42980 seconds