I know I am being stupid here but --- I am learning as I go.
I am trying to add a menu to the listview demo.
I added the following to the onInitDialog section:
menu m;
m.BeginMenu();
m.MenuTitle("&File");
m.MenuItem("Quit",0,1);
m.MenuTitle("&Options");
m.MenuItem("Clear",0,2);
m.EndMenu();
It compiled but did not display a menu - what did I fail to do?
I assume I failed to associate it properly.
You have to use the SetMenu function of the window class, which dialog inherits from:
win.SetMenu(m.Detatch());
Well I guess I need a complete example. I added that then got an error about 'win'.
I moved stuff around but still no luck.
win. needs to be whatever you named your dialog, I think
look at the modplayer source
That worked - thanks