Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi FocusRect in StringGrid (https://www.delphipraxis.net/25775-focusrect-stringgrid.html)

Shaman 12. Jul 2004 12:05


FocusRect in StringGrid
 
Hallo zusammen

Wie bringt man das FocusRect um die aktive Zelle in einem StringGrid weg? Das Problem ist, dass es glaub erst nach OnDrawCell gezeichnet wird...

Gruss
Shaman

shmia 12. Jul 2004 12:10

Re: FocusRect in StringGrid
 
Zitat:

Zitat von Shaman
Wie bringt man das FocusRect um die aktive Zelle in einem StringGrid weg?

Delphi-Quellcode:
const
   NoSelection: TGridRect = (Left: - 1; Top: - 1; Right: - 1; Bottom: - 1);
begin
   StringGrid1.Selection := NoSelection;

Mirilin 12. Jul 2004 12:24

Re: FocusRect in StringGrid
 
:hi:

Oder mit DrawFocusRect rumspielen :)


mfg Tobias

Shaman 12. Jul 2004 13:51

Re: FocusRect in StringGrid
 
Danke vielmals, vor lauter Neuzeichnen hab ich die Eigenschaft Selection total vergessen... :drunken:

Gruss
Shaman


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:16 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