Toolbar fixes and weekly catch-up.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -162,13 +162,19 @@ wxSize wxButton::DoGetBestSize() const
|
|||||||
//
|
//
|
||||||
nHeightButton += nHeightChar/1.5;
|
nHeightButton += nHeightChar/1.5;
|
||||||
|
|
||||||
wxSize vSize = GetDefaultSize();
|
if (!HasFlag(wxBU_EXACTFIT))
|
||||||
|
{
|
||||||
|
wxSize vSize = GetDefaultSize();
|
||||||
|
|
||||||
if (nWidthButton > vSize.x)
|
if (nWidthButton > vSize.x)
|
||||||
vSize.x = nWidthButton;
|
vSize.x = nWidthButton;
|
||||||
if (nHeightButton > vSize.y)
|
if (nHeightButton > vSize.y)
|
||||||
vSize.y = nHeightButton;
|
vSize.y = nHeightButton;
|
||||||
return vSize;
|
return vSize;
|
||||||
|
}
|
||||||
|
return wxSize( nWidthButton
|
||||||
|
,nHeightButton
|
||||||
|
);
|
||||||
} // end of wxButton::DoGetBestSize
|
} // end of wxButton::DoGetBestSize
|
||||||
|
|
||||||
/* static */
|
/* static */
|
||||||
|
@@ -1182,7 +1182,7 @@ MRESULT EXPENTRY wxFrameMainWndProc(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pSWP[i].x = vRectl.xLeft;
|
pSWP[i].x = vRectl.xLeft + nWidth;
|
||||||
pSWP[i].y = vRectl.yBottom + nHeight;
|
pSWP[i].y = vRectl.yBottom + nHeight;
|
||||||
pSWP[i].cx = vRectl.xRight - (vRectl.xLeft + nWidth);
|
pSWP[i].cx = vRectl.xRight - (vRectl.xLeft + nWidth);
|
||||||
pSWP[i].cy = vRectl.yTop - vRectl.yBottom - nHeight;
|
pSWP[i].cy = vRectl.yTop - vRectl.yBottom - nHeight;
|
||||||
|
@@ -193,3 +193,26 @@ void wxRadioButton::SetValue(
|
|||||||
::WinSendMsg((HWND)GetHWND(), BM_SETCHECK, (MPARAM)bValue, (MPARAM)0);
|
::WinSendMsg((HWND)GetHWND(), BM_SETCHECK, (MPARAM)bValue, (MPARAM)0);
|
||||||
} // end of wxRadioButton::SetValue
|
} // end of wxRadioButton::SetValue
|
||||||
|
|
||||||
|
MRESULT wxRadioButton::OS2WindowProc(
|
||||||
|
WXUINT uMsg
|
||||||
|
, WXWPARAM wParam
|
||||||
|
, WXLPARAM lParam
|
||||||
|
)
|
||||||
|
{
|
||||||
|
if (uMsg == WM_SETFOCUS)
|
||||||
|
{
|
||||||
|
m_bFocusJustSet = TRUE;
|
||||||
|
|
||||||
|
MRESULT mRc = wxControl::OS2WindowProc( uMsg
|
||||||
|
,wParam
|
||||||
|
,lParam
|
||||||
|
);
|
||||||
|
|
||||||
|
m_bFocusJustSet = FALSE;
|
||||||
|
return mRc;
|
||||||
|
}
|
||||||
|
return wxControl::OS2WindowProc( uMsg
|
||||||
|
,wParam
|
||||||
|
,lParam
|
||||||
|
);
|
||||||
|
} // end of wxRadioButton::OS2WindowProc
|
||||||
|
@@ -827,22 +827,39 @@ void wxToolBar::OnPaint (
|
|||||||
);
|
);
|
||||||
int nX;
|
int nX;
|
||||||
int nY;
|
int nY;
|
||||||
int nHeight;
|
int nHeight = 0;
|
||||||
|
int nWidth = 0;
|
||||||
|
|
||||||
vDc.SetPen(vDarkGreyPen);
|
vDc.SetPen(vDarkGreyPen);
|
||||||
if (HasFlag(wxTB_TEXT) && !pTool->GetLabel().IsEmpty())
|
if (HasFlag(wxTB_TEXT))
|
||||||
{
|
{
|
||||||
nX = pTool->m_vX;
|
if (HasFlag(wxTB_HORIZONTAL))
|
||||||
nY = pTool->m_vY - (m_vTextY - 6);
|
{
|
||||||
nHeight = (m_vTextY - 2) + pTool->GetHeight();
|
nX = pTool->m_vX;
|
||||||
|
nY = pTool->m_vY - (m_vTextY - 6);
|
||||||
|
nHeight = (m_vTextY - 2) + pTool->GetHeight();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
nX = pTool->m_vX + m_xMargin + 10;
|
||||||
|
nY = pTool->m_vY + m_vTextY + m_toolSeparation;
|
||||||
|
nWidth = pTool->GetWidth() > m_vTextX ? pTool->GetWidth() : m_vTextX;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
nX = pTool->m_vX;
|
nX = pTool->m_vX;
|
||||||
nY = pTool->m_vY;
|
nY = pTool->m_vY;
|
||||||
nHeight = pTool->GetHeight() - 2;
|
if (HasFlag(wxTB_HORIZONTAL))
|
||||||
|
nHeight = pTool->GetHeight() - 2;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
nX += m_xMargin + 10;
|
||||||
|
nY += m_yMargin + m_toolSeparation;
|
||||||
|
nWidth = pTool->GetWidth();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
vDc.DrawLine(nX, nY, nX, nY + nHeight);
|
vDc.DrawLine(nX, nY, nX + nWidth, nY + nHeight);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
nCount--;
|
nCount--;
|
||||||
|
@@ -4,7 +4,7 @@ DATA MULTIPLE NONSHARED READWRITE LOADONCALL
|
|||||||
CODE LOADONCALL
|
CODE LOADONCALL
|
||||||
|
|
||||||
EXPORTS
|
EXPORTS
|
||||||
;From library: F:\DEV\WX2\WXWINDOWS\LIB\wx.lib
|
;From library: H:\DEV\WX2\WXWINDOWS\LIB\wx.lib
|
||||||
;From object file: dummy.cpp
|
;From object file: dummy.cpp
|
||||||
;PUBDEFs (Symbols available from object file):
|
;PUBDEFs (Symbols available from object file):
|
||||||
wxDummyChar
|
wxDummyChar
|
||||||
@@ -1946,7 +1946,7 @@ EXPORTS
|
|||||||
wxEVT_NC_LEFT_DCLICK
|
wxEVT_NC_LEFT_DCLICK
|
||||||
wxEVT_INIT_DIALOG
|
wxEVT_INIT_DIALOG
|
||||||
wxEVT_COMMAND_SET_FOCUS
|
wxEVT_COMMAND_SET_FOCUS
|
||||||
;From object file: F:\DEV\WX2\WXWINDOWS\src\common\extended.c
|
;From object file: H:\DEV\WX2\WXWINDOWS\src\common\extended.c
|
||||||
;PUBDEFs (Symbols available from object file):
|
;PUBDEFs (Symbols available from object file):
|
||||||
ConvertToIeeeExtended
|
ConvertToIeeeExtended
|
||||||
ConvertFromIeeeExtended
|
ConvertFromIeeeExtended
|
||||||
@@ -6150,7 +6150,7 @@ EXPORTS
|
|||||||
Read32__17wxTextInputStreamFv
|
Read32__17wxTextInputStreamFv
|
||||||
;wxTextInputStream::SkipIfEndOfLine(char)
|
;wxTextInputStream::SkipIfEndOfLine(char)
|
||||||
SkipIfEndOfLine__17wxTextInputStreamFc
|
SkipIfEndOfLine__17wxTextInputStreamFc
|
||||||
;From object file: F:\DEV\WX2\WXWINDOWS\src\common\unzip.c
|
;From object file: H:\DEV\WX2\WXWINDOWS\src\common\unzip.c
|
||||||
;PUBDEFs (Symbols available from object file):
|
;PUBDEFs (Symbols available from object file):
|
||||||
unzReadCurrentFile
|
unzReadCurrentFile
|
||||||
unzGetCurrentFileInfo
|
unzGetCurrentFileInfo
|
||||||
@@ -13925,6 +13925,8 @@ EXPORTS
|
|||||||
SetValue__13wxRadioButtonFUl
|
SetValue__13wxRadioButtonFUl
|
||||||
;wxRadioButton::GetValue() const
|
;wxRadioButton::GetValue() const
|
||||||
GetValue__13wxRadioButtonCFv
|
GetValue__13wxRadioButtonCFv
|
||||||
|
;wxRadioButton::OS2WindowProc(unsigned int,void*,void*)
|
||||||
|
OS2WindowProc__13wxRadioButtonFUiPvT2
|
||||||
;From object file: ..\os2\region.cpp
|
;From object file: ..\os2\region.cpp
|
||||||
;PUBDEFs (Symbols available from object file):
|
;PUBDEFs (Symbols available from object file):
|
||||||
;wxRegion::Combine(const wxRect&,wxRegionOp)
|
;wxRegion::Combine(const wxRect&,wxRegionOp)
|
||||||
|
Reference in New Issue
Block a user