Hi all,
I am just starting using imageJ and do some macro recording. I can't find the code/parameter to program the size of the image window. I want to have a fixed size and fixed position on my screen. Also how can I program that the macro comes as a button in the menu bar. Thanks in advance for the help. Kindest regards, Martin Braekevelt Global Metallographic Lab Process Owner. NV. BEKAERT. ::DISCLAIMER:: This e-mail is confidential and intended for use by the addressee only. If you are not the intended recipient, please notify us immediately and delete this e-mail, as well as any attachment. -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi Martin,
for macro functions, including those that are no recorded, see https://imagej.nih.gov/ij/developer/macro/functions.html In your case, it's probably the setLocation functions that you are interested in https://imagej.nih.gov/ij/developer/macro/functions.html#setLocation --- For a button to start the macro, you can use the ActionBar plugin by Jerome Mutterer: http://imagejdocu.tudor.lu/doku.php?id=plugin:utilities:action_bar:start This will give you a separate panel with any number of buttons you like. You can also use one of the fields in the ImageJ main panel for an 'Action tool', see https://imagej.nih.gov/ij/developer/macro/macros.html#action Michael ________________________________________________________________ On 2016-08-29 10:02, Braekevelt Martin wrote: > Hi all, > > I am just starting using imageJ and do some macro recording. I can't > find the code/parameter to program the size of the image window. I > want to have a fixed size and fixed position on my screen. Also how > can I program that the macro comes as a button in the menu bar. > Thanks in advance for the help. > > Kindest regards, > > Martin Braekevelt -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Dear Michael,
Thanks for the help. Maybe a stupid question but where can I find the icons to customize my own created action bar ? I only can find some color icons /buttons in the icons folder. Thanks in advance, Kindest regards, Martin. -----Original Message----- From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Michael Schmid Sent: Monday, August 29, 2016 3:52 PM To: [hidden email] Subject: Re: window handling Hi Martin, for macro functions, including those that are no recorded, see https://imagej.nih.gov/ij/developer/macro/functions.html In your case, it's probably the setLocation functions that you are interested in https://imagej.nih.gov/ij/developer/macro/functions.html#setLocation --- For a button to start the macro, you can use the ActionBar plugin by Jerome Mutterer: http://imagejdocu.tudor.lu/doku.php?id=plugin:utilities:action_bar:start This will give you a separate panel with any number of buttons you like. You can also use one of the fields in the ImageJ main panel for an 'Action tool', see https://imagej.nih.gov/ij/developer/macro/macros.html#action Michael ________________________________________________________________ On 2016-08-29 10:02, Braekevelt Martin wrote: > Hi all, > > I am just starting using imageJ and do some macro recording. I can't > find the code/parameter to program the size of the image window. I > want to have a fixed size and fixed position on my screen. Also how > can I program that the macro comes as a button in the menu bar. > Thanks in advance for the help. > > Kindest regards, > > Martin Braekevelt -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi Martin,
The icons for the macro toolbar are defined in the action tools command as a hexadecimal code. This is described here: https://imagej.nih.gov/ij/developer/macro/macros.html#tools Hope this helps, Volko On 01/09/2016 05:11, Braekevelt Martin wrote: > Dear Michael, > > Thanks for the help. > Maybe a stupid question but where can I find the icons to customize my own created action bar ? > I only can find some color icons /buttons in the icons folder. > > Thanks in advance, > Kindest regards, > > Martin. > > -----Original Message----- > From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Michael Schmid > Sent: Monday, August 29, 2016 3:52 PM > To: [hidden email] > Subject: Re: window handling > > Hi Martin, > > for macro functions, including those that are no recorded, see > https://imagej.nih.gov/ij/developer/macro/functions.html > > In your case, it's probably the setLocation functions that you are interested in > https://imagej.nih.gov/ij/developer/macro/functions.html#setLocation > > --- > > For a button to start the macro, you can use the ActionBar plugin by Jerome Mutterer: > http://imagejdocu.tudor.lu/doku.php?id=plugin:utilities:action_bar:start > > This will give you a separate panel with any number of buttons you like. > > You can also use one of the fields in the ImageJ main panel for an 'Action tool', see > https://imagej.nih.gov/ij/developer/macro/macros.html#action > > Michael > ________________________________________________________________ > > On 2016-08-29 10:02, Braekevelt Martin wrote: >> Hi all, >> >> I am just starting using imageJ and do some macro recording. I can't >> find the code/parameter to program the size of the image window. I >> want to have a fixed size and fixed position on my screen. Also how >> can I program that the macro comes as a button in the menu bar. >> Thanks in advance for the help. >> >> Kindest regards, >> >> Martin Braekevelt > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |