// Author: Julian Smart, Ian Brown
// Modified by:
// Created: 01/02/03
-// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
void wxComboBoxCallback (Widget w, XtPointer clientData,
XmComboBoxCallbackStruct * cbs);
-IMPLEMENT_DYNAMIC_CLASS(wxComboBox, wxControl)
-
bool wxComboBox::Create(wxWindow *parent, wxWindowID id,
const wxString& value,
const wxPoint& pos,
case XmCR_BROWSE_SELECT:
#endif
{
- wxCommandEvent event (wxEVT_COMMAND_COMBOBOX_SELECTED,
+ wxCommandEvent event (wxEVT_COMBOBOX,
item->GetId());
int idx = cbs->item_position;
event.SetInt(idx);
}
case XmCR_VALUE_CHANGED:
{
- wxCommandEvent event (wxEVT_COMMAND_TEXT_UPDATED, item->GetId());
+ wxCommandEvent event (wxEVT_TEXT, item->GetId());
event.SetInt(-1);
event.SetString( item->GetValue() );
event.SetExtraLong(true);