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... » How to use QTF/RichText with support of links as node of TreeCtrl?
Re: How to use QTF/RichText with support of links as node of TreeCtrl? [message #19346 is a reply to message #19322] Fri, 28 November 2008 07:16 Go to previous messageGo to previous message
Novo is currently offline  Novo
Messages: 1362
Registered: December 2006
Ultimate Contributor
I finally figured out how to calculate correct size of a RichTextCtrl.

rt_ctrl.Add().SetZoom(Zoom(1, 7)).NoSb().SetQTF(qtf_text);
int x = rt_ctrl.Top().GetWidth();
Size sz(x, rt_ctrl.Top().GetHeight(x));

sz /= 7;
sz.cx += 1;


It seems a little strange that I need to apply zooming to the size manually.

Another question.

Is there an example how to paint selected node with RichTextCtrl?
I mean background with correct color.

TIA


Regards,
Novo
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Enable Export to PDF in Report Example?
Next Topic: RichText editor problem..
Goto Forum:
  


Current Time: Sun Jun 09 06:27:04 CEST 2024

Total time taken to generate the page: 0.01152 seconds