Login  Register

Re: close ActionBar windows programmatically?

Posted by jmutterer on Feb 11, 2009; 11:27pm
URL: http://imagej.273.s1.nabble.com/close-ActionBar-windows-programmatically-tp3693742p3693743.html

Dear Bruce,

You can close an ActionBar using javascript, and you can call javascript
from a macro with the eval function. This will look like this:

title = 'Demo'; // the ActionBar's title
if (isOpen(title)) {
js ='title="'+title+'";'+
'WindowManager.getFrame(title).dispose();'+
'WindowManager.removeWindow(WindowManager.getFrame(title));';
eval ('script',js);
}

Sincerely,

Jerome


On Wed, Feb 11, 2009 at 11:34 PM, b holi <[hidden email]> wrote:

> Can ActionBar windows be closed programmatically?
>
>
> Regards,
>
> Bruce
>