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 #19322 is a reply to message #19316] |
Wed, 26 November 2008 06:41 |
Novo
Messages: 1358 Registered: December 2006
|
Ultimate Contributor |
|
|
Thanks.
I've tried that way. Unfortunately, it is not working for me.
Array<RichTextCtrl> rt_ctrl;
TreeCtrl wtree;
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));
wtree.Add(parent_id, TreeCtrl::Node(rt_ctrl.Top()).SetSize(sz));
The size is bigger, probably, because of zooming.
QTFDisplay() makes magic with ApplyZoom.
RichText rtext = ParseQTF(s);
rtext.ApplyZoom(GetRichTextStdScreenZoom());
draw.DrawRect(r, paper);
There is no ApplyZoom in RichTextCtrl. GetMinSize()/GetMaxSize() are not working either.
I'm definitely missing something.
Regards,
Novo
[Updated on: Wed, 26 November 2008 06:44] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat May 04 22:34:17 CEST 2024
Total time taken to generate the page: 0.04483 seconds
|