close ActionBar windows programmatically?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

close ActionBar windows programmatically?

b holi
Can ActionBar windows be closed programmatically?


Regards,

Bruce
Reply | Threaded
Open this post in threaded view
|

Re: close ActionBar windows programmatically?

jmutterer
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
>