Allow passing multi-line strings to wxDC::DrawText(), even under MSW.
Native wxMSW wxDC::DrawText() implementation doesn't support multi-line strings so use the generic wxDC::DrawLabel() code instead. Drawing multi-line strings now works at least in wxGTK and wxMSW, to be tested for the other platforms. Closes #12239. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -596,7 +596,12 @@ public:
|
||||
|
||||
The coordinates refer to the top-left corner of the rectangle bounding
|
||||
the string. See GetTextExtent() for how to get the dimensions of a text
|
||||
string, which can be used to position the text more precisely.
|
||||
string, which can be used to position the text more precisely and
|
||||
DrawLabel() if you need to align the string differently.
|
||||
|
||||
Starting from wxWidgets 2.9.2 @a text parameter can be a multi-line
|
||||
string, i.e. contain new line characters, and will be rendered
|
||||
correctly.
|
||||
|
||||
@note The current @ref GetLogicalFunction() "logical function" is
|
||||
ignored by this function.
|
||||
|
Reference in New Issue
Block a user