Click or drag to resize

DrawObject.Draw Method

X#
Display a DrawObject object.

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD Draw() AS USUAL
Request Example View Source

Return Value

Type: Usual
Remarks
Tip Tip
Important! This is a callback method used by X#. Normally, it should not be called in your application code.
Tip 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:
X#
1METHOD Expose(oEvent) CLASS MyWindow
2LOCAL oEllipse AS ELLIPSEOBJECT
3oEllipse := EllipseObject{Point{10,10},;
4Dimension{50,100}}
5SELF:Draw(oEllipse)
6// Calls the method Draw() on oEllipse
See Also