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 put a custom ctrl on RichTextView?
icon7.gif  how to put a custom ctrl on RichTextView? [message #28439] Thu, 02 September 2010 05:35 Go to next message
mvxi is currently offline  mvxi
Messages: 5
Registered: August 2010
Promising Member
i got a question about AddChild..
I try to put a custom ctrl(derived from Ctrl) on RichTextView. but AddChild doesn't work..

CustomCtrl cc;
RichTextView RTView;
RTView.AddChild(&cc);

how to fix it.thanks
Re: how to put a custom ctrl on RichTextView? [message #28440 is a reply to message #28439] Thu, 02 September 2010 09:32 Go to previous messageGo to next message
andrei_natanael is currently offline  andrei_natanael
Messages: 262
Registered: January 2009
Experienced Member
You have to specify control position and dimension.
I.E.
CustomCtrl cc;
RichTextView RTView;
RTView.AddChild(&cc);
cc.LeftPos(10, 80).TopPos(10, 30);


Andrei
icon7.gif  Re: how to put a custom ctrl on RichTextView? [message #28442 is a reply to message #28440] Thu, 02 September 2010 11:00 Go to previous message
mvxi is currently offline  mvxi
Messages: 5
Registered: August 2010
Promising Member
thanks ,Andrei
Previous Topic: RichEditCtrl
Next Topic: Line Break / Paragraph Break
Goto Forum:
  


Current Time: Tue Apr 16 23:02:01 CEST 2024

Total time taken to generate the page: 0.02839 seconds