// radiobox part not belonging to any radiobutton)
//
::WinSetWindowPos( (HWND)m_ahRadioButtons[i]
- ,HWND_TOP
+ ,HWND_BOTTOM
,(LONG)nXOffset
,(LONG)nYOffset
,(LONG)nWidthBtn
long lStyleBtn = BS_AUTORADIOBUTTON | WS_TABSTOP | WS_VISIBLE;
int nNewId = NewControlId();
- if (i == 0 && lStyle == 0)
+ if (i == 0)
lStyleBtn |= WS_GROUP;
HWND hWndBtn = (WXHWND)::WinCreateWindow ( GetHwndOf(pParent)
,lStyleBtn
,0, 0, 0, 0
,GetWinHwnd(pParent)
- ,HWND_TOP
+ ,HWND_BOTTOM
,(HMENU)nNewId
,NULL
,NULL
}
//
- // Create a dummy radio control to end the group.
+ // Create a dummy control to end the group.
//
(void)::WinCreateWindow ( GetHwndOf(pParent),
WC_BUTTON,
"",
- WS_GROUP | BS_AUTORADIOBUTTON,
+ WS_GROUP,
0, 0, 0, 0,
GetWinHwnd(pParent),
HWND_TOP,
,sizeof(LONG)
,(PVOID)&lColor
);
- ::WinSetPresParam( m_hWnd
- ,PP_BORDERDARKCOLOR
- ,sizeof(LONG)
- ,(PVOID)&lColor
- );
- lColor = (LONG)m_backgroundColour.GetPixel();
+ lColor = (LONG)m_backgroundColour.GetPixel();
::WinSetPresParam( m_hWnd
,PP_BACKGROUNDCOLOR
,sizeof(LONG)
,(PVOID)&lColor
);
- ::WinSetPresParam( m_hWnd
- ,PP_BORDERLIGHTCOLOR
- ,sizeof(LONG)
- ,(PVOID)&lColor
- );
SetXComp(0);
SetYComp(0);
SetSelection(0);
int nHeightOld;
int nXx = nX;
int nYy = nY;
-#if RADIOBTN_PARENT_IS_RADIOBOX
- int nXOffset = 0;
- int nYOffset = 0;
-#else
int nXOffset = nXx;
int nYOffset = nYy;
-#endif
int nCx1;
int nCy1;
wxSize vMaxSize = GetMaxButtonSize();
// radiobox part not belonging to any radiobutton)
//
::WinSetWindowPos( (HWND)m_ahRadioButtons[i]
- ,HWND_TOP
+ ,HWND_BOTTOM
,(LONG)nXOffset
,(LONG)nYOffset
,(LONG)nWidthBtn
} // end of wxRadioBox::GetMaxButtonSize
void wxRadioBox::GetPosition( int* pnX,
- int* pnY ) const
+ int* WXUNUSED(pnY) ) const
{
wxWindowOS2* pParent = GetParent();
RECT vRect = { -1, -1, -1, -1 };
vPoint.y = vPt.y;
}
if (pnX)
- *pnX = vPoint.x;
- if (pnY)
- *pnY = vPoint.y;
+ *pnX = vPoint.y;
} // end of wxRadioBox::GetPosition
// Get single selection, for single choice list items
switch(uVk)
{
case VK_LEFT:
- eDir = wxDOWN;
+ eDir = wxLEFT;
break;
case VK_RIGHT:
- eDir = wxDOWN;
+ eDir = wxRIGHT;
break;
case VK_DOWN: