connect two wxRichTextBuffers
Julian Smart
julian at anthemion.co.uk
Thu May 22 06:50:21 PDT 2008
Karol Bielecki wrote:
> Sorry.
> I don't speak English so difficult explain
>> textctrl.GetBuffer().Invalidate(wxRICHTEXT_ALL);
>> textctrl.Refresh();
>
>> textctrl.Update();
>>
> not work
>
> suposue in budor1 is text "one"
> and in bufor2 is text "two"
> after all
> when I select text "two" by mouse in richtextctrl
> in control is select text "two" and "one" at the same time
>
> and when I add
> textctrl.AddParagraph("");
>
> everything is ok only I have 1 empty line on end
OK, try:
textctrl.GetBuffer().Invalidate(wxRICHTEXT_ALL);
textctrl.LayoutContent();
textctrl.Refresh(false);
There should probably be a single wxRichTextCtrl function to do this...
Regards,
Julian
More information about the wx-users
mailing list