Aldo Calpini wrote:

> yes, there is it:
> $Richedit->SendMessage(1091, 0, hex('00FF00'));
> 
> this sets the background color to green.
> note that the hex() format for the color is expressed
> as BBGGRR (BB=blue, GG=green, RR=red).
> BTW, 1091 stands for EM_SETBKGNDCOLOR.

Thank you Aldo for your hint and your wonderful modules. 
BTW, I captured these color definitions
from C++ Builder's graphics.hpp and they seem to work
with the Win32:GUI functions.

Bye, Stephan

# from bcb :
my $clBlack   = 0;
my $clMaroon  = 128;
my $clGreen   = 32768;
my $clOlive   = 32896;
my $clNavy    = 8388608;
my $clPurple  = 8388736;
my $clTeal    = 8421376;
my $clGray    = 8421504;
my $clSilver  = 12632256;
my $clRed     = 255;
my $clLime    = 65280;
my $clYellow  = 65535;
my $clBlue    = 16711680;
my $clFuchsia = 16711935;
my $clAqua    = 16776960;
my $clLtGray  = 12632256;
my $clDkGray  = 8421504;
my $clWhite   = 16777215;

Reply via email to