Set the subs box's style and size correctly

Originally committed to SVN as r5672.
This commit is contained in:
Thomas Goyne 2011-09-29 04:38:15 +00:00
parent 9ad1434f37
commit 9b9482b96f
3 changed files with 4 additions and 4 deletions

View File

@ -39,8 +39,8 @@
#include "scintilla_text_ctrl.h" #include "scintilla_text_ctrl.h"
#include "utils.h" #include "utils.h"
ScintillaTextCtrl::ScintillaTextCtrl(wxWindow* parent, wxWindowID id, const wxString& value, const wxPoint& pos, const wxSize& size) ScintillaTextCtrl::ScintillaTextCtrl(wxWindow* parent, wxWindowID id, const wxString& value, const wxPoint& pos, const wxSize& size, long style)
: wxStyledTextCtrl(parent, id, pos, size, 0, value) : wxStyledTextCtrl(parent, id, pos, size, style, value)
{ {
} }

View File

@ -55,5 +55,5 @@ public:
void SetUnicodeStyling(int start,int length,int style); void SetUnicodeStyling(int start,int length,int style);
void SetSelectionU(int start,int end); void SetSelectionU(int start,int end);
ScintillaTextCtrl(wxWindow* parent, wxWindowID id, const wxString& value = "", const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize); ScintillaTextCtrl(wxWindow* parent, wxWindowID id, const wxString& value = "", const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0);
}; };

View File

@ -76,7 +76,7 @@ enum {
}; };
SubsTextEditCtrl::SubsTextEditCtrl(wxWindow* parent, wxSize wsize, long style, SubtitlesGrid *grid) SubsTextEditCtrl::SubsTextEditCtrl(wxWindow* parent, wxSize wsize, long style, SubtitlesGrid *grid)
: ScintillaTextCtrl(parent, wxID_ANY) : ScintillaTextCtrl(parent, -1, "", wxDefaultPosition, wsize, style)
, spellchecker(SpellCheckerFactory::GetSpellChecker()) , spellchecker(SpellCheckerFactory::GetSpellChecker())
, thesaurus(Thesaurus::GetThesaurus()) , thesaurus(Thesaurus::GetThesaurus())
, grid(grid) , grid(grid)