|
In Rapid-Q custom components, all methods, properties, and events can
be overridden. To access the original property or method, you must
explicitly call the SUPER
class as demonstrated below. Becareful if using WITH Super
... END WITH, since all properties/methods will be referenced as the super
class. The concept of overriding properties or methods is simple
enough, instead of using the inherited properties, we can just
redefine them instead. ALSO SUPER only takes values not variables...
(odd bug)
TYPE QDiamondBox EXTENDS QCanvas
Left AS STRING
Top AS BYTE
SUB Pset
PRINT Super.Left
END SUB
END TYPE
|