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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Toplevel Window Without Decoration (Border) with Entry Box

Status
Not open for further replies.

MarioCX

Technical User
Feb 12, 2007
1
IT
I tried to create a toplevel window with an entry box without decoration and not to move it.
(Pardon my English).

In Window ambient that's all right, but it's not the same in Unix or Linux.

Can you help me?
I hope!!
Thanks!

 
A toplevel without decoration and that the user can't move,
containing an entry box.

This appears as a crude entry box displayed on the screen.

Code:
  package require Tk
  toplevel .top
  entry .top.entry -bd 1 -relief solid 
  grid .top.entry
  wm overrideredirect .top 1
  wm geometry .top +100+100
  focus .top
  focus .top.entry

The magic here is with wm overrideredirect.
The wm geometry places the window.
The 2 focus permit the entry to get the keyboard input.

For more info:

(replace wiki by wfr if you speak french)

HTH

ulis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top