Choose Marker Dialog
hegedus
Hi,
I am building a user interface to allow easy setting of f(z) functionality of traces based on other waves such as text waves. I have found choosecolor operation that will allow me to set colors - thank you very much.
Question: Is there an equivalent for the markers? I know it shows up in the modify trace dialog window, but is there a way I can get it where it returns the marker number that I can stick into my wave?
Andy
Andy,
Maybe the PopUpMenu operation would be of use. You can use keywords to specify special use for the menu. From the help file:
Jeff
December 11, 2020 at 08:37 am - Permalink
Cool
That works. Follow on question is there a key that goes from marker number to its corresponding escape code?
Andy
December 11, 2020 at 09:46 am - Permalink
From the PopupMenu reference doc, waaaaay down in the details section: "For a marker pop-up, the mode value is the marker number plus one, and marker 0 (the + marker) is mode=1." I'm not sure what you mean by "escape code". Are you referring to a textbox \W escape code? If so, you would simple use sprintf to put two or three characters representing that marker number into an escape code string.
December 11, 2020 at 10:04 am - Permalink
Got it.
Thanks
Andy
December 11, 2020 at 10:07 am - Permalink