Hi Mark,
I tried your suggestion, but I lose the coloring in the process. Here is the behavior that I'm noticing, let me know you can reproduce it as well (I'm using JMP 11 Pro and Standard).
If I place the line 'theBox << Set Selectable Rows(0);' at the end, I lose the coloring (the rows are no longer selected).
GuiWindow = NewWindow("SMS1");
theBox = TableBox(
stringColBox("State",{"Florida", "Texas", "Main", "California"}),
NumberColBox("Width",{45,66,88,13}),
NumberColBox("Length",{67,34,1,78}),
NumberColBox("Depth",{13,65,32,56}));
theBox << Set Selectable Rows(1);
GuiWindow << Append(theBox);
dt = theBox << Make into Data Table( invisible );
rs = dt << Get Rows Where( :Length > :Depth );
theBox << Set Selected Rows( rs );
theBox << Set Selected Row Color( "red" );
theBox << Set Selectable Rows(0);
If I place the line anywhere else after declaring the theBox object, the rows are selected, and colored as expected, but the user can select other rows, and thus change the initial output.
GuiWindow = NewWindow("SMS1");
theBox = TableBox(
stringColBox("State",{"Florida", "Texas", "Main", "California"}),
NumberColBox("Width",{45,66,88,13}),
NumberColBox("Length",{67,34,1,78}),
NumberColBox("Depth",{13,65,32,56}));
theBox << Set Selectable Rows(1);
GuiWindow << Append(theBox);
theBox << Set Selectable Rows(0);
dt = theBox << Make into Data Table( invisible );
rs = dt << Get Rows Where( :Length > :Depth );
theBox << Set Selected Rows( rs );
theBox << Set Selected Row Color( "red" );