m_noRowsOrCols = majorDim;
if (majorDim==0)
m_majorDim = n ;
- m_majorDim = majorDim ;
+ else // Seemed to make sense to put this 'else' here... (RD)
+ m_majorDim = majorDim ;
long msStyle = GROUP_FLAGS;
wxRadioBox::~wxRadioBox(void)
{
m_isBeingDeleted = TRUE;
-
+
if (m_radioButtons)
{
int i;
if (y == -1 || (sizeFlags & wxSIZE_ALLOW_MINUS_ONE))
yy = currentY;
+ AdjustForParentClientOrigin(xx, yy, sizeFlags);
+
char buf[400];
int y_offset = yy;
{
::ScreenToClient((HWND) parent->GetHWND(), &point);
}
+ // We may be faking the client origin.
+ // So a window that's really at (0, 30) may appear
+ // (to wxWin apps) to be at (0, 0).
+ if (GetParent())
+ {
+ wxPoint pt(GetParent()->GetClientAreaOrigin());
+ point.x -= pt.x;
+ point.y -= pt.y;
+ }
*x = point.x;
*y = point.y;
void wxRadioBox::Enable(bool enable)
{
wxControl::Enable(enable);
-
+
int i;
for (i = 0; i < m_noItems; i++)
::EnableWindow((HWND) m_radioButtons[i], enable);
if (font)
{
font->RealizeResource();
-
+
if (font->GetResourceHandle())
SendMessage(hWnd, WM_SETFONT,
(WPARAM)font->GetResourceHandle(),TRUE);