#include "wx/button.h"
#include "wx/bmpbuttn.h"
#include "wx/radiobox.h"
-#include "wx/radiobut.h"
#include "wx/listbox.h"
#include "wx/choice.h"
#include "wx/checkbox.h"
#include "wx/icon.h"
#include "wx/statbox.h"
#include "wx/statbmp.h"
-#if wxUSE_GAUGE
#include "wx/gauge.h"
-#endif
#include "wx/textctrl.h"
#include "wx/msgdlg.h"
#include "wx/intl.h"
#endif
-#if wxUSE_RADIOBUTTON
+#if wxUSE_RADIOBTN
#include "wx/radiobut.h"
#endif
// parent's child list.
BeginFind();
wxNode *node = (wxNode *) NULL;
- while ((node = Next()))
+ node = Next();
+ while (node != NULL)
{
wxItemResource *parent = (wxItemResource *)node->Data();
if (parent->GetChildren().Member(item))
parent->GetChildren().DeleteObject(item);
break;
}
+ node = Next();
}
delete item;
((wxGauge *)control)->SetValue((int)childResource->GetValue1());
}
#endif
-#if wxUSE_RADIOBUTTON
+#if wxUSE_RADIOBTN
else if (itemType == wxString(_T("wxRadioButton")))
{
control = new wxRadioButton(parent, id, childResource->GetTitle(), // (int)childResource->GetValue1(),
controlItem->SetFont(wxResourceInterpretFontSpec(expr->Nth(count)));
}
}
-#if wxUSE_RADIOBUTTON
+#if wxUSE_RADIOBTN
else if (controlType == _T("wxRadioButton"))
{
// Check for default value
default:
ungetc(ch, fd);
return TRUE;
-
+
}
}
return FALSE;
int i = 0;
wxChar *word;
long bitList = 0;
- while ((word = wxResourceParseWord(WXSTRINGCAST bitListString, &i)))
+ word = wxResourceParseWord(WXSTRINGCAST bitListString, &i);
+ while (word != NULL)
{
bool found = FALSE;
int j;
wxLogWarning(_("Unrecognized style %s whilst parsing resource."), word);
return 0;
}
+ word = wxResourceParseWord(WXSTRINGCAST bitListString, &i);
}
return bitList;
}
default:
ungetc_string();
return TRUE;
-
+
}
}
return FALSE;