Autor Beitrag
mhsteuer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Do 11.11.04 10:56 
Hallo Leute!

Hab nur mal eine kleine Frage: Wie kann man die Spalten in einem StringGrid unterschiedlich breit gestalten? Über DefaulColWidth steuert man ja gleich alle Spalten.

Danke!

_________________
Mittsommernacht
patrick
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1481

WIN2k, WIN XP
D6 Personal, D2005 PE
BeitragVerfasst: Do 11.11.04 12:30 
sicher geht das :P

und zwar so:
ausblenden Delphi-Quelltext
1:
stringgrid1.ColWidths[<spaltennummer>]:=<spaltenbreite>;					

mit RowWidth kannst du die höhe der einzelnen zeilen bestimmen :)

_________________
Patrick
im zweifelsfall immer das richtige tun!!!
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Do 11.11.04 16:28 
patrick hat folgendes geschrieben:
RowWidth

Ich bin mir sicher, dass du RowHeights meintest. ;-)

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
patrick
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1481

WIN2k, WIN XP
D6 Personal, D2005 PE
BeitragVerfasst: Do 11.11.04 17:36 
*grml*
ähmmm ja :oops:

_________________
Patrick
im zweifelsfall immer das richtige tun!!!