Added rotated text support
Added Some generic button and toggle button classes Lots of little fixes, additions, etc. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -67,6 +67,12 @@ class MyCanvas(wxScrolledWindow):
|
||||
dc.SetTextForeground(wxColour(0, 0xFF, 0x80))
|
||||
dc.DrawText("a bitmap", 200, 85)
|
||||
|
||||
font = wxFont(20, wxSWISS, wxNORMAL, wxNORMAL)
|
||||
dc.SetFont(font)
|
||||
dc.SetTextForeground(wxBLACK)
|
||||
for a in range(0, 360, 45):
|
||||
dc.DrawRotatedText("Rotated text...", 300, 300, a)
|
||||
|
||||
self.DrawSavedLines(dc)
|
||||
dc.EndDrawing()
|
||||
|
||||
|
Reference in New Issue
Block a user