May 01, 2024, 01:14:49 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


RichEdit colors

Started by aurelCB, March 11, 2010, 07:38:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

aurelCB

Hi all...
I discover one weird thing( probably some of us know).
In Creative Basic you can change richedit back and fore color with
SETCONTROLCOLOR and work fine.
But in EBasic you must use something like that:
CONTROL w1,@RICHEDIT,"",5,45,580,300,@CTEDITMULTI|@CTEDITAUTOH|@VSCROLL|@HSCROLL|ES_SUNKEN,1
SendMessage w1, EM_SETBKGNDCOLOR,0, RGB(243,242,214),1

I also find that command SETCONTROLCOLOR work if richedit is in dialog.