Login  Register

Macros: change Dialog checkbox state without clicking it?

Posted by Bill Christens-Barry-2 on Sep 14, 2017; 6:59pm
URL: http://imagej.273.s1.nabble.com/Macros-change-Dialog-checkbox-state-without-clicking-it-tp5019373.html

In a macro, I would like to create a Dialog in which changing the checked states of some "control" checkboxes would change the state of other
"dependent" checkboxes. I envision that whenever a control checkbox is checked or unchecked, some logic would decide which of the dependent checkboxes should have their state changed and those changes would immediately be made. The Dialog would remain active for further interaction.

In order to programmatically alter the state of checkboxes, I suppose there would need to be a way to refer to previously created checkboxes (~ Dialog.getState(checkbox)) and a command for changing them (~ Dialog.setState(checkbox, state)). I haven't found any way to do either in the macro language.

Is what I describe currently possible using the ImageJ macro language or other scripting language?

Thanks.

Bill Christens-Barry

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html