Hallo!
Wie markiere ich wenn goRangeSelect true ist und ich mein Stringgrid selbst zeichne den markierten Bereich. Mit DrawFocusRect markiert er mir nur die aktive Zelle.
Habe versucht:
if (stringgrid1.Selection.left>=acol) and (stringgrid1.Selection.right<=acol) and
(stringgrid1.Selection.top>=arow) and (stringgrid1.Selection.bottom<=arow) then begin
stringgrid1.Canvas.Rectangle(rect);
end;
geht leider nicht. Hat jemand Vorschläge? Danke im Voraus!
Grüße,
Alex
Wie markiere ich wenn goRangeSelect true ist und ich mein Stringgrid selbst zeichne den markierten Bereich. Mit DrawFocusRect markiert er mir nur die aktive Zelle.
Habe versucht:
if (stringgrid1.Selection.left>=acol) and (stringgrid1.Selection.right<=acol) and
(stringgrid1.Selection.top>=arow) and (stringgrid1.Selection.bottom<=arow) then begin
stringgrid1.Canvas.Rectangle(rect);
end;
geht leider nicht. Hat jemand Vorschläge? Danke im Voraus!
Grüße,
Alex