Add ctor parameters to match wxTextCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -95,14 +95,15 @@ public:
|
|||||||
|
|
||||||
wxRichTextCtrl( );
|
wxRichTextCtrl( );
|
||||||
wxRichTextCtrl( wxWindow* parent, wxWindowID id = -1, const wxString& value = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
wxRichTextCtrl( wxWindow* parent, wxWindowID id = -1, const wxString& value = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
||||||
long style = wxRE_MULTILINE );
|
long style = wxRE_MULTILINE, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxTextCtrlNameStr);
|
||||||
|
|
||||||
virtual ~wxRichTextCtrl( );
|
virtual ~wxRichTextCtrl( );
|
||||||
|
|
||||||
// Operations
|
// Operations
|
||||||
|
|
||||||
/// Creation
|
/// Creation
|
||||||
bool Create( wxWindow* parent, wxWindowID id = -1, const wxString& value = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
bool Create( wxWindow* parent, wxWindowID id = -1, const wxString& value = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
||||||
long style = wxRE_MULTILINE );
|
long style = wxRE_MULTILINE, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxTextCtrlNameStr );
|
||||||
|
|
||||||
/// Member initialisation
|
/// Member initialisation
|
||||||
void Init();
|
void Init();
|
||||||
|
@@ -109,18 +109,22 @@ wxRichTextCtrl::wxRichTextCtrl(wxWindow* parent,
|
|||||||
const wxString& value,
|
const wxString& value,
|
||||||
const wxPoint& pos,
|
const wxPoint& pos,
|
||||||
const wxSize& size,
|
const wxSize& size,
|
||||||
long style)
|
long style,
|
||||||
|
const wxValidator& validator,
|
||||||
|
const wxString& name)
|
||||||
: wxScrollHelper(this)
|
: wxScrollHelper(this)
|
||||||
{
|
{
|
||||||
Init();
|
Init();
|
||||||
Create(parent, id, value, pos, size, style);
|
Create(parent, id, value, pos, size, style, validator, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Creation
|
/// Creation
|
||||||
bool wxRichTextCtrl::Create( wxWindow* parent, wxWindowID id, const wxString& value, const wxPoint& pos, const wxSize& size, long style)
|
bool wxRichTextCtrl::Create( wxWindow* parent, wxWindowID id, const wxString& value, const wxPoint& pos, const wxSize& size, long style,
|
||||||
|
const wxValidator& validator, const wxString& name)
|
||||||
{
|
{
|
||||||
if (!wxTextCtrlBase::Create(parent, id, pos, size,
|
if (!wxTextCtrlBase::Create(parent, id, pos, size,
|
||||||
style|wxFULL_REPAINT_ON_RESIZE))
|
style|wxFULL_REPAINT_ON_RESIZE,
|
||||||
|
validator, name))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!GetFont().Ok())
|
if (!GetFont().Ok())
|
||||||
|
Reference in New Issue
Block a user