Einzelnen Beitrag anzeigen

exilant

Registriert seit: 28. Jul 2006
134 Beiträge
 
Delphi 11 Alexandria
 
#6

Re: TMS TAdvStringGrid mehrere Zeilen markieren mit der Maus

  Alt 12. Jan 2010, 13:11
Vielleicht hilf das hier.

Die Selektierung läst sich folgendermassen aufheben:

Delphi-Quellcode:

procedure TForm1.Unselect;
var t : tgridrect;
begin
   t.Left := MyGrd.col; t.Right := MyGrd.col;
   t.top := MyGrd.row; t.bottom := MyGrd.row;
   MyGrd.Selection := t;
end;

Danach ist nur noch die vorher angewählte Zelle selektiert.
Anything, carried to the extreme, becomes insanity. (Exilant)
  Mit Zitat antworten Zitat