Condividi tramite


Box Method

Draws a rectangle on a Form object. There are two versions of the syntax.

Object.Box(nXCoord1, nYCoord1, nXCoord2, nYCoord2)

Object.Box(nXCoord2, nYCoord2)

Parameters

  • nXCoord1, nYCoord1
    Specifies the coordinates of the starting point for the rectangle. The ScaleMode method of the form determines the unit of measurement used. If you omit these arguments, the value of CurrentX and CurrentY are used.

  • nXCoord2, nYCoord2
    Specifies the endpoint of the rectangle.

Remarks

Applies To: Form Object | _SCREEN System Variable

The width of the lines drawn depends on the DrawWidth property setting. How a rectangle is drawn on the background depends on the settings of the DrawMode and DrawStyle properties. When the Box method is called, the CurrentX and CurrentY properties are set to the endpoint specified by the last two arguments.

See Also

Reference

CurrentX, CurrentY Properties

DrawMode Property

DrawStyle Property

DrawWidth Property

ScaleMode Property

Other Resources

Methods (Visual FoxPro)

Language Reference (Visual FoxPro)