KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q141916: Command Button Properties Differ Between Versions

Article: Q141916
Product(s): Microsoft FoxPro
Version(s): WINDOWS:3.0,3.0b
Operating System(s): 
Keyword(s): kbcode
Last Modified: 08-FEB-2000

-------------------------------------------------------------------------------
The information in this article applies to:

- Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b 
-------------------------------------------------------------------------------

SUMMARY
=======

The default values of the FontSize, FontName, and FontBold properties of command
buttons differs between Far East versions of Visual FoxPro and other versions of
Visual FoxPro 3.0 and 3.0b.

MORE INFORMATION
================

The following table describes how the FontName, FontBold, and FontSize default
values between Far East versions and the versions offered in other countries.

Property      World     Far East
FontName      Arial     Country specific
FontBold      .T.       .F.
FontSize      10        9

The following code displays the FontName, FontSize, and FontBold property values
on the Visual FoxPro desktop. The different property values between versions may
be of concern if developing an international version of an application. These
differences could potentially cause a display problem , such as, "Position is
off of screen" message, if the variance is not taken into account.

     tform = CreateObject("form")
     tform.AddObject("C1","commandbutton")
     ACTIVATE SCREEN
     ? "Fontname of commandbutton = "
     ?? tform.c1.FontName
     ? "Fontsize of commandbutton = "
     ?? tform.c1.FontSize
     ? "Fontbold of commandbutton = "
     ?? tform.c1.FontBold

Additional query words: VFoxWin

======================================================================
Keywords          : kbcode 
Technology        : kbVFPsearch kbAudDeveloper kbVFP300 kbVFP300b
Version           : WINDOWS:3.0,3.0b

=============================================================================

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.

Copyright Microsoft Corporation 1986-2002.