PRB: Pset Method Does Not Work When DrawWidth Property < 2 (189507)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 5.0
  • Microsoft Visual FoxPro for Windows 5.0a

This article was previously published under Q189507

SYMPTOMS

In Visual FoxPro 5.x, the Pset method of the form does not set a point on the form when the DrawWidth property of the form is less then two. The default value for the DrawWidth property is one.

RESOLUTION

Set the DrawWidth property of the form to two or greater.

STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a form.
  2. Place the following code in the Click event of the form:
          InXLimit = This.Width
          InYLimit = This.Height
    
          For InPoint = 1 to 3000
             InXCoord = int(InXLimit * rand() + 1)
             InYCoord = int(InYLimit * rand() + 1)
             This.Pset(InXCoord, InYCoord)
          Endfor
  3. Place the following code in the RightClick event of the form:
          Wait Window "DrawWidth = 2" Nowait
          This.DrawWidth = 2
  4. Save and run the form.
Note: When you first click the form, nothing happens. However, right-click the form, and then click the form again. You will see some dots generated on the form.

Modification Type:MajorLast Reviewed:12/11/1999
Keywords:kbprb KB189507 kbAudDeveloper