1. new wxList code
2. fixes to allow compilation at -W4 with VisualC++ 6.0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -240,6 +240,12 @@ void wxChoice::SetSize(int x, int y, int width, int height, int sizeFlags)
|
||||
control_width = longest + cx*5;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// If non-default width...
|
||||
control_width = w1;
|
||||
}
|
||||
|
||||
|
||||
// Choice drop-down list depends on number of items (limited to 10)
|
||||
if (h1 <= 0)
|
||||
@@ -250,10 +256,6 @@ void wxChoice::SetSize(int x, int y, int width, int height, int sizeFlags)
|
||||
h1 = EDIT_HEIGHT_FROM_CHAR_HEIGHT(cy)*(wxMin(10, m_noStrings) + 1);
|
||||
}
|
||||
|
||||
// If non-default width...
|
||||
if (w1 >= 0)
|
||||
control_width = w1;
|
||||
|
||||
control_height = h1;
|
||||
|
||||
// Calculations may have made text size too small
|
||||
|
Reference in New Issue
Block a user