CommandButton FontSize Can Affect Button Size

Last reviewed: January 15, 1996
Article ID: Q142395
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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 15, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.