Create menus with transcript code
Posted: Mon Nov 29, 2010 1:45 am
I am trying to write a program where menus would be read from a file. This could be an XML or CSV file or some other format. I will probably just use XML, but the format isn't important to me. The file would contain menu names and menu item names for each menu name. I want to set up a menu bar and populate the menus and menu items using code. I wouldn't need more than one menu bar. I have figured out how to create a button, but I can't figure out how to create an option control. My understanding is that the menubar is simply a group of menus, which are pulldown controls.
I may be going about this the wrong way, and there might be an easier way to achieve what I want. Right now, I am wondering if someone can explain how I can create pulldown menus through code or create regular buttons and change them to pulldown controls. If there is a better way than my approach, I would be interested in learning that as well.
I may be going about this the wrong way, and there might be an easier way to achieve what I want. Right now, I am wondering if someone can explain how I can create pulldown menus through code or create regular buttons and change them to pulldown controls. If there is a better way than my approach, I would be interested in learning that as well.