Autor Beitrag
schnief7
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Mi 21.01.04 21:59 
Hallo!

Also! ich habe eine neue Komponente erstellt und in dieser ein neues Event erstellt:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
...
private
    fOnGetColDataSize:        TOnGetColDataSizeEvent;
...
published
    property OnGetColDataSize: TOnGetColDataSizeEvent read fOnGetColDataSize write fOnGetColDataSize;


Das klappt auch alles wunderbar.

Jetzt wollt ich im Creat-Event dieses Event aufrufen

ausblenden Delphi-Quelltext
1:
2:
  if Assigned(fOnGetColDataSize) then
    fOnGetColDataSize(fColDataSize);


aber Assigned gibt immer False zurück. - Warum??? (Event wurde natürlich über den Objectinspector eingerichtet)


Ab wann kann ich denn selbst-erstellte Events nutzen?

Danke schon mal

mfg

schnief7

Moderiert von user profile iconPeter Lustig: Code- durch Delphi-Tags ersetzt
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Mi 21.01.04 23:15 
IMO nach inherited im create constructor 8)

_________________
mfg.
mâximôv
schnief7 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Fr 23.01.04 16:08 
hi

nein! funktioniert leider nicht - was mach ich falsch??

mfg

schnief7