NIH LISTSERV
NIH LISTSERV
IMAGEJ archives -- July 2004 (#173)

Go to: Previous Message | Next Message
Previous in Topic | Next in Topic
Previous by Same Author | Next by Same Author
Previous Page (July 2004) | Back to Main IMAGEJ Page


Options: Reply | Post a New Message | Join or Leave IMAGEJ, or Change Options | Search
View: Chronologically | Most Recent First | Wrap Text (Proportional Font) | Don't Wrap Text (Non-proportional Font)
*

References: <[log in to unmask]>
            <[log in to unmask]>
Content-Type: text/plain; charset=US-ASCII; format=flowed
Message-ID:  <[log in to unmask]>
Date:         Mon, 26 Jul 2004 13:50:05 -0500
Reply-To:     ImageJ Interest Group <[log in to unmask]>
Sender:       ImageJ Interest Group <[log in to unmask]>
From:         Wayne Rasband <[log in to unmask]>
Subject:      Re: Installing tool in main window that doesn't require an open
              image
In-Reply-To:  <[log in to unmask]>

> Wayne has added a nice feature that allows a macro to > run at startup, and he's also added a macro feature that > automatically installs a tool with associated icon in the > main ImageJ window. However, the tools in the tools > palette all operate on an image. Is there a way to install > a tool that doesn't require an open image? I'd like to have > a tool icon that launches a plugin. ImageJ runs a macro named <tool name>+" Options" when the user double-clicks on the tool icon. In ImageJ 1.33i or later, it runs a macro named <tool name>+" Selected" when the user single-clicks on the tool icon. Here is an example: macro "Sample Tool - C0a0L18f8L818f" { print("User clicked on the image using the tool"); } macro "Sample Tool Options" { print("User double-clicked on the tool icon"); } // requires ImageJ 1.33i or later macro "Sample Tool Selected" { print("User clicked on the tool icon"); } -wayne




Back to: Top of message | Previous page | Main IMAGEJ page

NIH LISTSERV Home Page

CIT
Center for Information Technology
National Institutes of Health
Bethesda, Maryland 20892
301 594 6248 (v) 301 496 8294 (TDD)
Comments and Assistance
Accessibility wheelchair icon