This post originated from an RSS feed registered with Agile Buzz
by James Robertson.
Original Post: Bf now adapts to text changes
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
I've had a setting in BottomFeeder to allow the user to modify text sizes for awhile now. The problem is, it never worked quite right, and I always pushed working on it off. Well, I spent the last 2 days taking a look at the issue. There were two things, ultimately very simple:
I needed to 'kick' the tree widget with the updated text information
The grid widget was utterly ignoring text settings
The latter problem was hard to track down, but easy to fix. There's a widget used in the dataset for read-only cells (which is what Bf uses). The problem? No matter what text setting you picked in settings, the dataset was always using the font that had been set when the specification for the GUI was made. So I simply changed the method to grab the current setting instead of the one being handed to it. The result? If you change text settings, the dataset now does the right thing