Stephan Klimek wrote:
>Hello perl-collegues,
>
>I cannot find a way to change the background color
>of a richedit control.
>It seems to me that there is no way to do this 
>in win32::gui. Maybe with a "sendmessage"?
>
>Any ideas?

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.

of course, it will be turned to a function ASAP ;-)

bye,
Aldo Calpini
<[EMAIL PROTECTED]>

 LIBERA ME DOMINE DE MORTE AETERNA
 IN DIE ILLA TREMENDA
 QUANDO COELI MOVENDI SUNT 
 ET TERRA





Reply via email to