Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

borders around buttons on a canvas.

0 views
Skip to first unread message

Richard M. Koolish

unread,
Mar 12, 1996, 3:00:00 AM3/12/96
to

In tk 4.1 there seems to be an extra border around some things that wasn't
there in 3.6. For example:

canvas .cv -background blue
pack .cv
button .b -text foo -background red -activebackground blue -relief flat
.cv create window 100 100 -window .b

There is a thin strip (2 pixels) of the original canvas background color around
the button. Is there any way to eliminate this. -bd 0 doesn't do it.

I also notice that the button is a lot larger than it was under 3.6.

Ron Natalie

unread,
Mar 14, 1996, 3:00:00 AM3/14/96
to
Richard M. Koolish (koo...@bbn.com) wrote:

: In tk 4.1 there seems to be an extra border around some things that wasn't


: there in 3.6. For example:

: canvas .cv -background blue
: pack .cv
: button .b -text foo -background red -activebackground blue -relief flat
: .cv create window 100 100 -window .b

: There is a thin strip (2 pixels) of the original canvas background color around
: the button. Is there any way to eliminate this. -bd 0 doesn't do it.

That's the highlight (actually the space reserved for the highlight).

-highlightthickness 0

if it bothers you...


0 new messages