Added a couple of text effects
Added style description Fixed some bugs in style comparison Fixed extra newline when loading git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -137,6 +137,7 @@ bool wxRichTextCtrl::Create( wxWindow* parent, wxWindowID id, const wxString& va
|
||||
if (style & wxTE_READONLY)
|
||||
SetEditable(false);
|
||||
|
||||
// The base attributes must all have default values
|
||||
wxTextAttrEx attributes;
|
||||
attributes.SetFont(GetFont());
|
||||
attributes.SetTextColour(*wxBLACK);
|
||||
@@ -145,6 +146,8 @@ bool wxRichTextCtrl::Create( wxWindow* parent, wxWindowID id, const wxString& va
|
||||
attributes.SetLineSpacing(10);
|
||||
attributes.SetParagraphSpacingAfter(10);
|
||||
attributes.SetParagraphSpacingBefore(0);
|
||||
attributes.SetTextEffects(0);
|
||||
attributes.SetTextEffectFlags(wxTEXT_ATTR_EFFECT_STRIKETHROUGH|wxTEXT_ATTR_EFFECT_CAPITALS);
|
||||
|
||||
SetBasicStyle(attributes);
|
||||
|
||||
|
Reference in New Issue
Block a user