--- In [email protected], "dleidinger" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> > What I'm wanting to achieve, and this is where I need help, is to
> > get the bar to hide itself when I either click on a button or press
> > enter on a button.
> 
> You could try the following small script:
> 
> local l_barname = "name of your bar"
> if(win.visible(win.handle(l_barname)))do
>    bar.hide(l_barname)
> else
>    bar.show(l_barname)
>    bar.keys(l_barname)
> endif 
> 
> Best regards Detlef
>

Thanks Detlef but your script seems to give the same result: after 
clicking/pressing a button, the bar remains visible until I actually move the 
mouse off it.

What I'm wanting is for the bar to behave like a menu in that once I 
click/press a button, it will hide. I want to stick with a bar rather than a 
menu for flexibility (ease of sizing etc).

I experimented with a "wait for event" approach where, after

*Bar ToMouse MyBar

I put

*Wait for mouseleft
*Bar Hide MyBar

Sure enough, the bar now did hide once I clicked a button BUT the command 
associated with the button was not executed.

Still stuck.


Reply via email to