Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing fonts of the text in RichEdit

Status
Not open for further replies.

baptul

Programmer
Mar 22, 2003
8
0
0
PL
I would like to know how to change font of the part of text
in RichEdit(if it's possible if not what kind of component
should I use).For example I have in RichEdit this text :"I'm Bart. I have 17 years." and i want to change the font of "17" and makes it bigger. What should I do?
 
hennep knows

see this thread: Thread101-449481


if (FontDialog1->Execute())
{

RichEdit->SelAttributes->Color = FontDialog1->Font->Color;
RichEdit->SelAttributes->Height = FontDialog1->Font->Height;
RichEdit->SelAttributes->Name = FontDialog1->Font->Name;
RichEdit->SelAttributes->Style = FontDialog1->Font->Style;
RichEdit->SelAttributes->Pitch = FontDialog1->Font->Pitch;
RichEdit->SelAttributes->Size = FontDialog1->Font->Size;
}

tomcruz.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top