Microsoft KB Archive/142395

= CommandButton FontSize Can Affect Button Size =

Article ID: 142395

Article Last Modified on 9/30/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition

-



This article was previously published under Q142395



SUMMARY
The physical size of a Microsoft Visual FoxPro command button is based on the FontSize property of that command button when AutoSize is set to True.



MORE INFORMATION
The size of a command button that contains only a picture may be affected by the FontSize property of that CommandButton if the AutoSize property is set to true.

Steps to Demonstrate Behavior

 * 1) Add a command button to a form.
 * 2) Change the Picture property to a valid bitmap so the command button displays a picture.
 * 3) Select the Caption property and press the DELETE key to remove the caption.
 * 4) Set the AutoSize property of the command button to True (.T.).
 * 5) Change the FontSize property of the command button and notice the affect on the command button.
 * 6) Set the AutoSize property to False (.F.).
 * 7) Adjust the FontSize property to size your button appropriately.

Additional query words: VFoxWin

Keywords: KB142395

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.