04-10-2005, 07:18 AM
I've got a UDT that describes a menu item:
And I've got a UDT that describes an entire menu:
See how that works - my menuing code will handle submenus by having an item point to them. But it's circular - menuItem requires menu, and menu requires menuItem.
I have to keep menu a structure, because it's used in the menuBar structure later.
Is this possible in FB or will it be? Is there a better (or easier) method of doing this?
Code:
type menuItem
name as string
type as menuItemType
icon as bitmap pointer
submenu as menuList pointer
height as integer
font as font pointer
properties as long
end type
And I've got a UDT that describes an entire menu:
Code:
type menuList
numitems as integer
itemlist as menuItem pointer
end type
See how that works - my menuing code will handle submenus by having an item point to them. But it's circular - menuItem requires menu, and menu requires menuItem.
I have to keep menu a structure, because it's used in the menuBar structure later.
Is this possible in FB or will it be? Is there a better (or easier) method of doing this?