Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Top level window gets placed behind current window?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello,

I have been having trouble getting my main window to pop-up as the top level window. It is a GUI that I have created within another program. Whenever the GUI is activated its first (main window) always gets placed behind the programs main window. How do I force the GUI window to pop-up on top of the programs main window?

Thanks for any help!
 
wm deiconify . (unless you've already done that) Bob Rashkin
rrashkin@csc.com
 
Bob,

I have already tried that and still no luck?! Any other thoughts?

Thanks.
 
I tried that:
Code:
  toplevel .t
  bind .t <FocusOut> {  lower .; focus -force .t }
  lower .; focus -force .t
and found it working.

I understood from Avia that [wm deiconify .] is a Windows trick.

Good luck

ulis
 
Great thanks guys. Ulis' method worked great. I appreciate all the help!

Thanks,

mabbs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top