Home » Community » Newbie corner » menu Tree
Re: menu Tree [message #32386 is a reply to message #32382] |
Sun, 15 May 2011 08:01 |
nlneilson
Messages: 644 Registered: January 2010 Location: U.S. California. Mojave &...
|
Contributor |
|
|
Hi Sender Ghost
I tried what you suggested and thanks for posting the code.
It's much easier to do this:
label_1L.SetLabel(\
"Atlanta\n\
Brownsville\n\
Dallas-FtWorth\n\
Detroit\n\
Omaha\n\
Phoenix\n\
SaltLake");
rather than how I did it:
void sec1L_List(Bar& bar) {
bar.Add("Billings", THISBACK(s1L));
bar.Add("Cincinnati", THISBACK(s1L));
bar.Add("ElPaso", THISBACK(s1L));
bar.Add("GreenBay", THISBACK(s1L));
bar.Add("Houston", THISBACK(s1L));
bar.Add("Jacksonville", THISBACK(s1L));
bar.Add("KansasCity", THISBACK(s1L));
bar.Add("Montreal", THISBACK(s1L));
bar.Add("Houston", THISBACK(s1L));
bar.Add("SanFrancisco", THISBACK(s1L));
bar.Add("Seattle", THISBACK(s1L));
bar.Separator();
bar.Add("Fairbanks", THISBACK(s1L));
bar.Add("Seward", THISBACK(s1L));
}
With my code it was necessary to click on one of the names in the "text box".
With "label.SetLabel" and "bar.AddNC(label)" I had to have a THISBACK in the text box and that is triggered with a mouse over rather than a click.
I would like to be able to click on 1L.
It may be simple but I don't understand how or why.
Attached is a modification of your code with a .upp file.
Neil
[Updated on: Sun, 15 May 2011 08:05] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun May 05 14:39:05 CEST 2024
Total time taken to generate the page: 0.02386 seconds
|