connect two wxRichTextBuffers

Karol Bielecki aafe at tagmet.com.pl
Thu May 22 04:44:49 PDT 2008


I try explain.
(I tray bufor=bufor+bufor1)

wxRichTextCtrl textctrl(...)
wxRichTextBuffer *bufor=textctrl.GetBuffer();

bufor->LoadFile(stream1,wxRICHTEXT_TYPE_XML);

wxRichTextBuffer bufor2;

bufor2.LoadFile(stream2,wxRICHTEXT_TYPE_XML);

for (i=0;i<bufor2.GetChildCount();i++)
         {
             bufor->AppendChild(bufor2.GetChild(i)->Clone());
         }

Now textctrl need refresh
when i tray
textctrl.LayoutContent
it not help so i do
textctrl.AddParagraph("");
it help
bat I think it is not correct way.



More information about the wx-users mailing list