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.

Tuesday, October 13, 2009

Improvements

Last week I worked on solving many issues that are pending of solution. Looking at the ControlExample I solved issues with the List class. Many of the display problems were taken care of. Now the code seems to show the List exactly as the Window version does, except for the vertical scrollbar that in OS/2 is always visible.

I also solved some other minor issues like the color of the tabs in tabfolder and I began the imlementation of clipboard support in the Text class.

Also today I fixed the font dialog exception and now the font can be selected for any of the controls.

Thursday, October 1, 2009

Clipping away

It took me a long time to discover why the composite classes didn't repaint their backgrounds after being clipped. At the end thes solution was so simple that's not even funny.

Well with that problem left behind, I have a whole lot of more things to do. First I will go over the implementation of menus. So far everything seems to work OK. I added the mnemonics and they work just fine.

I dicovered a new bug on the creation of the acceletators table. I going through the C JNI implementation.There seems to be a problem. I'm also looking into adding the icons to the menus and the implmentation of the progress bar using the slider control.

The easy part is to finish the mouse events (at least of the second button).

Well, let's go back to work now.