PB makes menus easy, but for me it can get really confusing as to which popup belongs where and etc. So normally I just put my menu in a resource (So I can see better what goes where).
Now I find I have a need to clear things in my head so I decided to make a wrapper to keep things straight for me.
Usually my train of thought is there is a menu, and there is a menu-item.
One thing I can not make sense of is getting the number of menu-items as the docs say I can get from the Hi byte of the menu (popup) state.
Attached is my code I am working on, can anyone see my mistake in getting the number of menu items????
Now I find I have a need to clear things in my head so I decided to make a wrapper to keep things straight for me.
Usually my train of thought is there is a menu, and there is a menu-item.
One thing I can not make sense of is getting the number of menu-items as the docs say I can get from the Hi byte of the menu (popup) state.
Attached is my code I am working on, can anyone see my mistake in getting the number of menu items????
Comment