1 Nov 2007 05:10
Re: Problem controlling floating bar
--- In power-pro@..., "brucexs" <bswitzer <at> ...> wrote: > > --- In power-pro@..., "Sheri" <sherip99 <at> > 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(Continue reading)
RSS Feed