BUG: Courier and Symbol Fonts Might Not Appear on HPC
ID: Q215394
|
The information in this article applies to:
-
Microsoft Windows CE Toolkit for Visual Basic 6.0, version 1.0
SYMPTOMS
When you create a Windows CE Toolkit for Visual Basic (VBCE) application targeting a Handheld PC class device (running Windows CE 2.0) and try to change the font to either Courier or Symbol, the font is mapped to the Arial font. The expected behavior is that the font should change to the new value of the FontName property. This problem does not occur when targeting the emulator or when targeting devices running Windows CE 2.11 or later.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
MORE INFORMATION
This section shows you how to create a sample project that demonstrates the bug behavior.
Steps to Reproduce Behavior
- Start a new Windows CE HPC project in Visual Basic. Form1 is created by default.
- Add three CommandButtons and a TextBox to Form1.
- Copy the following code to the code window of Form1.
Private Sub Command1_Click()
Text1.FontName = "Times New Roman"
Text1.Text = "This is a string in " & Text1.FontName & " font."
End Sub
Private Sub Command2_Click()
Text1.FontName = "Courier"
Text1.Text = "This is a string in " & Text1.FontName & " font."
End Sub
Private Sub Command3_Click()
Text1.FontName = "Symbol"
Text1.Text = "This is a string in " & Text1.FontName & " font."
End Sub
Private Sub Form_Load()
Command1.Caption = "Times New Roman"
Command2.Caption = "Courier"
Command3.Caption = "Symbol"
Text1.Text = "This is a string in " & Text1.FontName & " font."
End Sub
- Run the project (targeting the emulator) and click Command1. Notice that the font changes to Times New Roman.
- Click Command2 and Command3 and note that the font changes accordingly.
- Exit the application.
- Run the project again, this time targeting the remote device, and click Command1. Note that the font changes to Times New Roman.
- Click Command2 and Command3. Note that the font becomes Arial. The expected behavior is that the fonts should change as they did when the project was run in emulation mode.
Additional query words:
wce vbce vbce6
Keywords : kbToolkit kbVBp600bug kbWinCE kbGrpVB
Version : WINDOWS:1.0
Platform : WINDOWS
Issue type : kbbug