Einzelnen Beitrag anzeigen

shmia

Registriert seit: 2. Mär 2004
5.508 Beiträge
 
Delphi 5 Professional
 
#1

StringGrid: Focus entfernen

  Alt 4. Nov 2004, 17:25
Zum Entfernen der Selektion eines StringGrids oder DrawGrids dient folgende Procedure.
Wer sich darunter nichts vorstellen, siehe Anhang.
Delphi-Quellcode:
type
   TCrackedGrid = class(TCustomGrid)
   end;

procedure HideGridSelection(const grid:TCustomGrid);
const
  noSelection:TGridRect = (Left:-1; Top:-1; Right:-1; Bottom:-1);
begin
  TCrackedGrid(grid).Selection := noSelection;
end;
Miniaturansicht angehängter Grafiken
gridexamples.gif  
Andreas
  Mit Zitat antworten Zitat