From: Vadim Zeitlin Date: Fri, 21 Aug 1998 20:47:49 +0000 (+0000) Subject: radiobox had some strange ideas about vertical and horizontal directions X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/cd91632c368b989519dd33a65566a88325a5e0b8 radiobox had some strange ideas about vertical and horizontal directions (in fact, wxRA_VERTICAL and HORIZONTAL were inverted). corrected. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/radiobox.cpp b/src/msw/radiobox.cpp index 82ecdf8600..6f63ec57b4 100644 --- a/src/msw/radiobox.cpp +++ b/src/msw/radiobox.cpp @@ -435,7 +435,7 @@ void wxRadioBox::SetSize(int x, int y, int width, int height, int sizeFlags) int nbHor,nbVer; - if (m_windowStyle & wxRA_VERTICAL) + if (m_windowStyle & wxRA_HORIZONTAL) { nbVer = m_majorDim ; nbHor = (m_noItems+m_majorDim-1)/m_majorDim ; @@ -476,7 +476,7 @@ void wxRadioBox::SetSize(int x, int y, int width, int height, int sizeFlags) // Bidimensional radio adjustment if (i&&((i%m_majorDim)==0)) // Why is this omitted for i = 0? { - if (m_windowStyle & wxRA_VERTICAL) + if (m_windowStyle & wxRA_HORIZONTAL) { y_offset = startY; x_offset += maxWidth + cx1 ; @@ -509,7 +509,7 @@ void wxRadioBox::SetSize(int x, int y, int width, int height, int sizeFlags) } MoveWindow((HWND) m_radioButtons[i],x_offset,y_offset,eachWidth,eachHeight,TRUE); - if (m_windowStyle & wxRA_VERTICAL) + if (m_windowStyle & wxRA_HORIZONTAL) { y_offset += maxHeight; if (m_radioWidth[0]>0)