From: Jeff H. <jeffh@ActiveState.com> - 2005-07-22 17:44:22
|
> james tittle wrote: > > ...the following code produces a "color-swatch"-kind of button on > > tkX11, but on Tkaqua it just draws a blank aqua-type button: > > > > button .btn -background [format "#%6.6x" 16579836] -activebackground > > [format "#%6.6x" 16579836] -font {courier 2 normal} -padx 7 > > -pady 6 pack .btn > > > > ...looking thru the code, I see that there's a "macButtonPtr- > > >usingControl" parameter, but haven't found where it can be set, Specific to usingControl, you will find that the result of macosx/tkMacOSXButton.c:TkMacOSXComputeDrawParams controls whether we draw using a control or not. Essentially the logic is, if we are a button, and button has no image or bitmap, has no clipping, may have an indicator, and a few other variations, then it is a "control", otherwise it is custom (or a label). Jeff |