2012/11/17 Terry A. Haimann <[email protected]>: > I am wanting to change the color based on a value. The cell already exists
TSemaphorGrid enlight a cell based on the value (red yellow and green labels for StringRed, StringYellow and StringGreen values). If you need more values you can easily extend this component. You can find it in /examples/gridexamples/grid_semaphor and then share the source with comments to make Lazarus IDE a little bit more easy and popular Regards, Salvatore > and I am not sure how I am going to fire either OnDrawCell or > OnPrepareCanvas. But I am probably totally misunderstanding it. > > > > On 11/17/2012 05:33 AM, William Oliveira Ferreira wrote: > > Juha, why not use onDrawCell ? Is there any performance issue? > > 2012/11/17 Juha Manninen <[email protected]> >> >> On Sat, Nov 17, 2012 at 2:31 AM, Terry A. Haimann >> <[email protected]> wrote: >> > How do you change the Font Color for a TStringGrid Cell? >> >> Use the OnPrepareCanvas event. >> >> Juha >> >> -- >> _______________________________________________ >> Lazarus mailing list >> [email protected] >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > > > > -- > ________________________________ > William de Oliveira Ferreira > > > > -- > _______________________________________________ > Lazarus mailing list > [email protected] > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > > > -- > _______________________________________________ > Lazarus mailing list > [email protected] > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
