FIX: RichText Control Displays Line Draw Characters Incorrectly

Last reviewed: December 5, 1997
Article ID: Q169065
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b, 5.0

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.

MORE INFORMATION

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:

  1. 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
    

  2. 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.
    

NOTE: The resulting displayed characters should appear as an ASCII-drawn
      plus sign.

  • Save the file.

    Part 2 - Create the sample form:

    1. Create a new form in Visual FoxPro by typing the following in the Command window:

            CREATE FORM richtext
      

    2. Change the FontName property of the form to "Terminal."

    3. From the Forms Control Toolbar, click the OLE Container Control button and add it to the form.

    4. Select Insert Control on the displayed Insert Object dialog box.

    5. Select Microsoft RichText Control from the list of controls, and click OK.

    6. Click the RichText Control on the form, and right-click to bring up the Shortcut menu for the control.

    7. Select the last option on the menu (RichtextCtrl Properties) to bring up the RichtextCtrl Properties dialog box.

    8. Type "C:\Richtext.txt" (without the quotes) in the FileName box, and click OK.

    9. Save and Run the form.

    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 : buglist3.00 buglist3.00b FxotherGeneral vfoxwin vfpbug5.0 vfpfix5.0a
    Version : 3.0 3.0b 5.0
    Platform : WINDOWS
    Issue type : kbbug
    Solution Type : kbfix


    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: December 5, 1997
    © 1998 Microsoft Corporation. All rights reserved. Terms of Use.