Home » U++ Library support » RichText,QTF,RTF... » Need help with setting RichEdit fonts in droplist [SOLVED]
Re: Need help with setting RichEdit fonts in droplist [message #42079 is a reply to message #42033] |
Mon, 17 February 2014 09:29 |
slashupp
Messages: 231 Registered: July 2009
|
Experienced Member |
|
|
Thx mirek
filling the droplist works correctlu, thanks.
But to set the default selected font:
Quote: | the use ApplyFormatInfo to set initial font.
|
does not work.
This works:
RichText::FormatInfo FI=myRE.GetFormatInfo();
//FI.SetDefaultFont(Font(deffont,11)); <--- doesn't! (deffont was set when droplist was filled)
FI.FaceName("Times New Roman");
FI.Height(myRE.PtToDot(11)); //must use PtToDot here
myRE.ApplyFormatInfo(FI);
|
|
|
Goto Forum:
Current Time: Mon May 13 08:33:41 CEST 2024
Total time taken to generate the page: 0.02119 seconds
|