U++ framework
Do not panic. Ask here before giving up.

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 Go to previous message
slashupp is currently offline  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);
 
Read Message
Read Message
Read Message
Previous Topic: Allow line-break after '-' sign within a word?
Next Topic: [BUG] RichTextView and VCenter
Goto Forum:
  


Current Time: Sat Apr 25 22:23:30 GMT+2 2026

Total time taken to generate the page: 0.00481 seconds