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

Home » Public Forums » archive » Floating 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
Floating base widget [message #17895] Wed, 17 November 1999 00:00 Go to previous message
Daniel Peduzzi is currently offline  Daniel Peduzzi
Messages: 29
Registered: June 1999
Junior Member
I would like to create a window which can never be obscured by its
group leader, but I can't seem to force the window to remain "on top."

According to the IDL documentation, by setting the "floating" keyword
when creating a top-level base, the "floating base widget will always
appear above the base specified as the group leader."

In the sample code below, the second base is designated as "floating",
but I can easily obscure it with the group leader. I'm running IDL 5.2
on a Sun SPARC.

;=========================================================== ===================
pro done, event
widget_control, event.id, get_uvalue=tlb
widget_control, tlb, /destroy
return
end

; Create simple main window
tlb = widget_base(title='Main Window', xsize=100, ysize=100)
widget_control, tlb, /realize
xmanager, 'mainwindow', tlb, /no_block

; Create another window with main window as group leader
popup = widget_base(title='Popup', tlb_frame_attr=31, /floating, group_leader=tlb)
cancelID = widget_button(popup, val='Cancel', event_pro='done', uval=tlb)

widget_control, popup, /realize
xmanager, 'popup', popup, /no_block

end
;=========================================================== ===================

Is there something else I have to do to get the desired behavior?


Dan Peduzzi
peduzzi@mediaone.net
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Obtaining the number of the current color table
Next Topic: X window display sizes

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

Current Time: Wed Oct 08 15:36:31 PDT 2025

Total time taken to generate the page: 0.00455 seconds