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
Re: Floating base widget [message #17954 is a reply to message #17895] Fri, 19 November 1999 00:00 Go to previous messageGo to previous message
Marc Schellens is currently offline  Marc Schellens
Messages: 14
Registered: November 1999
Junior Member
Daniel Peduzzi wrote:
>
> David Fanning wrote in message ...
>> Daniel Peduzzi (peduzzi@mediaone.net) writes:
>>
>>> 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."
>>
>> The documentation must have been talking about Windows
>> machines, because this floater really does float on my
>> Windows NT machine. No way I can get the first widget on
>> top of the second.
>>
>
> Argh...I'm definitely not seeing the same behavior, even
> though the docs do include Motif in the above description. :-(
>
> My intent was to present the user with a list of options
> in a popup window, triggered by a 3rd mouse button click
> in a draw widget. Depending upon the (x,y) location of the
> mouse click, the items in the list (selectable by the 1st
> mouse button) could be different.
>
> Everything works well except that the pop-up can get lost
> behind other windows, and it becomes a pain to look for because
> of its size. A floating base would have solved that problem.
>
> I guess what I'm trying to simulate is what happens when
> a user right-mouse-clicks on a bare desktop in a Microsoft
> environment (or close enough.)
>
> Can anybody point me in the right direction here?
>
> Dan
>
> Dan Peduzzi
> peduzzi@mediaone.net

Perhaps you can use something like this:

IF widget_info(ID,/VALID_ID) then widget_control,ID,/show

after every event (as last line in your eventhandler).
were ID is the ID of your 'floating' window.
This will re-raise you 'floating' window then.

Even though /FLOATING works fine on my Solaris machine.
So I guess this might be a problem of the window manager.
I am using KDE for Solaris.

hope this helps,
:-) marc
[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 17:29:48 PDT 2025

Total time taken to generate the page: 0.29186 seconds