X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0f9390c3c53db45c2fb01747e6cf747fdd980f33..8647bec62d5d0112201f07494e0e69e6e2d45e4b:/samples/widgets/widgets.cpp diff --git a/samples/widgets/widgets.cpp b/samples/widgets/widgets.cpp index c6069c0bb6..b4d38ea141 100644 --- a/samples/widgets/widgets.cpp +++ b/samples/widgets/widgets.cpp @@ -218,6 +218,7 @@ bool WidgetsApp::OnInit() //wxLog::AddTraceMask(_T("listbox")); //wxLog::AddTraceMask(_T("scrollbar")); + //wxLog::AddTraceMask(_T("focus")); return TRUE; } @@ -255,7 +256,7 @@ WidgetsFrame::WidgetsFrame(const wxString& title) ); m_lboxLog = new wxListBox(m_panel, -1); sizerDown->Add(m_lboxLog, 1, wxGROW | wxALL, 5); - sizerDown->SetMinSize(100, 200); + sizerDown->SetMinSize(100, 150); wxBoxSizer *sizerBtns = new wxBoxSizer(wxHORIZONTAL); wxButton *btn = new wxButton(m_panel, Widgets_ClearLog, _T("Clear &log")); @@ -366,7 +367,8 @@ wxSizer *WidgetsPage::CreateSizerWithText(wxControl *control, wxTextCtrl **ppText) { wxSizer *sizerRow = new wxBoxSizer(wxHORIZONTAL); - wxTextCtrl *text = new wxTextCtrl(this, id, _T("")); + wxTextCtrl *text = new wxTextCtrl(this, id, _T(""), wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER); + sizerRow->Add(control, 0, wxRIGHT | wxALIGN_CENTRE_VERTICAL, 5); sizerRow->Add(text, 1, wxLEFT | wxALIGN_CENTRE_VERTICAL, 5);