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 #19369 is a reply to message #19346] Sat, 29 November 2008 13:14 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Novo wrote on Fri, 28 November 2008 01:16

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.



I am not sure it is easily possible. In fact, background is less problem (Transparent + SetBackground(Null)), but the real problem is text color....

Mirek
 
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: Sat May 04 22:49:02 CEST 2024

Total time taken to generate the page: 0.02270 seconds