FIX: Painting Problems When FontItalic Set True for Text BoxLast reviewed: October 30, 1997Article ID: Q94293 |
2.00
WINDOWS
kbprg kbbuglist
The information in this article applies to: - Microsoft Visual Basic programming system for Windows, version 2.0
SYMPTOMSWhen you use a text box for input in a program, you will encounter painting problems when the FontItalic property is set to True.
CAUSEThis problem is because of spacing. Italic fonts take up more room for each character entered, but the text box does not account for this. The problem occurs only when you type text into the text box. If you assign text to the Text property at run-time, the problem does not occur.
WORKAROUNDTo work around the problem, use the Refresh method to refresh the text box each time a character is pressed. For best results, you should enable a timer from within the KeyPress event for the text box. From within the timer event, you can then use the Refresh method to refresh the contents of the text box. For example, you can work around the problem by adding the following steps to those listed in the "More Information" section:
STATUSMicrosoft has confirmed this to be a bug in Microsoft Visual Basic version 2.0 for Windows. This problem was corrected in Microsoft Visual Basic version 3.0 for Windows.
MORE INFORMATION
Steps to Reproduce Problem
|
Additional reference words: buglist2.00 fixlist3.00 2.00 3.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |