CommandButton FontSize Can Affect Button Size

ID: Q142395

3.00 3.00b WINDOWS kbprg

The information in this article applies to:

  • Microsoft Visual FoxPro for Windows, versions 3.0 and 3.0b

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 reference words: 3.00 3.00b VFoxWin KBCategory: kbprg KBSubcategory: FxprgUdwindow

Keywords          : FxprgUdwindow 
Version           : 3.00 3.00b
Platform          : WINDOWS


Last Reviewed: January 16, 1996
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.