Autor Beitrag
fuggaz
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 106



BeitragVerfasst: Do 10.01.08 16:19 
Hallo,

Ich würde gerne ein Label vor ein StringGrid setzen.
Ich habe aber keine Ahnung wie das geht.
Mit index wie bei image geht es nicht.
Gibt es da eine leichte Lösung?


mfg fuggaz
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Do 10.01.08 17:38 
Hallo,

user profile iconfuggaz hat folgendes geschrieben:
Gibt es da eine leichte Lösung?
nein, mehrere :wink:

1. Parent auf das StringGrid setzen:
ausblenden Delphi-Quelltext
1:
2:
3:
Label.Parent := StringGrid;
Label.Left := 10;
Label.Top := 10;


2. TStaticText verwenden

3. TPanel nutzen

4. In OnDrawCell drübermalen

5. ... mehr fällt mir gerade nicht ein

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
fuggaz Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 106



BeitragVerfasst: Do 10.01.08 18:38 
Danke:)
Das erste ist genau nach meinem Geschmack.