From: Kevin W. <kw...@co...> - 2015-02-16 21:16:05
|
Hello all, Marc Culler has graciously submitted a patch that cleans up the button metrics in HITheme on Cocoa; I've tested it via the Tk demo that comes with Wish, and everything looks as it should--the same as it did under Carbon and nearly indistinguishable from Cocoa. His patch simplfied the geometry layout and removed a lot of special-casing I had put in. Marc also submitted a smaller patch that tweaks the layout of ttk notebook tabs so they look consistent with Cocoa notebooks under Yosemite. Thanks to Marc for his work! I think we can declare the button updates complete at this point. All best, Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com |
From: Damon C. <da...@tc...> - 2015-02-16 21:33:12
|
The biggest problem I’ve run into on the Mac these days is dealing with PNGs with alpha channels. Drawing images on the Mac doesn’t seem to render the alpha channels properly, and they just end up as 100% opacity. At least from what I can tell. Does anyone know what I’m talking about? Great work on all the drawing code, everyone. We might just get there yet. :) Damon > On Feb 16, 2015, at 3:15 PM, Kevin Walzer <kw...@co...> wrote: > > Hello all, > > Marc Culler has graciously submitted a patch that cleans up the button > metrics in HITheme on Cocoa; I've tested it via the Tk demo that comes > with Wish, and everything looks as it should--the same as it did under > Carbon and nearly indistinguishable from Cocoa. His patch simplfied the > geometry layout and removed a lot of special-casing I had put in. > > Marc also submitted a smaller patch that tweaks the layout of ttk > notebook tabs so they look consistent with Cocoa notebooks under Yosemite. > > Thanks to Marc for his work! I think we can declare the button updates > complete at this point. > > All best, > Kevin > > -- > Kevin Walzer > Code by Kevin/Mobile Code by Kevin > http://www.codebykevin.com > http://www.wtmobilesoftware.com > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk > _______________________________________________ > Tcl-mac mailing list > tc...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-mac |
From: Kevin W. <kw...@co...> - 2015-02-16 21:41:56
|
On 2/16/15 4:32 PM, Damon Courtney wrote: > The biggest problem I’ve run into on the Mac these days is dealing with PNGs with alpha channels. Drawing images on the Mac doesn’t seem to render the alpha channels properly, and they just end up as 100% opacity. At least from what I can tell. Does anyone know what I’m talking about? That bug was fixed last year, AFAIR; another set of extensive patches courtesy of Marc Culler. What version of Tcl/Tk/OSX are you running? Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com |
From: Damon C. <da...@tc...> - 2015-02-16 21:54:15
|
[info patchlevel] says 8.6.1, but we may have gotten something that was a HEAD pull from somewhere in between releases. I’m not actually sure. Did that work ever make it into a tagged release, or is it still only available in Fossil? > On Feb 16, 2015, at 3:41 PM, Kevin Walzer <kw...@co...> wrote: > > On 2/16/15 4:32 PM, Damon Courtney wrote: >> The biggest problem I’ve run into on the Mac these days is dealing with PNGs with alpha channels. Drawing images on the Mac doesn’t seem to render the alpha channels properly, and they just end up as 100% opacity. At least from what I can tell. Does anyone know what I’m talking about? > That bug was fixed last year, AFAIR; another set of extensive patches courtesy of Marc Culler. What version of Tcl/Tk/OSX are you running? > > Kevin > > -- > Kevin Walzer > Code by Kevin/Mobile Code by Kevin > http://www.codebykevin.com > http://www.wtmobilesoftware.com > |
From: Kevin W. <kw...@co...> - 2015-02-16 21:57:03
|
On 2/16/15 4:54 PM, Damon Courtney wrote: > [info patchlevel] says 8.6.1, but we may have gotten something that was a HEAD pull from somewhere in between releases. I�m not actually sure. Did that work ever make it into a tagged release, or is it still only available in Fossil? 8.6.3 should work. K -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com |
From: Kevin W. <kw...@co...> - 2015-02-19 22:39:32
|
On 2/19/15 3:07 PM, Russell Owen wrote: > This sounds great and I would love to try it out. Unfortunately I get a > build error when I try to build the 8.5 branch of tk (log appended). I > am using the github mirror and the last commit to tk was: Jan Nijtmans fixed this (sorry it keeps cropping up). Try downloading and building again. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com |
From: Kevin W. <kw...@co...> - 2015-02-20 01:56:24
|
Hi Russell, On 2/19/15 7:23 PM, Russell Owen wrote: > With this fix for font metrics appearance of radiobutton and checkbutton > is spectacularly better on my MacOS system. Button sizes are now correct > for a variety of text labels, which has not been true for a long time. I > am very pleased! Thanks for the good words. Credit for the metrics improvements goes to Marc Culler, who has provided many essential patches on this project. > > Two remaining issues I observe: > - -bd (borderwidth) is ignored by checkbutton and radiobutton on MacOS, > though it is obeyed on unix. > - a checkbutton or radiobutton with only an icon (indicatoron=0 and no > text) shows no visible difference between being checked or unchecked. > The frame that should be present (and is present for buttons with text > and for all buttons on unix) is missing. The obvious workaround would be > to manually specify a borderwidth, but that is ignored due to the first > bug mentioned. > > Here is where we are getting into some areas where Mac buttons simply work differently than Unix buttons because they are natively rendered. To my knowledge Mac buttons--Carbon, Cocoa or HITheme--have never honored some configuration flags, such as border width, background, etc. There simply isn't a way to configure some things when the native API is used. I don't have a comprehensive list, but some of it is documented informally at the wiki or in the Tcl-Mac archives. (The same is likely true of Windows.) There are solutions for how to show a selected state for checkbuttons and radiobuttons with images. If you want to leave indicatoron=0, then consider setting the -selectimage flag--using a different image or bitmap when the state is selected. The Wish demo has an example of this, and you can probably find simple code examples online. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com |