Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Generic reference to TCanvas Object

2 views
Skip to first unread message

frédéric PAVLIN

unread,
Jun 10, 2000, 3:00:00 AM6/10/00
to
Hello!

I want to build a class which has the abiliy to redraw itself, using the
Canvas of its parent.
The parent can be either a form, or a graphic control.
The common ancestor of all possible parent is TControl, which is parent of
TGraphicControl and TWinControl.
My object's parent is either a TgraphicControl (or inherited class) or a
TwinControl.
How can i access the Canvas property? It is protected in TGraphicControl and
in TWinControl.

TControl
I
___________II_______________
TGraphicControl TWinControl <- has a Canvas
property, protected!
I I
(my object's parent)


So how can i have a valid reference to Parent.Canvas ?

Thanks for help,

Fred. PAVLIN

0 new messages