Choose Marker Dialog

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:

Colors, Color Tables, Line Styles, Markers and Patterns
You can create PopupMenu controls for color, color tables, line style (dash modes), markers, and patterns. To do so, simply specify the itemListSpec  parameter to the value keyword as one of "*COLORPOP*", "*COLORTABLEPOP*", "*COLORTABLEPOPNONAMES*", "*LINESTYLEPOP*", "*MARKERPOP*" or "*PATTERNPOP*". In these modes the body of the control will contain a color box, a color table (gradient),  a line style sample, a marker, or a pattern sample.

Jeff

Cool

That works. Follow on question is there a key that goes from marker number to its corresponding escape code?

Andy

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.