From 7fb7089bfdca10a595b705e806cfae12f88989e5 Mon Sep 17 00:00:00 2001 From: "Charles J. Cliffe" Date: Sun, 7 Feb 2016 16:12:22 -0500 Subject: [PATCH] Force minimum height for Add Device input dialog properties --- src/forms/SDRDevices/SDRDeviceAdd.fbp | 6 +++--- src/forms/SDRDevices/SDRDeviceAddForm.cpp | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/forms/SDRDevices/SDRDeviceAdd.fbp b/src/forms/SDRDevices/SDRDeviceAdd.fbp index cf01ab2..f5cb574 100644 --- a/src/forms/SDRDevices/SDRDeviceAdd.fbp +++ b/src/forms/SDRDevices/SDRDeviceAdd.fbp @@ -370,7 +370,7 @@ 8 wxALL|wxEXPAND - 0 + 1 1 1 @@ -403,9 +403,9 @@ 0 - + -1,-1 0 - + -1,48 1 m_paramText 1 diff --git a/src/forms/SDRDevices/SDRDeviceAddForm.cpp b/src/forms/SDRDevices/SDRDeviceAddForm.cpp index 6230a9d..09afe15 100644 --- a/src/forms/SDRDevices/SDRDeviceAddForm.cpp +++ b/src/forms/SDRDevices/SDRDeviceAddForm.cpp @@ -36,7 +36,9 @@ SDRDeviceAddForm::SDRDeviceAddForm( wxWindow* parent, wxWindowID id, const wxStr bSizer6->Add( m_paramLabel, 0, wxALL, 8 ); m_paramText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_DONTWRAP|wxHSCROLL ); - bSizer6->Add( m_paramText, 0, wxALL|wxEXPAND, 8 ); + m_paramText->SetMinSize( wxSize( -1,48 ) ); + + bSizer6->Add( m_paramText, 1, wxALL|wxEXPAND, 8 ); bSizer6->Add( 0, 0, 1, wxEXPAND, 5 );