it works Thank you very much for help Julian Smart pisze: > textctrl.GetBuffer().Invalidate(wxRICHTEXT_ALL); > textctrl.LayoutContent(); > textctrl.Refresh(false); > > There should probably be a single wxRichTextCtrl function to do this...