Home » Community » Newbie corner » menu Tree
menu Tree [message #32108] |
Mon, 25 April 2011 07:26 |
nlneilson
Messages: 644 Registered: January 2010 Location: U.S. California. Mojave &...
|
Contributor |
|
|
Hope this will help someone.
I forgot how it was done so spent a couple hours searching.
Nothing was found in the /examples or /tutorial but in /reference/TreeCtrl that made my head hurt, too much stuff to hide what I was looking for, a simple example.
void MainMenu(Bar& bar) {
bar.Add("File", THISBACK(FileMenu));
bar.Add("Layers", THISBACK(LayersMenu));// this is a sub menu
...
// Layers sub-menu
void LayersMenu(Bar& bar) {
bar.Add("FAA", THISBACK(FAAMenu));// this is a sub sub menu
bar.Add("Marble", THISBACK(SetMarble)).Check(marbleX);
...
// FAA sub-menu
void FAAMenu(Bar& bar) {
bar.Add("WAC", THISBACK(Setwac)).Check(wacX);
bar.Add("WAC sep", THISBACK(WACsepMenu));// this is a sub sub sub menu
...
After that the code was easy to implement.
Neil
-
Attachment: EFB_menu.jpg
(Size: 36.95KB, Downloaded 303 times)
[Updated on: Mon, 25 April 2011 07:35] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Apr 26 00:55:55 CEST 2024
Total time taken to generate the page: 0.05593 seconds
|