value.Set( GetString( n ) );
}
-void wxListBox::SetValueCallback( unsigned int n, wxListWidgetColumn* col , wxListWidgetCellValue& value )
+void wxListBox::SetValueCallback( unsigned int WXUNUSED(n), wxListWidgetColumn* WXUNUSED(col) , wxListWidgetCellValue& WXUNUSED(value) )
{
}
attr.colFg = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOWTEXT );
attr.colBg = wxSystemSettings::GetColour( wxSYS_COLOUR_LISTBOX );
-#if wxOSX_USE_ATSU_TEXT
- attr.font.MacCreateFromThemeFont(kThemeViewsFont);
-#else
- attr.font.MacCreateFromUIFont(kCTFontViewsFontType);
-#endif
+ attr.font.CreateSystemFont(wxOSX_SYSTEM_FONT_VIEWS);
return attr;
}
GetListPeer()->UpdateLine(n);
}
+//
+// common event handling
+//
+
+void wxListBox::HandleLineEvent( unsigned int n, bool doubleClick )
+{
+ wxCommandEvent event( doubleClick ? wxEVT_COMMAND_LISTBOX_DOUBLECLICKED :
+ wxEVT_COMMAND_LISTBOX_SELECTED, GetId() );
+ event.SetEventObject( this );
+ if ( HasClientObjectData() )
+ event.SetClientObject( GetClientObject(n) );
+ else if ( HasClientUntypedData() )
+ event.SetClientData( GetClientData(n) );
+ event.SetString( GetString(n) );
+ event.SetInt( n );
+ event.SetExtraLong( 1 );
+ HandleWindowEvent(event);
+}
+
#endif // wxUSE_LISTBOX