Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^5: Tk overrideredirect topwindow on top

by jcb (Parson)
on Oct 08, 2019 at 22:24 UTC ( [id://11107223]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Tk overrideredirect topwindow on top
in thread Tk overrideredirect topwindow on top

Another approach, if it is supposed to be a modal pop-up and there is no significant cost to canceling is to $dialog->bind('<Leave>', 'destroy'); so that it will go away if the user moves the pointer out of the window. I have used $menu->bind('<Leave>', 'unpost'); to produce context menus that remain up only as long as the pointer remains over the menu, which have been convenient for my uses.

I have not actually tried binding <Visibility> events, since I have not needed them in any of my programs yet. Does this need to work only for you or is this to be distributed? If it only needs to work for you, you might be able to configure your window manager to keep the dialog box on top and avoid the need for override-redirect.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11107223]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-20 03:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found