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

Win XP

BeitragVerfasst: Fr 18.06.04 11:23 
Hi,
in meiner igenen Komponente(von TPanel abgeleitet) möchte ich gern folgende eigenschaft haben:

ausblenden Delphi-Quelltext
1:
2:
3:
FBenutzerlabel:TLabel;
...
property Benutzerlabel: TLabel read FBenutzerlabel write FBenutzerlabel;


Es kommt aber immer folgende Fehlermeldung
Zitat:
Undeclared identifier: 'TLabel'


Kann mir jemand weiterhelfen?

_________________
Nicht verzagen, orakel fragen!
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Fr 18.06.04 11:44 
Hallo,

evtl. hilft es, die Unit StdCtrls in der uses-Anweisung hinzuzufügen.

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
mk2
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 72

WIN 2000
D4 Prof
BeitragVerfasst: Fr 18.06.04 11:47 
Die Delpohi Hilfe sagt, dass die Klasse TLabel in der Unit stdctrls definiert ist. Wenn du die Klasse benutzen willst, mußt du die unit natürlich einbinden, und zwar im interface also:

ausblenden Delphi-Quelltext
1:
2:
3:
interface

uses ....,stdctrls;
orakel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 92

Win XP

BeitragVerfasst: Fr 18.06.04 12:50 
Danke!

_________________
Nicht verzagen, orakel fragen!