Q: Titlebox read & PopUpMenu set?
Daniel G
It's just a simple problem,
I couldn't figure out how to read the title for a comparison (stringmatch(anotherString, TitleBox'sTitle)).
The title is not being set by a string variable, which is why ControlInfo + S_Value won't work (I suppose)...
Thanks for helping me out!
Hello Igor Community,
I have another small problem which I wasn't able to solve with the Igor help or the forum.
I have a popUpMenu (4 items, strings) which returns (ControlInfo - V_Value) values 0 to 3 with respect to the selected item. Is it possible to change the selected item by code - in a reversed manner of the (Controlinfo - V_Value) readout? I was only able to change the whole list of selectable items by (popupmenu MENUNAME value = STRINGLIST)...
February 28, 2012 at 04:29 am - Permalink
ControlInfo title0
sout= StringFromList(1,ListMatch(S_recreation, "title=*", ","),"\"")
print sout
but probably it can be done easier and I am not perfectly sure if the line above is really bug-free ... Of course you should first create a TitleBox named title0 for the above code to work.
Hope this helps!
Gregor
February 28, 2012 at 05:24 am - Permalink
Use:
PopupMenu pop0, mode=2 // select second item in the popup list
PopupMenu pop0, mode=3 // select third item in the popup list
PopupMenu pop0, mode=4 // select fourth item in the popup list
If you want to change the selection by string , use:
--Jim Prouty
Software Engineer, WaveMetrics, Inc.
February 28, 2012 at 09:03 am - Permalink
you did help me a lot!
March 7, 2012 at 06:47 am - Permalink