From dd5591a56f254fc4b4178a7e4cdfec3235753109 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Mon, 18 Mar 2019 16:47:10 +0100 Subject: [PATCH] #3234 BBTK Feature New Normal - InputText with password option --- packages/wx/src/bbwxInputText.cxx | 4 ++-- packages/wx/src/bbwxInputTextMultiLine.cxx | 2 +- packages/wx/src/bbwxInputTextPassword.cxx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/wx/src/bbwxInputText.cxx b/packages/wx/src/bbwxInputText.cxx index 6df004d..da4870e 100644 --- a/packages/wx/src/bbwxInputText.cxx +++ b/packages/wx/src/bbwxInputText.cxx @@ -86,7 +86,7 @@ namespace bbwx //wxTE_PROCESS_ENTER //wxTE_MULTILINE //wxTE_PASSWORD - mwxTextCtrl = new wxTextCtrl( panel, -1, In,wxDefaultPosition, wxSize(800,40) , wxTE_PROCESS_ENTER); + mwxTextCtrl = new wxTextCtrl( panel, -1, In,wxDefaultPosition, wxSize(80,80) , wxTE_PROCESS_ENTER); Connect( mwxTextCtrl->GetId(), wxEVT_COMMAND_TEXT_ENTER, (wxObjectEventFunction) (wxEventFunction) @@ -105,7 +105,7 @@ namespace bbwx wxFlexGridSizer *sizer = new wxFlexGridSizer(1); mwxTitle = new wxStaticText(panel, -1, title ); sizer-> Add( mwxTitle ); - sizer-> Add( mwxTextCtrl, 1, wxGROW ); + sizer-> Add( mwxTextCtrl, 1, wxEXPAND ); sizer-> AddGrowableCol(0); panel-> SetSizer(sizer); diff --git a/packages/wx/src/bbwxInputTextMultiLine.cxx b/packages/wx/src/bbwxInputTextMultiLine.cxx index 82f376c..c47bc95 100644 --- a/packages/wx/src/bbwxInputTextMultiLine.cxx +++ b/packages/wx/src/bbwxInputTextMultiLine.cxx @@ -45,7 +45,7 @@ namespace bbwx //wxTE_PROCESS_ENTER //wxTE_MULTILINE //wxTE_PASSWORD - mwxTextCtrl = new wxTextCtrl( panel, -1, In,wxDefaultPosition, wxSize(800,40) , wxTE_MULTILINE); + mwxTextCtrl = new wxTextCtrl( panel, -1, In,wxDefaultPosition, wxSize(40,40) , wxTE_MULTILINE); Connect( mwxTextCtrl->GetId(), wxEVT_COMMAND_TEXT_ENTER, (wxObjectEventFunction) (wxEventFunction) diff --git a/packages/wx/src/bbwxInputTextPassword.cxx b/packages/wx/src/bbwxInputTextPassword.cxx index d7fe02e..d099cb3 100644 --- a/packages/wx/src/bbwxInputTextPassword.cxx +++ b/packages/wx/src/bbwxInputTextPassword.cxx @@ -46,7 +46,7 @@ namespace bbwx //wxTE_MULTILINE //wxTE_PASSWORD - mwxTextCtrl = new wxTextCtrl( panel, -1, In,wxDefaultPosition, wxSize(800,40) , wxTE_PASSWORD); + mwxTextCtrl = new wxTextCtrl( panel, -1, In,wxDefaultPosition, wxSize(40,40) , wxTE_PASSWORD); Connect( mwxTextCtrl->GetId(), wxEVT_COMMAND_TEXT_ENTER, (wxObjectEventFunction) (wxEventFunction) @@ -64,7 +64,7 @@ namespace bbwx wxFlexGridSizer *sizer = new wxFlexGridSizer(1); mwxTitle = new wxStaticText(panel, -1, title ); sizer-> Add( mwxTitle ); - sizer-> Add( mwxTextCtrl, 1, wxGROW ); + sizer-> Add( mwxTextCtrl, 1, wxEXPAND ); sizer-> AddGrowableCol(0); panel-> SetSizer(sizer); -- 2.47.1