Monday, October 26, 2009

Fixing more things

As I go over the code I keep discovering new improvements and unimplemented features to work on.
Last week I corrected the default sizing of the Scale and Slider classes. Now the ControlExample shows them in a correct default size.
The one fix that was really important was the redrawing of the group class. This caused a mess everytime a control was redraw.

The problem happened because the original Win32 implementation uses some flags that indicate when the background should be restore. This feature does not exist in OS/2 so the solution was to implement the WM_PAINT in the group control and there take care of the background refresh. So far it works and now the groups refresh themselfs just fine in the ControlExample testcase.

Over the weekend I added support for the Innotek Font Engine. I tried to see if things worked. Unfortunally there was a lot of tweaking on the SWT port font code to circunvent PM bugs.
Clearly I need to go over the font code since using the FT2LIB screws the true type drawing. The change shows potential but needs some work. I left the engine turned off for now.

This week I'll try to fix the static control. It's now showing images. If I get brave I'll also try to subclass the WC_STATIC and create the conditions and tools to easily extent controls through this OS/2 feature.

No comments: