long result ;
wxStAppResource resload ;
- m_macControl = ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false ,
+ m_macControl = (WXWidget) ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false ,
(style & wxLB_HSCROLL) ? kwxMacListWithVerticalAndHorizontalScrollbar : kwxMacListWithVerticalScrollbar ,
0 , 0, kControlListBoxProc , (long) this ) ;
::GetControlData( (ControlHandle) m_macControl , kControlNoPart , kControlListBoxListHandleTag ,
MacClear() ;
}
-void wxListBox::SetSelection(int N, bool select)
+void wxListBox::DoSetSelection(int N, bool select)
{
wxCHECK_RET( N >= 0 && N < m_noItems,
wxT("invalid index in wxListBox::SetSelection") );
n = -1;
}
- event.m_commandInt = n;
+ event.SetInt(n);
GetEventHandler()->ProcessEvent(event);
}
n = -1;
}
- event.m_commandInt = n;
+ event.SetInt(n);
GetEventHandler()->ProcessEvent(event);
}
event.SetClientData( GetClientData(line) );
event.SetString( GetString(line) );
- event.m_commandInt = line ;
+ event.SetInt(line);
GetEventHandler()->ProcessEvent(event);
}