[Need Help]How to load and save Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
SamHu
Earned a small fee
Earned a small fee
Posts: 20
Joined: Tue Sep 20, 2011 7:52 am

[Need Help]How to load and save

Post by SamHu » Sat Feb 25, 2012 11:08 am

how to load and save a file to and from a wxRichTextCtrl
there seems to be some member function in wxRichTextBuffer and wxRichTextFilehandler\
but they all seems to be "virtual"
is there an easy way to do it ?
-----------------------------------------
useing the "gtk" version
but need to be portable to MSW
Coding is not funny.
It is nothing but a pain.
While people like me still get obessed to it.

User avatar
xaviou
Super wx Problem Solver
Super wx Problem Solver
Posts: 430
Joined: Mon Aug 21, 2006 3:18 pm
Location: Annecy - France
Contact:

Re: [Need Help]How to load and save

Post by xaviou » Sat Feb 25, 2012 12:10 pm

Hi

The wxRichTextCtrl has "LoadFile" and "SaveFile" member methods, whitch should be what you need.


Regards
Xav'
My wxWidgets stuff web page : [email protected]'s wxStuff

SamHu
Earned a small fee
Earned a small fee
Posts: 20
Joined: Tue Sep 20, 2011 7:52 am

Re: [Need Help]How to load and save

Post by SamHu » Sat Feb 25, 2012 12:42 pm

oh yeah I finded
thanks
it is right on the mannual I just miss it
Coding is not funny.
It is nothing but a pain.
While people like me still get obessed to it.

Post Reply