Skip to content

Commit

Permalink
Handle wxST_ELLIPSIZE_XXX styles in wxStaticText XRC handler
Browse files Browse the repository at this point in the history
Add forgotten/missing styles.

See wxWidgets#17850.
  • Loading branch information
tm authored and vadz committed May 28, 2017
1 parent 3414fde commit 0a3720b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ All (GUI):
- Extend wxStyledTextCtrl::FindText() to return end position of matched
text (NewPagodi).
- Fix adding/removing items to/from wxRearrangeList.
- Handle wxST_ELLIPSIZE_XXX styles in wxStaticText XRC handler (tm).

wxGTK:

Expand Down
3 changes: 3 additions & 0 deletions src/xrc/xh_sttxt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ wxStaticTextXmlHandler::wxStaticTextXmlHandler()
XRC_ADD_STYLE(wxALIGN_CENTRE);
XRC_ADD_STYLE(wxALIGN_CENTER_HORIZONTAL);
XRC_ADD_STYLE(wxALIGN_CENTRE_HORIZONTAL);
XRC_ADD_STYLE(wxST_ELLIPSIZE_START);
XRC_ADD_STYLE(wxST_ELLIPSIZE_MIDDLE);
XRC_ADD_STYLE(wxST_ELLIPSIZE_END);
AddWindowStyles();
}

Expand Down

0 comments on commit 0a3720b

Please sign in to comment.