Click or drag to resize

Brush Class

X#
Create a brush, which can be used by the Window:PaintBoundingBox() method and the DrawObject hierarchy.
Inheritance Hierarchy
Object
  VObject
    Brush

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.21
Syntax
 CLASS Brush INHERIT VObject
Request Example View Source

The Brush type exposes the following members.

Constructors
  NameDescription
Public methodBrush
Construct a brush.
Top
Properties
  NameDescription
Public propertyParent
Top
Methods
  NameDescription
Public methodDestroy
Provide a method to de-instantiate a Brush object.
(Overrides Destroy.)
Public methodHandle
Return the handle for a brush.
Top
Fields
  NameDescription
Public fieldoCargo
Cargo slot.
(Inherited from VObject.)
Top
Remarks
You can create a brush by specifying a color and pattern combination. (The specified pattern can either be one of the default, predefined patterns or a user-supplied bitmap.)
Examples
This example changes the background of the window to white and paints a yellow, cross-hatched rectangle:
X#
1oWindow:Background := Brush{BRUSHWHITE}
2oBYellow := Brush{Color{COLORYELLOW},HATCHORTHOGONALCROSS}
3oBPrevious := oWindow:Foreground
4oWindow:Foreground := oBYellow
5oWindow:PaintBoundingBox(Point{0,0}, Dimension{100,100})
6oWindow:Foreground := oBPrevious
See Also

Reference