Hello 

> I have a bar with a button that I would like to have the following
> actions:
> On Left-Click, bar is Topmost
   => win.ontop(win.gethandle(cl.GetLastBar()),1) 

> On Right-Click, bar is not Topmost
   => win.ontop(win.gethandle(cl.GetLastBar()),0) 

You can also do this with one button using ontop-toogle:
   => win.ontop(win.gethandle(cl.GetLastBar()),2) 
or => win.ontop(win.gethandle(cl.GetLastBar())) 


If the barname is fixed you could also define a hot-key to toggle 
topmost for this bar: 
   => win.ontop(win.gethandle("Barname")) 


Best regards Detlef

Reply via email to