[ 1519202 ] wxComboCtrl::SetButtonPosition() to support -1 width/height

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-07-17 08:45:12 +00:00
parent 6012f61212
commit 7dc234d633
4 changed files with 47 additions and 21 deletions

View File

@@ -699,8 +699,11 @@ MyFrame::MyFrame(const wxString& title)
odc->SetSelection(0);
odc->SetButtonPosition(-2, // width adjustment
-6, // height adjustment
// Use button size that is slightly smaller than the default.
wxSize butSize = odc->GetButtonSize();
odc->SetButtonPosition(butSize.x - 2, // button width
butSize.y - 6, // button height
wxLEFT, // side
2 // horizontal spacing
);
@@ -769,8 +772,8 @@ MyFrame::MyFrame(const wxString& title)
gcc->SetValue(wxT("Subitem 05"));
// Move button to left - it makes more sense for a tree ctrl
gcc->SetButtonPosition(0, // width adjustment
0, // height adjustment
gcc->SetButtonPosition(-1, // button width
-1, // button height
wxLEFT, // side
0 // horizontal spacing
);