- Widget buttonWidget = XtVaCreateManagedWidget((char*) (const char*) name,
- xmComboBoxWidgetClass, parentWidget,
- XmNmarginHeight, 0,
- XmNmarginWidth, 0,
- XmNshowLabel, False,
- XmNeditable, ((style & wxCB_READONLY) != wxCB_READONLY),
- XmNsorted, ((style & wxCB_SORT) == wxCB_SORT),
- XmNstaticList, ((style & wxCB_SIMPLE) == wxCB_SIMPLE),
- NULL);
-
- XtAddCallback (buttonWidget, XmNselectionCallback, (XtCallbackProc) wxComboBoxCallback,
- (XtPointer) this);
- XtAddCallback (buttonWidget, XmNvalueChangedCallback, (XtCallbackProc) wxComboBoxCallback,
- (XtPointer) this);
+ Widget buttonWidget = XtVaCreateManagedWidget(name.c_str(),
+ xmComboBoxWidgetClass, parentWidget,
+ XmNmarginHeight, 0,
+ XmNmarginWidth, 0,
+ XmNshowLabel, False,
+ XmNeditable, ((style & wxCB_READONLY) != wxCB_READONLY),
+ XmNsorted, ((style & wxCB_SORT) == wxCB_SORT),
+ XmNstaticList, ((style & wxCB_SIMPLE) == wxCB_SIMPLE),
+ NULL);