Login  Register

Re: Dynamic text window

Posted by mattjackson on Mar 18, 2015; 3:45pm
URL: http://imagej.273.s1.nabble.com/Dynamic-text-window-tp5011982p5012042.html

I don't have a simple answer for you, but I've created several renditions of a dialog box (see Built-in Macro Functions, Dialog. series) that is contained within a for loop. I use indices or true/false statements to activate or disable certain portions of the dialog box using if,then statements. I'm essentially scanning through series of ROIs (numbered in the for loop), and if an option is changed by the user, the true/false variable changes, the if loop is activated/disabled, and the for loop index is reduced by 1 so that the same ROI is displayed on the next loop but the dialog box has changed.

I would post an example, but the logic is parsed out over several hundred lines of code. Hence, I don't have a simple answer, but this type of structuring can be coded in IJ macro language.