<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content=text/html;charset=ISO-8859-1>
<META content="MSHTML 6.00.6000.16809" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><SPAN class=812524308-24032009><FONT face=Arial color=#0000ff
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=812524308-24032009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=812524308-24032009><FONT face=Arial color=#0000ff size=2>As far
as I know, these system colours can be different depends on Windows themes, and
"anyone" can change them in Windows. So <FONT face="Times New Roman"
color=#000000 size=3>clBtnFace<FONT face=Arial color=#0000ff
size=2> </FONT></FONT>in one machine has no guarantee to be the same to
another machine. There's API to find out real colour for each system
colour, although I can't remember on top of my head.</FONT></SPAN></DIV>
<DIV><SPAN class=812524308-24032009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=812524308-24032009><FONT face=Arial color=#0000ff
size=2>Cheers,</FONT></SPAN></DIV>
<DIV><SPAN class=812524308-24032009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=812524308-24032009><FONT face=Arial color=#0000ff
size=2>Edward</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> delphi-bounces@delphi.org.nz
[mailto:delphi-bounces@delphi.org.nz]<B>On Behalf Of </B>Robert
martin<BR><B>Sent:</B> Friday, 20 March 2009 16:45<BR><B>To:</B>
rohit@cfl.co.nz; NZ Borland Developers Group - Delphi List<BR><B>Subject:</B>
Re: [DUG] Windows System Colour<BR><BR></FONT></DIV>Hi Rohit<BR><BR>I suspect
the issue is how you are replacing the pixel. I'm no expert in this but
some of the painting / drawing routines do XORs etc of the new and old colour
depending on the API and parmters set. I would check there
first.<BR><BR>Hope that is some help.<BR><BR>Cheers<BR>Rob<BR><BR>
<DIV class=moz-signature>
<META content=Word.Document name=ProgId>
<META content="Microsoft Word 11" name=Generator>
<META content="Microsoft Word 11" name=Originator><LINK
href="Robert%20Martin_files/filelist.xml" rel=File-List><!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>Wild Software Ltd</o:Author>
<o:LastAuthor>Wild Software Ltd</o:LastAuthor>
<o:Revision>6</o:Revision>
<o:TotalTime>55</o:TotalTime>
<o:Created>2009-02-13T02:47:00Z</o:Created>
<o:LastSaved>2009-02-13T03:42:00Z</o:LastSaved>
<o:Pages>1</o:Pages>
<o:Words>13</o:Words>
<o:Characters>77</o:Characters>
<o:Company>Wild Software Ltd</o:Company>
<o:Lines>1</o:Lines>
<o:Paragraphs>1</o:Paragraphs>
<o:CharactersWithSpaces>89</o:CharactersWithSpaces>
<o:Version>11.9999</o:Version>
</o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:Compatibility>
<w:Break
WrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" LatentStyleCount="156">
</w:LatentStyles>
</xml><![endif]-->
<STYLE>@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin: 35.4pt; mso-footer-margin: 35.4pt; mso-paper-source: 0; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
SPAN.SpellE {
        mso-style-name: ""; mso-spl-e: yes
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";
        mso-ansi-language:#0400;
        mso-fareast-language:#0400;
        mso-bidi-language:#0400;}
</style>
<![endif]-->
<DIV class=Section1>
<P class=MsoNormal><I><SPAN lang=EN-NZ
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Robert
Martin<O:P></O:P></SPAN></I></P>
<P class=MsoNormal><I><SPAN lang=EN-NZ
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Software development
manager<O:P></O:P></SPAN></I></P>
<P class=MsoNormal><SPAN lang=EN-NZ
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN class=SpellE><SPAN lang=EN-NZ
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Chreos</SPAN></SPAN><SPAN
lang=EN-NZ style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-NZ
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><A class=moz-txt-link-abbreviated
href="http://www.chreos.co.nz">www.chreos.co.nz</A><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-NZ
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Ph +64 03
377-0495<O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-NZ><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-NZ
style="COLOR: rgb(255,153,0)"><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN
lang=EN-NZ><O:P></O:P></SPAN></P></DIV></DIV><BR><BR>Rohit Gupta wrote:
<BLOCKQUOTE cite=mid:49C2F094.2050804@cfl.co.nz type="cite">I am a little
puzzled. I know that the system colours such as clBtnFace are special
constants. In one part of the app, when I replace a pixel in a bitmap
to clBtnFace it goes gray like it should. In another part of the app
it goes money-greeny. Both do it consustently.<BR><BR>Any clues
? Do I need to convert these special colours to real colours ? I
couldn't find any function to do it.<BR><BR><BR><BR>
<DIV class=moz-signature>-- <BR>Regards<BR><BR><B>Rohit Gupta</B><BR>B.E.
Elec., M.E., Mem IEEE, Member IET<BR>Technical Manager<BR>Computer Fanatics
Ltd<BR><BR><B>Tel </B>4892280 <BR><B>Fax </B>4892290 <BR><B>Web </B><A
href="www.cfl.co.nz" moz-do-not-send="true">www.cfl.co.nz</A><BR>
<HR>
This email and any attachments contain information, which is confidential
and may be subject to legal privilege and copyright. If you are not the
intended recipient, you must not use, distribute or copy this email or
attachments. If you have received this in error, please notify us
immediately by return email and then delete this email and any
attachments.</DIV><PRE wrap=""><HR width="90%" SIZE=4>
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: <A class=moz-txt-link-abbreviated href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</A>
Admin: <A class=moz-txt-link-freetext href="http://delphi.org.nz/mailman/listinfo/delphi">http://delphi.org.nz/mailman/listinfo/delphi</A>
Unsubscribe: send an email to <A class=moz-txt-link-abbreviated href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</A> with Subject: unsubscribe</PRE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>