updated source to not use deprecated wxList methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -95,23 +95,23 @@ wxSize wxButton::GetDefaultSize()
|
||||
|
||||
void wxButton::Command (wxCommandEvent & event)
|
||||
{
|
||||
if ( (ControlHandle) m_macControl )
|
||||
{
|
||||
HiliteControl( (ControlHandle) m_macControl , kControlButtonPart ) ;
|
||||
unsigned long finalTicks ;
|
||||
Delay( 8 , &finalTicks ) ;
|
||||
HiliteControl( (ControlHandle) m_macControl , 0 ) ;
|
||||
}
|
||||
if ( (ControlHandle) m_macControl )
|
||||
{
|
||||
HiliteControl( (ControlHandle) m_macControl , kControlButtonPart ) ;
|
||||
unsigned long finalTicks ;
|
||||
Delay( 8 , &finalTicks ) ;
|
||||
HiliteControl( (ControlHandle) m_macControl , 0 ) ;
|
||||
}
|
||||
ProcessCommand (event);
|
||||
}
|
||||
|
||||
void wxButton::MacHandleControlClick( WXWidget control , wxInt16 controlpart )
|
||||
void wxButton::MacHandleControlClick( WXWidget WXUNUSED(control) , wxInt16 controlpart )
|
||||
{
|
||||
if ( controlpart != kControlNoPart )
|
||||
{
|
||||
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, m_windowId );
|
||||
event.SetEventObject(this);
|
||||
ProcessCommand(event);
|
||||
}
|
||||
if ( controlpart != kControlNoPart )
|
||||
{
|
||||
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, m_windowId );
|
||||
event.SetEventObject(this);
|
||||
ProcessCommand(event);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user