Hi,
I'm writing a dashboard at the moment in which I'd like to offer the user a choice of the marker symbol that will be used in a chart that will be created from the user's various selections.
I'd like to add an icon to each element in the list of options which shows what each symbol looks like, along the lines of the little demo script I've attached in which I've used a few standard icons in the list box on the left to illustrate what I mean - but obviously I'd like to replace these with the real set of marker symbols shown on the right.
A quick search using the Built-In JMP Icons add-in suggests that these 32 symbols don't exist as predefined icons that I can access by name, so I'm assuming that I would need to create each one individually as a set of icons of my own. I could do that easily enough but it could get a bit tedious - so before I attempt it, can anyone suggest an easier way to tackle this?
Clear Log();
Marker_List = {{" Dot", "WinHelpSearch"}, {" Square", "WinHelpAbout"}, {" Cross", "SearchIndex"},
{" Filled Triangle", "Gear"}, {" Asterisk", "ListItemUp"}, {" Diamond", "ListItemDown"}};
Marker_ListBox = List Box( Marker_List );
New Window( "Markers",
H List Box(
Panel Box( "Select a Marker Symbol", Marker_ListBox ),
// Marker_ListBox,
Panel Box( "All 32 Marker Symbols",
Graph Box(
FrameSize( 300, 300 ),
Y Scale( -1, 16 ),
X Scale( 0, 7 ),
For(
i = 0;
jj = 15;,
i < 16;
jj >= 0;,
i++;
jj--;, // 16 rows, 2 columns
Marker Size( 3 );
Marker( i, {1, jj + .2} ); // markers 0-15
Marker( i + 16, {4, jj + .2} ); // markers 16-31
Text( {1.5, jj}, "Marker ", i ); // marker labels 0-15
Text( {4.5, jj}, "Marker ", i + 16 ); // marker labels 16-31
)
)
)
)
);
Many thanks