<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I am wanting to change the color based on a value. The cell already
exists and I am not sure how I am going to fire either OnDrawCell or
OnPrepareCanvas. But I am probably totally misunderstanding it.<br>
<br>
<br>
On 11/17/2012 05:33 AM, William Oliveira Ferreira wrote:
<blockquote
cite="mid:CAEc2aHb7U8FzvygzYaGke_-hw5nwsk9+f3YAoX0Ldk2wJgUhHw@mail.gmail.com"
type="cite"><font face="verdana,sans-serif">Juha, why not use
onDrawCell ? Is there any performance issue?<br>
</font><br>
<div class="gmail_quote">2012/11/17 Juha Manninen <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:juha.manninen62@gmail.com" target="_blank">juha.manninen62@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sat, Nov 17, 2012 at 2:31 AM, Terry A.
Haimann<br>
<<a moz-do-not-send="true"
href="mailto:terry@haimannonline.com">terry@haimannonline.com</a>>
wrote:<br>
> How do you change the Font Color for a TStringGrid
Cell?<br>
<br>
</div>
Use the OnPrepareCanvas event.<br>
<span class="HOEnZb"><font color="#888888"><br>
Juha<br>
</font></span>
<div class="HOEnZb">
<div class="h5"><br>
--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a moz-do-not-send="true"
href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
<a moz-do-not-send="true"
href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus"
target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<font face="verdana, sans-serif">________________________________<br>
William de Oliveira Ferreira<br>
</font><br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--
_______________________________________________
Lazarus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
</pre>
</blockquote>
<br>
</body>
</html>