From: Jeff H. <jeffh@ActiveState.com> - 2005-07-22 17:32:30
|
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, or > even whether or not it could be used to turn off the aqua button > style...Is there a way to do this? There isn't enough control over the native stuff on aqua, which has the most restrictive of standard native controls. Until we have tile in the core (target 8.5), we shouldn't mess with what's there too much. However, I do believe that once tile (ttk::) and classic Tk are always available, the classic Tk controls should revert to the unix styles in some areas (specifically, buttons and entries). tile will take over handling native theming in a much more consistent way, and the classic Tk controls will be available for special case UI needs (which are common). In the meantime, I'll look into making a magic var, like I did for themed toplevels, that might affect that parameter. Jeff |