Hanging Indent in wxRichTextCtrl Topic is solved

If you have a cool piece of software to share, but you are not hosting it officially yet, please dump it in here. If you have code snippets that are useful, please donate!
Post Reply
Knows some wx things
Knows some wx things
Posts: 27
Joined: Tue Sep 13, 2011 7:34 pm

Hanging Indent in wxRichTextCtrl

Post by gopalvenu » Sat Oct 08, 2011 7:09 pm

Spent a little time finding this (and search in forum did not yield anything for me ) so I thought I'll post this in case it will be helpful to others.

To create a paragraph with a hanging indent (i.e. the second and subsequent lines of the para are offset from the first line) in wxRichTextCtrl, simply call the SetLeftIndent() method - it actually takes two parameters- the indent and the sub-indent.

Keywords: wxRichTextCtrl RichText rich text wxTextCtrl TextCtrl

Post Reply