Feb 12, 2007 #1 MarioCX Technical User Joined Feb 12, 2007 Messages 1 Location 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!
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!
Feb 12, 2007 #2 ulis Programmer Joined Oct 12, 2001 Messages 429 Location FR 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: http://wiki.tcl.tk/wmhttp://wiki.tcl.tk/focus (replace wiki by wfr if you speak french) HTH ulis Upvote 0 Downvote
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: http://wiki.tcl.tk/wmhttp://wiki.tcl.tk/focus (replace wiki by wfr if you speak french) HTH ulis