Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by hoika,
20. Jul 2009
Hallo,
mache es so wie du es sagst, klappt es gar nicht mehr.
Die Spalten-Breite ist dann zu klein.
Ich habe einen neuen Tread aufgemacht mit dem kompletten Projekt.
StringGrid und Wordwrap
Heiko
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by hoika,
20. Jul 2009
Hallo,
ja schon klar
GetSystemMetrics(SM_CXVSCROLL) ergibt bei mir aber 16, nicht 10.
Setze ich das so ein (statt der 10),
ist die Spalte zu schmal.
Heiko
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by hoika,
20. Jul 2009
Hallo,
ClientWidth ist 432, Grid.Width ist 436.
GridLineWidth ist 1 und wurde bereits berücksichtigt
iColWidth:= iColWidth-(theGrid.GridLineWidth*theGrid.ColCount);
OK, das sind 4 weniger.
Jetzt habe ich die 10 fest eingetragen und es klappt !!
Sollte das die ScrollBar sein ?
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by hoika,
20. Jul 2009
Hallo #,
folgender Code soll eine Spalte so in der Breite anpassen,
dass das Grid optimal angezeigt wird,
d.h. die Spaltenbreite soll so vergrössert werden,
dass das Grid noch komplett angezeigt wird ohne Scrollbar.
Problem:
Die Breite ist zu gross,
es wird eine Scrollbar angezeigt.