This might be one case where Global Window Handler could be used with with an add-in / toolbar item to create the handler (or use startup script).
Set Global Window Handler(
Function({window},
Local({tebs},
tebs = window << XPath("//TextBox[text()='Legacy Control Charts are being removed in JMP 19. Please use Control Chart Builder from the Quality and Process menu instead.']");
If(N Items(tebs) > 0,
tebs << Visibility("Collapse");
Write("\!N", N Items(tebs), " legacy text boxes hidden from ", window << Get Window Title);
wait(0);
);
);
);
);
Run that script and then create legacy control chart to see how it works
Names Default To Here(1);
dt = Open("$SAMPLE_DATA\Tablet Measurements.jmp");
cc = dt << Control Chart(
Group Size(1),
KSigma(3),
Chart Col(:Weight, Individual Measurement, Moving Range)
);
Write();
You could also just take the function from the window handler and use it as a function which users could use.
Names Default To Here(1);
hide_legacy_cc_text = Function({window}, {Default Local},
tebs = window << XPath("//TextBox[text()='Legacy Control Charts are being removed in JMP 19. Please use Control Chart Builder from the Quality and Process menu instead.']");
If(N Items(tebs) > 0,
tebs << Visibility("Collapse");
Write("\!N", N Items(tebs), " legacy text boxes hidden from ", window << Get Window Title);
wait(0);
);
);
dt = Open("$SAMPLE_DATA\Tablet Measurements.jmp");
cc = dt << Control Chart(
Group Size(1),
KSigma(3),
Chart Col(:Weight, Individual Measurement, Moving Range)
);
hide_legacy_cc_text(cc);
-Jarmo