Characters Do Not Fill Input Field in Screen

ID: Q95316

The information in this article applies to:

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

Last Reviewed: June 27, 1995