StatManLV
asked on
Richedit formatting
I've created a richedit control using the following code:
TitleBoxWindow := Createwindow('RICHEDIT20a' ,'',TitleB oxStyles,T bX[1], TbY[1],TbX[2], Tby[2]-4,ParentWindow,0,hi nstance,Ni l);
The control creates ok, and I can put text in it, but I need to format selected text and Delphi doesn't recognize the "em_getcharformat" message, or the "tcharformat" type. Any ideas what I'm doing wrong?
TitleBoxWindow := Createwindow('RICHEDIT20a'
The control creates ok, and I can put text in it, but I need to format selected text and Delphi doesn't recognize the "em_getcharformat" message, or the "tcharformat" type. Any ideas what I'm doing wrong?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What's wrong with the Richedit wrapper?
Problem doing it the good ole win32 way is you have to subclass it, do all the nitty gritty yourself when the wrapper has functionality like
RicheditControl.Seltext:=' Sometext';
RicheditControl.Selattribu tes.Color: =ClRed;
etc etc
Problem doing it the good ole win32 way is you have to subclass it, do all the nitty gritty yourself when the wrapper has functionality like
RicheditControl.Seltext:='
RicheditControl.Selattribu
etc etc
ASKER
I'm porting the program from BPW and I have a zillion controls already defined, sized, located, etc., so I didn't want to start over by using the VCL.
ASKER