Reduced unnecessary painting; delete/recreate caret as WIN32 requires
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -466,8 +466,7 @@ MyFrame::MyFrame(const wxString& title, wxWindowID id, const wxPoint& pos,
|
||||
|
||||
toolBar->Realize();
|
||||
|
||||
wxSplitterWindow* splitter = new wxSplitterWindow(this, wxID_ANY, wxDefaultPosition, wxSize(100, 100), wxSP_NO_XP_THEME|wxSP_3D|wxSP_LIVE_UPDATE);
|
||||
|
||||
wxSplitterWindow* splitter = new wxSplitterWindow(this, wxID_ANY, wxDefaultPosition, GetClientSize(), wxSP_NO_XP_THEME|wxSP_3D|wxSP_LIVE_UPDATE);
|
||||
|
||||
wxFont textFont = wxFont(12, wxROMAN, wxNORMAL, wxNORMAL);
|
||||
wxFont boldFont = wxFont(12, wxROMAN, wxNORMAL, wxBOLD);
|
||||
@@ -484,6 +483,8 @@ MyFrame::MyFrame(const wxString& title, wxWindowID id, const wxPoint& pos,
|
||||
wxRichTextStyleListBox* styleListBox = new wxRichTextStyleListBox(splitter, wxID_ANY);
|
||||
splitter->SplitVertically(m_richTextCtrl, styleListBox, 400);
|
||||
|
||||
splitter->UpdateSize();
|
||||
|
||||
styleListBox->SetStyleSheet(wxGetApp().GetStyleSheet());
|
||||
styleListBox->SetRichTextCtrl(m_richTextCtrl);
|
||||
styleListBox->UpdateStyles();
|
||||
|
@@ -45,8 +45,8 @@ IMPROVEMENTS:
|
||||
- Improve image support: margins, resizing, storage of image as native format
|
||||
data (e.g. JPEG) so no lossiness.
|
||||
- Ensure read-only mode works.
|
||||
- Make more efficient, e.g. don't try to draw lines outside the client area;
|
||||
don't store whole paragraph in Undo stack if just changing the paragraph's style.
|
||||
- Don't store whole paragraph in Undo stack if just changing the paragraph's style.
|
||||
- Use binary chop to find character position for (x,y).
|
||||
- Allow specification of word separators, and whether hyphenation will be done
|
||||
(language-dependent).
|
||||
|
||||
|
Reference in New Issue
Block a user