Thanks xtom
I've just finished adding a few bits and bobs:
- Radio items
- Sub items
- More flexibility in the set property commands
- Flag value of 2 alternates properties, so SET VISIBLE..2 would hide it if it was visible and show it if it was hidden
- Input Box
- Ability to read various item properties
- Menu items are now created with random internal names, so you can create two items with the same name without the problem of a conflict
However before I can get this lot working with DBP, I need to get optional parameters working.
For example, the SET VISIBLE command would now be as follows:
SET VISIBLE MainMenu,
MenuItem,
SubItem,Flag
I looked at the Basic2D commandset, where the DOT command has an optional parameter, and it looks something like this.
DOT%LL%Dot
DOT%LLD%Dot
I tried doing
SET CHECKED%LLL%SetCheckedMI
SET CHECKED%LLLL%SetCheckedSI
but it complains of a duplicate command... grrr.
Does anyone know how to deal with this?
I could create three seperate commands depending on which level of menu item you wanted to change, but I thought this would be a bit messy. Getting a handle to the item is another possibility but that would be un-DBP like and confusing. Sigh.