DrawRotatedText is not working in wxNotebook
Is there a solution to this problem?
Code: Select all
WxNotebook1 = new wxNotebook(this, ID_WXNOTEBOOK1, wxPoint(-6, 30), wxSize(795, 535), wxNB_DEFAULT);
WxNotebook1->SetForegroundColour(wxColour(0,0,0));
WxNotebook1->SetBackgroundColour(wxColour(_("WHITE")));
WxNotebook1->SetFont(wxFont(10, wxSWISS, wxNORMAL, wxNORMAL, false, _("MS Sans Serif")));
Measurement = new wxPanel(WxNotebook1, ID_MEASUREMENT, wxPoint(4, 27), wxSize(787, 504));
Measurement->SetBackgroundColour(wxColour(_("WHITE")));
Measurement->SetFont(wxFont(10, wxSWISS, wxNORMAL, wxNORMAL, false, _("MS Sans Serif")));
WxNotebook1->AddPage(Measurement, _(" Measurement "));
Calibration = new wxPanel(WxNotebook1, ID_CALIBRATION, wxPoint(4, 27), wxSize(787, 504));
Calibration->SetBackgroundColour(wxColour(_("WHITE")));
Calibration->SetFont(wxFont(10, wxSWISS, wxNORMAL, wxNORMAL, false, _("MS Sans Serif")));
WxNotebook1->AddPage(Calibration, _(" Calibration "));
Code: Select all
wxPaintDC dh(Calibration);
dh.SetDeviceOrigin( 0, dh.GetSize().GetHeight()-1 );
dh.SetAxisOrientation(true, true);
dh.DrawRotatedText(" I(45°)", 100, 100, 90.0);