| 	
Prev: 6th Int. Conf. on Technology and Medical Sciences – Announce & Call for Papers Next: literal . in bracket expression 	
		 From: pmarin on 4 Apr 2010 07:09 I want to center a window in another window and tk::PlaceWindow seems to do it but I don't find the documentation. 	
		 From: Donal K. Fellows on 4 Apr 2010 10:55 On 4 Apr, 12:09, pmarin <pacog...(a)gmail.com> wrote: > I want to center a window in another window and tk::PlaceWindow seems > to do it but I don't find the documentation. It's a procedure that is part of Tk's implementation. We don't document it because we don't support it. Donal. 	
		 From: Alexandre Ferrieux on 4 Apr 2010 12:52 On Apr 4, 1:09 pm, pmarin <pacog...(a)gmail.com> wrote: > I want to center a window in another window and tk::PlaceWindow seems > to do it but I don't find the documentation. If you're talking about centering a toplevel relative to another one, then indeed a few [winfo] and [wm] commands are enough, and tk::PlaceWindow shows how to. Now if it's for an internal widget, [pack] is your friend (with - expand yes and -anchor center). -Alex |