#define WIDTH_OVERHEAD_SUBTRACT 40
#define HEIGHT_OVERHEAD 15
-IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControlWithItems)
-
void wxChoiceCallback (Widget w, XtPointer clientData,
XtPointer ptr);
wxDoChangeBackgroundColour((WXWidget) w, m_backgroundColour);
- if( m_font.Ok() )
+ if( m_font.IsOk() )
wxDoChangeFont( w, m_font );
m_widgetArray.Insert(w, pos);
int n = item->GetWidgets().Index(w);
if (n != wxNOT_FOUND)
{
- wxCommandEvent event(wxEVT_COMMAND_CHOICE_SELECTED, item->GetId());
+ wxCommandEvent event(wxEVT_CHOICE, item->GetId());
event.SetEventObject(item);
event.SetInt(n);
event.SetString( item->GetStrings().Item(n) );
// Note that this causes the widget to be resized back
// to its original size! We therefore have to set the size
// back again. TODO: a better way in Motif?
- if (m_mainWidget && m_font.Ok())
+ if (m_mainWidget && m_font.IsOk())
{
Display* dpy = XtDisplay((Widget) m_mainWidget);
int width, height, width1, height1;