Ed Leafe wrote: > I have code that changes the ForeColor of a label dynamically, and I > noticed that after a couple of such changes, the label was much > smaller. I traced it down to the macFontScaling code in dFont. I > understand the intention of the code, but there is something wrong in > the implementation, and I'm not sure where it is. > > I've included code for a test case. Run it on a Mac, and click on the > blank area of the form. You'll notice that the label not only changes > color as expected, but steadily shrinks.
That's definitely a feature! ;)
I'll check it out right now and see if there's something obvious in the implementation.
One thing I notice is that the font size decreases by a *fixed* amount each time (.75 pt).
Paul
©2008 Paul McNett |