Autor Beitrag
Daniel L.
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 140
Erhaltene Danke: 14

W7, W8
TurboD Prof, Delphi Community
BeitragVerfasst: Fr 25.02.11 19:07 
Hallo zusammen,

ich baue ein einer Komponente

ausblenden Delphi-Quelltext
1:
TMyKompo = class (TWinControl)					


Da nach dem Setzen der Eigenschaft Parent duch den User meiner Komponente zusätzlicher Code ausgeführt werden soll, frag ich mich, ob sich die Eigenschaft Parent entsprechend erweitern lässt, bzw. wie das gehen soll...

In TControl ist folgendes definert:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
property Parent: TWinControl read FParent write SetParent; // (public)


procedure SetParent (AParent: TWinControl); virtual;    // (protected)



Danke, Gruss: Daniel
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Fr 25.02.11 22:44 
ausblenden Delphi-Quelltext
1:
procedure SetParent (AParent: TWinControl); override;					
:nixweiss:
Daniel L. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 140
Erhaltene Danke: 14

W7, W8
TurboD Prof, Delphi Community
BeitragVerfasst: Fr 25.02.11 23:51 
...das war mir wohl zu einfach... :oops: