Originally shared by David Berneda
Originally shared by David Berneda
New #TeeGrid "Ticker" component to automatically refresh grid cells when values are updated. VCL, Firemonkey and Lazarus. Delphi and C++, 2009 to Berlin.
1) Create Ticker
uses Tee.Grid.Ticker;
var Ticker : TGridTicker;
Ticker:=TGridTicker.Create(TeeGrid1.Grid.Current);
2) After a cell value is changed, update ticker:
Ticker.Change(Col,Row,OldValue);
Options:
Ticker.Enabled:= True; // False to pause
Ticker.FadeColors:= True; // use a thread to fade-out colors
Ticker.Delay:= 1000; // milliseconds, duration of cell highlight
Ticker.Higher.Color:= TColors.Green
Ticker.Lower.Color:= TColors.Red
Ticker.RefreshSpeed:= 10; // milliseconds, internal thread delay
Comments
Post a Comment