From: Buzz on
Hi,

I'm using wxMac and wxMsw 2.8.8, and I'm trying to insert page breaks
into the text contained in a RichTextControl.

I used the wxRichTextAttr::SetPageBreak() method, but it doesn't
seem to do anything (or I don't do it the right way..) : when I print
the resulting text, the page never breaks...


Here's what I do :

wxRichTextCtrl *editor;
..
..
..
wxRichTextAttr PBStyle;
PBStyle.SetPageBreak();
editor->BeginStyle(PBStyle);
editor->WriteText(wxT("blah blah blah"));
editor->EndStyle();

Where am I wrong ?
Can anyone help ?