Autor Beitrag
Spatz
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57

WIN 2k
D7E
BeitragVerfasst: Mi 23.02.05 14:09 
Wie kann ich erkennen, dass der User die Spaltenbreite in einem TStringGrid mit der Maus verändert?
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Mi 23.02.05 14:33 
könntest ja im onmouseup überprüfen ob sich die spaltenbreite geändert hat.
Spatz Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57

WIN 2k
D7E
BeitragVerfasst: Mi 23.02.05 16:56 
ja, das würde gehen, ist aber nicht eine günstige lösung da auch bei jedem andern klick in dem grid alle spalten auf eine änderung gecheckt würden...
ich habe mittlerweile aber eine Lösung gefunden: Man muss eine eigene Stringgridkomponente erstellen und die methode colwidthschanged überschreiben.