Autor Beitrag
D. Annies
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Mo 22.06.09 20:28 
Hi, Delpher,

ich habe ein Stringgrid mit fixedcols = 0 und fixedrows = 0.

Wenn ich goColSzing in den Options setze, funktioniert das nicht - oder mache ich etwas falsch?

Danke für Hilfe,
Detlef

_________________
ut vires desint, tamen est laudanda voluntas
D. Annies Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Di 23.06.09 20:59 
Hi - kurze Nachfrage: geht es mit goColSizing dann nicht? Oder doch?

Eine Antwort, auch abschlägig, wäre nett!
Gruß, Detlef

_________________
ut vires desint, tamen est laudanda voluntas
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: Di 23.06.09 23:33 
Hallo,

nicht direkt ohne weiteren Code.

ohne es getestet zu haben etwa so:
- in OnMouseMove den Maus-Zeiger entsprechend anpassen wenn er sich über einer Gitterlinie befindet
- wenn die linke Maustaste gedrückt ist Breite der Spalte bzw. Höhe der Zeile anpassen

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
D. Annies Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Do 25.06.09 20:53 
Hi, Lannes & aliter,

es ging so: Nachdem die Daten ins Stringgrid übertragen sind (stringgrid1.cells[... )
einfach die Codezeile: stringgrid1.options := stringgrid1.options + [gocolsizing]; hinschreiben.

Gruß, Detlef

_________________
ut vires desint, tamen est laudanda voluntas
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 25.06.09 22:42 
Hallo,

aber nur wenn FixedCols oder -Rows gesetzt sind.

Deine Frage war doch ob ColSizing ohne FixedCols/-Rows funktioniert :gruebel:

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
D. Annies Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Fr 26.06.09 22:05 
Hi, Lannes, ja du hast recht, hatte ich vergessen zu sagen. Nun - dann soll (muss) es so sein.

Gruß, Detlef

_________________
ut vires desint, tamen est laudanda voluntas