I can create options for Combo Box with pop up tips using something like that (found this experimentally):
Names Default To Here( 1 );
list = {"One" ("This is One"), "Two" ("This is two")};
New Window( "Example",
cb = Combo Box(
list,
selection = cb << GetSelected();
Print( selection );
)
);
But then when I look at the selection - it only has "One" or "Two" as a result of << Get Selected.
Two questions:
1. What kind of data structure is the list above? It's a list of what? list[1] gives me exactly "One"("This is one") - is it a string, or what is it?
2. How do I work with this list, let's say if it was a normal list like {"One", "Two"}, I would put in a script part something like this:
if(
selection == list[1], doThis,
selection==list[2], doThat
);
But how do I do it when I have pop up tips included?