1. many (minor) listbox fixes
2. scrollbar thumb now has min size git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -97,6 +97,23 @@ wxButton::~wxButton()
|
||||
// size management
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
/* static */
|
||||
wxSize wxButtonBase::GetDefaultSize()
|
||||
{
|
||||
static wxSize s_sizeBtn;
|
||||
|
||||
if ( s_sizeBtn.x == 0 )
|
||||
{
|
||||
wxScreenDC dc;
|
||||
|
||||
// this corresponds more or less to wxMSW standard
|
||||
s_sizeBtn.x = (50 * dc.GetCharWidth())/4;
|
||||
s_sizeBtn.y = (14 * dc.GetCharHeight())/8;
|
||||
}
|
||||
|
||||
return s_sizeBtn;
|
||||
}
|
||||
|
||||
wxSize wxButton::DoGetBestClientSize() const
|
||||
{
|
||||
wxClientDC dc(wxConstCast(this, wxButton));
|
||||
|
Reference in New Issue
Block a user