'Y' positioning fixes for OS/2 controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13147 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -129,6 +129,8 @@ bool wxSpinCtrl::Create(
|
||||
, const wxString& rsName
|
||||
)
|
||||
{
|
||||
SWP vSwp;
|
||||
|
||||
if (vId == -1)
|
||||
m_windowId = NewControlId();
|
||||
else
|
||||
@@ -177,6 +179,9 @@ bool wxSpinCtrl::Create(
|
||||
if(pParent)
|
||||
pParent->AddChild((wxSpinButton *)this);
|
||||
SetFont(pParent->GetFont());
|
||||
::WinQueryWindowPos(m_hWnd, &vSwp);
|
||||
SetXComp(vSwp.x);
|
||||
SetYComp(vSwp.y);
|
||||
SetSize( rPos.x
|
||||
,rPos.y
|
||||
,rSize.x
|
||||
@@ -262,12 +267,9 @@ void wxSpinCtrl::DoMoveWindow(
|
||||
|
||||
if (pParent)
|
||||
{
|
||||
if (pParent->IsKindOf(CLASSINFO(wxFrame)))
|
||||
{
|
||||
nY = pParent->GetClientSize().y - (nY + nHeight);
|
||||
}
|
||||
else
|
||||
nY = pParent->GetSize().y - (nY + nHeight);
|
||||
int nOS2Height = GetOS2ParentHeight(pParent);
|
||||
|
||||
nY = nOS2Height - (nY + nHeight);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user