BEGIN_EVENT_TABLE(wxListBox, wxControl)
END_EVENT_TABLE()
-#include "wx/mac/uma.h"
+#include "wx/osx/uma.h"
// ============================================================================
// list box control implementation
return;
}
- wxListBox *list = wxDynamicCast( owner->GetPeer() , wxListBox );
+ wxListBox *list = wxDynamicCast( owner->GetWXPeer() , wxListBox );
wxCHECK_RET( list != NULL , wxT("Listbox expected"));
if (message == kDataBrowserItemDoubleClicked)
DataBrowserItemNotification message,
DataBrowserItemDataRef itemData)
{
- wxListBox *list = wxDynamicCast( GetPeer() , wxListBox );
+ wxListBox *list = wxDynamicCast( GetWXPeer() , wxListBox );
wxCHECK_RET( list != NULL , wxT("Listbox expected"));
if (list->HasMultipleSelection() && (message == kDataBrowserSelectionSetChanged) && (!list->MacGetBlockEvents()))
wxCommandEvent event( wxEVT_COMMAND_LISTBOX_SELECTED, list->GetId() );
int sel = list->GetSelection();
- if ((sel < 0) || (sel > list->GetCount())) // OS X can select an item below the last item (why?)
+ if ((sel < 0) || (sel > (int) list->GetCount())) // OS X can select an item below the last item (why?)
return;
event.SetEventObject( list );
if ( list->HasClientObjectData() )
// call super for item level(wxMacDataItem->Notification) callback processing
wxMacDataItemBrowserControl::ItemNotification( itemID, message, itemData);
}
-
+/*
wxWindow * wxMacDataBrowserListControl::GetPeer() const
{
- return wxDynamicCast( wxMacControl::GetPeer() , wxWindow );
+ return wxDynamicCast( wxMacControl::GetWX() , wxWindow );
}
-
+*/
wxMacDataItem* wxMacDataBrowserListControl::CreateItem()
{
return new wxMacListBoxItem();