>>Hi - I have some checkboxes on a page in a page frame control that move quite dramatically at design and runtime. It only happens when the Alignment property of the check box is set to "Right" I have tried code in the INIT and REFRESH but no joy - I also noticed that they appear in the right place when the form is shown but when refreshed the checkboxes move to the right!
>>Thanks
>
>This problem occurs when the checkbox is set to Right alignment AND Autosize is set to .T. What happens is that the control position is anchored to its Top and Left properties. When the Alignment property is set to Left, the Checkbox itself is a fixed size, and is positioned exactly as it was placed visually in the form designer. When the Alignment is set to Right, the label portion of the control is on the left, and if Autosize is on, it is dynamically resized at run time, the actual width of the control can not be accurately determined at design time.
>
>The way to get it to stay put, when the Alignment property is set to 1 - Right, is to set Autosize = .F. THEN manually set the Width property, even if the default size is correct, and set the left property so that it is where you want it - perhaps aligned with other controls. By setting it manually (the property display becomes Bold), VFP will leave it alone, and all will be well with the world... <s>
Thanks very much - that is exactly the problem and exactly the solution! - Thanks also to everyone else who posted too - it seems it is a common problem