Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: Mon May 13 08:33:41 CEST 2024

Total time taken to generate the page: 0.02119 seconds