From: Jim I. <ji...@ap...> - 2008-03-18 00:28:33
|
To color the little bits of the square button area that peek around the edges of the round Mac OS X push button, set the - highlightbackground of the button. That actually makes sense in terms of X11 Tk because if you had a non- zero highlightthickness, and you changed the background of the containing widget, you'd still see a little band around an unhighlighted button that was the color of the default background. So you had to set the highlightbackground to the new background color as well. Jim On Mar 17, 2008, at 5:15 PM, Brad Pepers wrote: > Is there a way to set the button background? Or to make it take on > the background of the widget it is on top of? For instance on the Mac > I do this: > > wm geometry . 300x300 > button .b -text "Hello" > grid config .b -row 0 -column 0 > > This looks good since the border around the rounded button is the same > color as the background of "." but what if its changed: > > . configure -background "#007fff" > > Now you get a light blue window with a button in the middle but the > button still is in a white square. Tried to change it like this but > none of these work: > > .b configure -background "#007fff" > .b configure -activebackground "#007fff" > > Is there a way to solve this on the Mac? Is it to do with using > native widgets? > > -- > Brad > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Tcl-mac mailing list > tc...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-mac |