IonicWind Software

IWBasic => GUI Central => Topic started by: aurelCB on March 11, 2010, 07:38:02 AM

Title: RichEdit colors
Post by: aurelCB on March 11, 2010, 07:38:02 AM
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.