git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19929
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
//-------------------------------------------------------------------------------------
// Simulates the effect of the user issuing a command to the item
//-------------------------------------------------------------------------------------
// Simulates the effect of the user issuing a command to the item
void wxRadioBox::DoSetSize(int x, int y, int width, int height, int sizeFlags)
{
void wxRadioBox::DoSetSize(int x, int y, int width, int height, int sizeFlags)
{
if (maxHeight<eachHeight[i]) maxHeight = eachHeight[i];
}
if (maxHeight<eachHeight[i]) maxHeight = eachHeight[i];
}
- totHeight = GetRowCount() * (maxHeight + charHeight/2) + charHeight*3/2;
+ totHeight = GetRowCount() * (maxHeight + charHeight/2) + charHeight ;
totWidth = GetColumnCount() * (maxWidth + charWidth) + charWidth;
// only change our width/height if asked for
totWidth = GetColumnCount() * (maxWidth + charWidth) + charWidth;
// only change our width/height if asked for
if (maxHeight < eachHeight) maxHeight = eachHeight;
}
if (maxHeight < eachHeight) maxHeight = eachHeight;
}
- totHeight = GetRowCount() * (maxHeight + charHeight/2) + charHeight * 3/2;
+ totHeight = GetRowCount() * (maxHeight + charHeight/2) + charHeight ;
totWidth = GetColumnCount() * (maxWidth + charWidth) + charWidth;
// handle radio box title as well
totWidth = GetColumnCount() * (maxWidth + charWidth) + charWidth;
// handle radio box title as well
//-------------------------------------------------------------------------------------
// Simulates the effect of the user issuing a command to the item
//-------------------------------------------------------------------------------------
// Simulates the effect of the user issuing a command to the item
void wxRadioBox::DoSetSize(int x, int y, int width, int height, int sizeFlags)
{
void wxRadioBox::DoSetSize(int x, int y, int width, int height, int sizeFlags)
{
if (maxHeight<eachHeight[i]) maxHeight = eachHeight[i];
}
if (maxHeight<eachHeight[i]) maxHeight = eachHeight[i];
}
- totHeight = GetRowCount() * (maxHeight + charHeight/2) + charHeight*3/2;
+ totHeight = GetRowCount() * (maxHeight + charHeight/2) + charHeight ;
totWidth = GetColumnCount() * (maxWidth + charWidth) + charWidth;
// only change our width/height if asked for
totWidth = GetColumnCount() * (maxWidth + charWidth) + charWidth;
// only change our width/height if asked for
if (maxHeight < eachHeight) maxHeight = eachHeight;
}
if (maxHeight < eachHeight) maxHeight = eachHeight;
}
- totHeight = GetRowCount() * (maxHeight + charHeight/2) + charHeight * 3/2;
+ totHeight = GetRowCount() * (maxHeight + charHeight/2) + charHeight ;
totWidth = GetColumnCount() * (maxWidth + charWidth) + charWidth;
// handle radio box title as well
totWidth = GetColumnCount() * (maxWidth + charWidth) + charWidth;
// handle radio box title as well