--- In [email protected], "Sheri" <[EMAIL PROTECTED]> wrote: > > Its not doing what I hoped. The ini file has a ContextIf that > ties the bar to a specific active program/window. If (after the > bar has been made floating) I move it using its Drag item, then > activate another window, the bar's current postition is not > retained when the original window is reactivated. It is still > "floating" but its returned to the original position.
If I use cl.AddProperties instead of cl.NewProperties, and use cl.refresh(bname) afterwards, the bar behaves as a floating bar and retains its position after dragging. But it doesn't respond to either form (win or cl) of setrect. After the initial change to floating the bar goes somewhere near the middle of the window instead of staying near the right caption. If not refreshed after the change in properties, it stays near the right caption but does not function correctly as a floating bar. I also tried this instead of using setrect, which I'm not sure it was what was being suggested by the docs (the bar still moved to near the center of the window after cl.refresh(bname)): cl.AddProperties(bname, "Format1=Position: Floating Left: "++word(myrec, 1, " ")++" Right: "++word(myrec, 1, " ")++ " Bottom: "++word(myrec, 1, " ")++" Top: "++word(myrec, 1, " ")) Regards, Sheri
