Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Library: VCL / WinForms / Controls (https://www.delphipraxis.net/24-library-vcl-winforms-controls/)
-   -   Delphi StringGrid: Focus entfernen (https://www.delphipraxis.net/33310-stringgrid-focus-entfernen.html)

shmia 4. Nov 2004 17:25


StringGrid: Focus entfernen
 
Liste der Anhänge anzeigen (Anzahl: 1)
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;


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:42 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz