Recent

Author Topic: Documentation/List of events that trigger Stringgrid writes  (Read 775 times)

jbmckim

  • Full Member
  • ***
  • Posts: 144
Documentation/List of events that trigger Stringgrid writes
« on: April 24, 2021, 12:19:22 am »
I get that .Invalidate will trigger a refresh of the Stringgrid.   However, is there an exhaustive list some place of events that trigger a grid UI update? I'm wondering if individual cells always update when assigned, if you can update a column or row without refreshing the entire grid, etc.

wp

  • Hero Member
  • *****
  • Posts: 8749
Re: Documentation/List of events that trigger Stringgrid writes
« Reply #1 on: April 24, 2021, 01:12:41 am »
I doubt that such a list exists, but open unit grids.pas (in the lcl folder of your Lazarus installation) and search yourself for "Invalidate" -- you will get lots of occurencies.

Basically the grid (or part of it) is redrawn when something affecting its visual appearance happens. Not in every case the entire grid is painted, there are also InvalidateCell, InvalidateRow, InvalidateCol, InvalidateRange methods.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

 

TinyPortal © 2005-2018