Characters Do Not Fill Input Field in Screen

Last reviewed: June 27, 1995
Article ID: Q95316
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a

SUMMARY

On a screen developed in Microsoft FoxPro for Windows, the input field sometimes appears to be larger than necessary to fit all the characters for that particular field. This appearance occurs because of the way FoxPro calculates the width of a field based on the font that is used.

MORE INFORMATION

When a proportional font is used, each character is given only the amount of space that is necessary to display that character. For example, a lowercase "f" requires much less space than an uppercase "W".

When an input field is created in a screen, FoxPro calculates the width of the field by taking the number of characters in the database field times the average size of a character in the specified font. If the field is filled with wider-than-average characters, the characters will not all fit within the input field and will scroll off the field. If the field is filled with narrower-than-average characters, the characters will not fill the input field, causing the input field to appear larger than necessary.


Additional reference words: FoxWin 2.50 2.50a
KBCategory: kbprg
KBSubcategory: FxprgGeneral


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: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.