TGraphicControl = class(TControl) protected property Canvas: TCanvas read FCanvas; end; TCustomLabel = class(TGraphicControl) public property Canvas; end; TLabel = class(TCustomLabel) end;
procedure Label_setup(obj: Tvalue; real: TLabel); begin {$IFDEF VCL} rb_iv_set(obj, '@canvas', ap_iCanvas(real.Canvas, obj)); {$ENDIF} end; procedure Init_Label; begin // end;