Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/169065

From BetaArchive Wiki
Knowledge Base


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.

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.

  1. 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 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: kbbug kbfix kbvfp500afix KB169065