Cinu,
Menu bars are associated with a panel and can be created and edite4d programmatically without linking it statically to a panel in the UIR file. There are a set of functions for this in the UI library; you could start with something like this:
menuHandle = NewMenuBar (panelHandle);
FILE = NewMenu (menuHandle, "File", -1);
FILE_OPEN = NewMenuItem (menuHandle, FILE, "Open", -1, VAL_F1_VKEY, OpenFileCallBack/*Callback function*/, NULL);
There are other fuctions to set the attributes of the menu bar, the menues or the menu items. You can also use the UI to code converter to generate som example code on generating the menubar, just create a uir with a single panel and a menu bar; then go to tools and UI to code converter and take a look at the
c file generated.
Hope this helps, let me know if you have more questions.
Regards,
Juan Carlos
N.I.