From: Alex T. <al...@tw...> - 2005-09-29 22:19:42
|
Alex Tweedly wrote: > Kevin Altis wrote: > >> I would just go ahead and add it as a new sample. The more the merrier. >> > Unfortunately, I've now seen what it looks like on the Mac. It needs > some work before I'll upload it :-( > > On the other hand, I do now have a Mac :-) > > Having some problems getting things set up well enough to do anything > useful - but hopefully in a day or two I'll get past that and be able > to test things against PythonCard for Mac as well as for Windows ... > > OK, done; Sudoku Solver is now added to the samples in CVS. It took some slightly funky sizer magic to get this to work, but it's now at least reasonable on Mac. The Mac always shows a scroll bar on a List component, so it makes the squares much larger than they were on Windows. On the Mac, the minimum size reported (by GetBestSize()) is a size that shows two lines of the list (which is enough because there's a scroll bar). But for this app, we really, really want all three lines to show - so I had to put in some platform-specific code to force the minimum size to be larger. Still have the problem that Mac doesn't properly show background colour for a List component, so it is a bit lacking in visual feedback compared to the Windows version. I tried using foreground colour instead, but it doesn't work right either. I'm going to keep trying to see if there's some other way to improve the visual feedback that will work. -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.8/114 - Release Date: 28/09/2005 |