// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "radiobox.h"
#endif
if (label1 != "")
{
wxXmString text(label1);
- (void)XtVaCreateManagedWidget( label1.c_str(),
+ m_labelWidget = (WXWidget)
+ XtVaCreateManagedWidget( label1.c_str(),
#if wxUSE_GADGETS
style & wxCOLOURED ? xmLabelWidgetClass
: xmLabelGadgetClass,
XtManageChild (radioBoxWidget);
XtManageChild ((Widget)m_mainWidget);
- SetCanAddEventHandler(TRUE);
AttachWidget (parent, m_mainWidget, NULL, pos.x, pos.y, size.x, size.y);
ChangeBackgroundColour();
{
wxWindow::ChangeBackgroundColour();
- int selectPixel = wxBLACK->AllocColour(wxGetDisplay());
+ int selectPixel = wxBLACK->AllocColour(XtDisplay((Widget)m_mainWidget));
int i;
for (i = 0; i < m_noItems; i++)
{
WXWidget radioButton = m_radioButtons[i];
- DoChangeBackgroundColour(radioButton, m_backgroundColour, TRUE);
+ wxDoChangeBackgroundColour(radioButton, m_backgroundColour, TRUE);
XtVaSetValues ((Widget) radioButton,
XmNselectColor, selectPixel,
{
WXWidget radioButton = m_radioButtons[i];
- DoChangeForegroundColour(radioButton, m_foregroundColour);
+ wxDoChangeForegroundColour(radioButton, m_foregroundColour);
}
}