#include "wx/arrstr.h"
#endif
-#ifdef __VMS
-#define XtParent XTPARENT
-#define XtDisplay XTDISPLAY
-#endif
-
#ifdef __VMS__
#pragma message disable nosimpint
#endif
#endif
#include "wx/motif/private.h"
-IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControlWithItems)
-
static void wxListBoxCallback(Widget w,
XtPointer clientData,
XmListCallbackStruct * cbs);
( m_windowStyle & wxLB_EXTENDED ) ? XmEXTENDED_SELECT :
XmBROWSE_SELECT );
++count;
- if( m_font.Ok() )
+ if( m_font.IsOk() )
{
XtSetArg( args[count],
(String)wxFont::GetFontTag(), m_font.GetFontTypeC(dpy) );
wxEventType evtType;
if( cbs->reason == XmCR_DEFAULT_ACTION )
- evtType = wxEVT_COMMAND_LISTBOX_DOUBLECLICKED;
+ evtType = wxEVT_LISTBOX_DCLICK;
else
- evtType = wxEVT_COMMAND_LISTBOX_SELECTED;
+ evtType = wxEVT_LISTBOX;
int n = cbs->item_position - 1;
wxCommandEvent event (evtType, item->GetId());