Tuesday, December 18, 2007

back on track again

After a pause I'm back at the code again. So far I have only manage to get a handle to the menu, I had to implement the WinPopupMenu API, and I'm thinking that maybe I should go ahead and do the same with WinCreateMenu. Right now I'm using WinCreateWindow with WC_MENU as the window class.

Next, implement the rest of the methods.

Monday, December 10, 2007

Pretty lost

After going all the steps I described before I began to come across some problems caused by my ignorance.
The first thing I noticed was that Menu class derives from Widget class, that means you skipped the whole Control class tree. Looking at the Win32 code I see the use of OS.CreateMenu() to create a menu with a bar and OS.CreatePopupMenu () to create a popup menu.
You could argue that we could use WinCreateMenu or WinCreateWindow with WC_MENU class to create a menu with a bar and WinPopUpMenu to create a popup. Looking at the docs clearly it takes a lot more than just calling those APIs to come up with a menu in OS/2. First question: is this so?.
The menu API is rich and I'm pretty confident that once I have a handle of a living menu we could quickly replicate the behavior we need.
Any ideas?. In any case I'm going to start calling these APIs and finding out what they do, but in case anyone has experience a helping hand would be reslly good.

Tuesday, December 4, 2007

Trying to set the Env.

I'm trying to set 7up the environment needed to compile the project using the branch for Watcom.

I installed OW and downloaded ANT. I already have Java141. I modified the env.cmd to point to my directories... now what. I realize there where no ant.cmd under the branch.... mmm wonder if I'm missing a big chunck of something.

I also finished adding the C stuctures and created the swt009_08 testcase that will be the base to test the Menu class.

Here goes a picture of the Group testscase