DrawObject.Draw Method | |
Display a DrawObject object.
Namespace:
VO
Assembly:
VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax Remarks Tip |
---|
Important! This is a callback method used by X#.
Normally, it should not be called in your application code.
|
Tip |
---|
The default implementation of the DrawObject:Draw() method has no effect. You should derive your class from DrawObject and overload the Draw() method to contain the code to draw the new object. This method can then be called by Window:Draw(). |
To display a DrawObject object, call Window:Draw() with the DrawObject object as its argument. The window does the drawing by asking each object to draw itself—for example:
1METHOD Expose(oEvent) CLASS MyWindow
2LOCAL oEllipse AS ELLIPSEOBJECT
3oEllipse := EllipseObject{Point{10,10},;
4Dimension{50,100}}
5SELF:Draw(oEllipse)
6
See Also