Share via


PSet Method

Sets a point on a form or the main Visual FoxPro window to the foreground color.

 [FormSet.]Object.PSet([nXCoord, nYCoord])

Parameters

  • nXCoord
    Specifies the horizontal coordinate of the point to set, in the unit of measurement specified by the ScaleMode property of the form.

  • nYCoord
    Specifies the vertical coordinate of the point to set, in the unit of measurement specified by the ScaleMode property of the form.

Remarks

Applies To: Form | _SCREEN

The size of the point drawn depends on the DrawWidth property. When DrawWidth is set to 1, the PSet method sets a single pixel to the specified color. When DrawWidth is set to a value greater than 1, the point is centered on the specified coordinates. The way the point is drawn depends on the setting of the DrawMode and DrawStyle properties.

When the PSet method is called, the CurrentX and CurrentY properties are set to the point specified by the arguments.

See Also

Reference

CurrentX, CurrentY Properties

DrawMode Property

DrawStyle Property

DrawWidth Property

BackColor, ForeColor Properties

Other Resources

Methods (Visual FoxPro)