Autor Beitrag
Ice
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 114



BeitragVerfasst: Do 19.12.02 11:01 
Hallo Leute ich habe da ein Problem mit der erstellung einer neuen Komponente.
und zwar möchte ich eine Komponente erstellen die zwei Panels und zwei Labels umfasst, und ich möchte den Panels noch einige neue Eigenschaften hinzufügen.
Ich habe leider überhaupt keine Ahnung von der Komponenten Entwicklung und hoffe ihr könnt mir da helfen.

Vielen Dank im Voraus

Ice :cry:
bis11
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1247
Erhaltene Danke: 2

Apple Mac OSX 10.11

BeitragVerfasst: Do 19.12.02 11:16 
Hi,

schaue mal auf die Seite Delphi-Source. Dort gibt es ein Tutorial zu Komponenten Entwicklung.
Ice Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 114



BeitragVerfasst: Do 19.12.02 11:47 
Vielen Dank für deinen Tip, allerdings kannte ich die Seite schon und sie brachte mich nicht weiter, da ich die Create Methode überschreiben muss und nicht weiss wie ich das bewerkstelligen soll.

Vielen Dank trotzdem nochmal

mfg Ice
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Fr 20.12.02 00:16 
Hi,

die OnCreate kannst du so überschreiben:

Im Protected-Teil:
ausblenden Quelltext
1:
  Constructor Create(Owner: TComponent); overrite;					


und dann einfach diese Procedure erstellen:
ausblenden Quelltext
1:
2:
3:
4:
Constructor TMyCompo.Create(Owner: TComponent);
  Inherited Create(Owner);
  //Dein Code
end;


Au'revoir,
Aya~
Ice Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 114



BeitragVerfasst: Fr 20.12.02 09:38 
Alles klar!
Danke! Ich teste das gleich mal.

Ice