Microsoft KB Archive/169065

= FIX: RichText Control Displays Line Draw Characters Incorrectly =

Article ID: 169065

Article Last Modified on 10/15/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition
 * Microsoft Visual FoxPro 5.0 Standard Edition

-



This article was previously published under Q169065



SYMPTOMS
Versions of the RichText control earlier than 5.00.3714 (dated January 14, 1997) do not display line draw characters correctly.



STATUS
This functionality did not work correctly in earlier versions of the RichText control, but it works correctly in version 5.00.3714, which ships with Visual FoxPro 5.0a.



Steps to Reproduce Behavior
There are two parts in setting up this example: Part 1 is to create a simple text file that contains line draw characters. Part 2 is to create the Visual FoxPro sample form.

Part 1-Create a text file that contains line draw characters:   Using a simple text editor such as "Edit," create a new file; for example, type the following from the command prompt: EDIT C:\RICHTEXT.TXT  Create an ASCII-drawn plus sign by following these keystrokes:

 Hold down the Alt key, type the numbers 205 (using the numeric keypad), and let go of the Alt key. Hold down the Alt key, type the numbers 206 (using the numeric keypad), and let go of the Alt key. Hold down the Alt key, type the numbers 205 (using the numeric keypad), and let go of the Alt key. </li></ol>

NOTE: The resulting displayed characters should appear as an ASCII-drawn plus sign.
 * 1) Save the file.

Part 2 - Create the sample form: <ol>  Create a new form in Visual FoxPro by typing the following in the Command window: CREATE FORM richtext </li> Change the FontName property of the form to "Terminal."</li> From the Forms Control Toolbar, click the OLE Container Control button and add it to the form.</li> Select Insert Control on the displayed Insert Object dialog box.</li> Select Microsoft RichText Control from the list of controls, and click OK.</li> Click the RichText Control on the form, and right-click to bring up the Shortcut menu for the control.</li> Select the last option on the menu (RichtextCtrl Properties) to bring up the RichtextCtrl Properties dialog box.</li> Type C:\Richtext.txt in the FileName box, and click OK.</li> Save and Run the form.</li></ol>

NOTE: If the RichText Control is a version earlier than 5.00.3714, the characters displayed may not be in the image of an ASCII-drawn plus sign.

Additional query words: weird foreign

Keywords: kbbug kbfix kbvfp500afix KB169065

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.