Menu

#1779 Aqua button compound changes incomplete

obsolete: 8.4.7
closed-fixed
5
2004-11-09
2004-10-27
No

Under Aqua, configuring a button with -compound and a
value other than none, then configuring it to none,
only partially updates the geometry and leaves the
text. This can yield strange effects such as having
the button text appear in the center of the button when
it is supposed to not appear at all, or shift the image
out of the center of the button. e.g.

pack [button .b -text Foo -image $img]
.b configure -compound top
.b configure -compound none

The problem appears to be that the Aqua native control
only has its text ("title") property changed when the
text for the button changes. It does not get re-set
when the compound setting changes to none.

The attached patch fixes the problem for me (note the
version in the diffs is from my repository, not
sourceforge's).

Discussion

  • Michael Kirkham

    Michael Kirkham - 2004-10-27
     
  • Vince Darley

    Vince Darley - 2004-11-09
    • status: open --> closed-fixed
     
  • Vince Darley

    Vince Darley - 2004-11-09

    Logged In: YES
    user_id=32170

    Applied patch to cvs HEAD.

     
  • Jim Ingham

    Jim Ingham - 2004-11-10

    Logged In: YES
    user_id=169107

    I added this to the 8.4 branch as well.