Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Right Aligned CheckBoxes moving on a Page?
Message
 
À
08/07/2002 19:23:37
Steve Buttress
Steve Buttress Software Consulting
Bloomington, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00676196
Message ID:
00676480
Vues:
9
>>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
Chris Maiden
Email
Web
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform