Line Spacing in WxTextCtrl 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
annamalai
In need of some credit
In need of some credit
Posts: 8
Joined: Fri Feb 22, 2013 6:32 am

Line Spacing in WxTextCtrl

Post by annamalai » Sat Mar 16, 2013 12:02 pm

Hi,
How can i add Line Spacing as like Word document in wxTextctrl..... If its not possible, how can i do it with the wxRichTextCtrl..... Can u please explain the methods in detail...

Radek
Super wx Problem Solver
Super wx Problem Solver
Posts: 286
Joined: Sun Sep 11, 2011 7:17 am

Re: Line Spacing in WxTextCtrl

Post by Radek » Sat Mar 16, 2013 2:35 pm

wxRichTextCtrl has BeginLineSpacing() - EndLineSpacing() "brackets", wxRichTextAttr has GetLineSpacing() method. The wxRichTextCtrl has also GetDefaultStyleEx() method which can be used for obtaining wxRichTextAttr for subsequently inserted text.

Post Reply