Re: Macro question
Posted by
jmutterer on
Mar 29, 2007; 8:01am
URL: http://imagej.273.s1.nabble.com/Macro-question-tp3699928p3699929.html
A tool that runs a macro when the tool's button is pressed
is called an "Action Tool" and is described at
http://rsb.info.nih.gov/ij/developer/macro/macros.html#toolsJerome
On 3/29/07, James Norman <
[hidden email]> wrote:
>
> Hello All,
> I've developed a plugin that will manipulate an Roi, and I'm having
> some trouble figuring a good way to install it. My dilemma is that I
> need to have an icon in the toolbar for it, but a macro isn't
> sufficient because I need to change the cursor. I can't change the
> cursor because it looks like my macro is only run when I click on the
> image.
>
> Is there a way to execute some code when the macro tool is clicked on
> the toolbar, before the Image is clicked? This way I could set up the
> code for the cursor before the mouse goes over the image region.
>
> I also would need to get the Tool id of the marco that was installed.
> This way I set the cursor only when my tool is running.
>
> Let me know if there is another way of adding a tool to the Toolbar at
> startup other then a macro and adding it to the startup macros.
>
> Thanks,
> JC Norman
>