Autor Beitrag
lotus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19

XP MediaCenter
Delphi 2005 Personal
BeitragVerfasst: Mo 29.01.07 21:13 
Hallo!
Hab schonmal im "Shape+Label-Thread" gepostet, hat aber keiner geantwortet.

Meine Fragen:

1. Ist es möglich in eine neue Klasse (Vorfahre: TShape) immer ein TLabel zu integrieren (wie z.B bei TLabeledEdit)?

2. Hat TShape die Eigenschaft TCanvas?

...


naja das wars erstmal

Mfg, Forumsneuling lotus

_________________
Das leben ist zu kostbar um es dem Schicksal zu überlassen! - Deus X Machina
IngoD7
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 629


D7
BeitragVerfasst: Mo 29.01.07 22:28 
user profile iconlotus hat folgendes geschrieben:
1. Ist es möglich in eine neue Klasse (Vorfahre: TShape) immer ein TLabel zu integrieren (wie z.B bei TLabeledEdit)?

Sollte mit etwas Trickserei gehen. Man kann einem Label nur nicht das Shape als Parent zuweisen, weil Shape kein TWinControl ist. Also müsste das Label denselben Parent haben wie das Shape. Das aber führt dazu, dass man mit der Anzeigeposition des Labels dynamisch tricksen muss, weil seine Position nicht relativ zur linken oberen Ecke des Shapes, sondern zur entsprechenden Ecke des Parents angegeben werden muss. Das wiederum in Abhängigkeit von der Position des Shapes.

user profile iconlotus hat folgendes geschrieben:
2. Hat TShape die Eigenschaft TCanvas?

Ist in deinem Delphi keine Online-Hilfe?
Naja, jedenfalls in D7 hat TShape keine Eigenschaft Canvas.