Autor Beitrag
orakel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 92

Win XP

BeitragVerfasst: Do 13.05.04 15:53 
Hallo,
kann ich eine eigene Komponente erstellen, die aus mehreren Panels besteht?
Also z.B. ein großes Panel und darauf 2 kleine Panels...

Danke schon im Voraus
Andi

_________________
Nicht verzagen, orakel fragen!
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 14.05.04 12:04 
Klar!

Du musst nur :wink: eine Komponente mit dem Vorfahr TPanel erstellen, das heißt von TPanel ableiten, und dann im Konstruktor, also in Create, den du überschreiben musst, ein, zwei, ..., weitere Panels erstellen. Denen musst Du dann die gewünschten Eigenschaften zuweisen und die parent-Eigenschaft auf deine Panel-Komponente setzen.

Sebastian
orakel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 92

Win XP

BeitragVerfasst: Fr 14.05.04 13:53 
Danke, bin ich gar nicht draufgekommen..

_________________
Nicht verzagen, orakel fragen!
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 14.05.04 13:54 
protected hinter der Deklaration angeben (ich glaube das war es, sonst kommst du von dem Wort aus über die Hilfe weiter)
orakel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 92

Win XP

BeitragVerfasst: Fr 14.05.04 14:07 
Danke, hab gedacht, das wär gar nich möglich, und habs deshalb rausgelöscht.

_________________
Nicht verzagen, orakel fragen!