--- In [email protected], "Sheri" <[EMAIL PROTECTED]> wrote:
>
> I'm having some trouble with automatically positioning a floating 
bar.
> The bar initially has a right caption position. It is autoshown upon
> use in a script of 
> 
> cl.import(kbfile)
> cl.show(bname)
> 
> (where kbfile is an ini file for a bar named bname).
> 
> What I want to do is change the bar to floating, but have its 
initial
> position be unchanged.
> 
> I tried adding:
> 
> local myrec=win.getrect(bname)
> 
> win.getrect is documented as returning left top right bottom whereas
> cl.setrect is documented as needing cl, top, left, right, bottom


Doc is wrong.  setrect uses left top right bottom too.

You may have to close bar, reset to float and pos, then show bar.
> 
> So I tried manipulating myrec to look like what cl.setrect uses but
> that didn't work. If I used

> Any idea what I'm doing wrong?


No  How much does the bar move in the second case?  what does 
win.getrect return before and change in pos 

Reply via email to