Einzelnen Beitrag anzeigen

NeoXan
(Gast)

n/a Beiträge
 
#3

Re: OnClick bei Selfmade Class

  Alt 16. Feb 2004, 15:02
Ich glaub' ich stelle mich da ein wenig zu dämlich an...

Delphi-Quellcode:
type
  TRondo = class (TPanel)
  private
    Fx, Fy, Fr: single;
    Fcol: TColor;
    FMeinEreigniss : TNotifyEvent;
  public
   procedure OnChoose;

  published
  property OnChoose2: TNotifyEvent read FMeinEreigniss write FMeinEreigniss ;
end;
Delphi-Quellcode:
procedure TRondo.OnChoose;
begin
if Assigned(FMeinEreigniss) then //FMeinEreigniss (self);
ShowMessage('ASF');
end;
Wenn ich "property" weglasse kommt ein Fehler
[ Published Field 'OnChoose2' not a class or interface type ]
  Mit Zitat antworten Zitat