Parse it as dimension type (including dlg units) and not just integer.
This is backward compatible.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74864
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
@hdr3col{property, type, description}
@row3col{label, @ref overview_xrcformat_type_text,
Label to display (required).}
-@row3col{wrap, integer,
+@row3col{wrap, @ref overview_xrcformat_type_dimension,
Wrap the text so that each line is at most the given number of pixels, see
wxStaticText::Wrap() (default: no wrap).}
@endTable
SetupWindow(text);
- long wrap = GetLong(wxT("wrap"), -1);
+ long wrap = GetDimension(wxT("wrap"), -1);
if (wrap != -1)
text->Wrap(wrap);