Autor Beitrag
klezmor
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 558


delphi 6 personal delphi 2005 personal
BeitragVerfasst: Mi 17.08.05 11:24 
Ich will ein Nachfolgerobjekt eines Shapes erzeugen, dass zusätzliche Funktionen hat.

soweit bin ich schon:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
type tnachfolger= class(Tshape)
     ......
     end;
var abgeleitetes_shape:tnachfolger;

begin
    abgeleitetes_shape:=tnachfolger.create(application);



Frage: Wie bekomme ich dieses abgeleitete shape nun auf mein Formular gezeichnet?

Moderiert von user profile iconAXMD: Delphi-Tags hinzugefügt.
Moderiert von user profile iconChristian S.: Topic aus Sonstiges verschoben am Di 23.08.2005 um 11:18
klezmor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 558


delphi 6 personal delphi 2005 personal
BeitragVerfasst: Sa 20.08.05 14:55 
Ist diese Aufgabe möglicherweise gar nicht möglich, denn ich warte jetzt schon geraume Zeit auf eine Antwort.
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Sa 20.08.05 14:58 
Setz den Parent auf dein Formular. Btw sind Schiebepostings nicht erwünscht... das nur so nebenbei...

AXMD
klezmor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 558


delphi 6 personal delphi 2005 personal
BeitragVerfasst: Sa 20.08.05 18:39 
Kannst du mir vielleicht auch sagen wie das geht?
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Sa 20.08.05 18:43 
abgeleitetes_shape.Parent := Form1; ?

AXMD
klezmor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 558


delphi 6 personal delphi 2005 personal
BeitragVerfasst: Sa 20.08.05 18:58 
Es erscheint leider immer noch nichts muss ich noch irgendwelche Vorstellungen vornehmen?
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Sa 20.08.05 19:04 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
type
  TNachfolger= class (TShape)
    end;


var
  abgeleitetes_shape: TNachfolger;

...

begin
  abgeleitetes_shape := TNachfolger.Create(Form1);
  abgeleitetes_shape.Parent := Form1;


Sollte eigentlich funktionieren... Zur Not nochmal Paint aufrufen

AXMD
klezmor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 558


delphi 6 personal delphi 2005 personal
BeitragVerfasst: Sa 20.08.05 19:11 
Danke hat funktioniert.