Message from discussion centering 2 buttons...
The group you are posting to is a Usenet group
. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: "Sandeep V. Tamhankar" <stamh...@notes.cc.bellcore.com>
Subject: Re: centering 2 buttons...
@hci24.itd.nrl.navy.mil (Greg Trafton) wrote:
>here's what I'm trying to do:
> button $w.ok -text "OK"
> button $w.cancel -text "Cancel"
> pack $w.ok $w.cancel -side left -fill x
>I'd like the OK and Cancel butons centered. Unfortunately, the
>packing space for them is rather big (about 5x the length of both
>buttons), and I'd like them centered within the packing space.
If $w were packed with a "-fill x", take out the "-fill x". After that,
I'd say the only thing left is take out the "-fill x" from the above.
The result should be two buttons centered in your window.
Hope this helps.
Sandeep V. Tamhankar
Signaling Capabilities Analysis
The statements herein contained are my own and not those of my company.
You must Sign in
before you can post messages.
You do not have the permission required to post.