(EventHandlerRef *)&m_macListCtrlEventHandler);
m_renameTimer = new wxListCtrlRenameTimer( this );
-
+
Connect( wxID_ANY, wxEVT_CHAR, wxCharEventHandler(wxListCtrl::OnChar), NULL, this );
Connect( wxID_ANY, wxEVT_LEFT_DOWN, wxMouseEventHandler(wxListCtrl::OnLeftDown), NULL, this );
Connect( wxID_ANY, wxEVT_LEFT_DCLICK, wxMouseEventHandler(wxListCtrl::OnDblClick), NULL, this );
bool wxListCtrl::SetFont(const wxFont& font)
{
- bool rv = true;
- rv = wxListCtrlBase::SetFont(font);
+ bool rv = wxListCtrlBase::SetFont(font);
if (m_genericImpl)
rv = m_genericImpl->SetFont(font);
return rv;
static void calculateCGDrawingBounds(CGRect inItemRect, CGRect *outIconRect, CGRect *outTextRect, bool hasIcon = false)
{
float textBottom;
- float iconH, iconW = 0;
+ float iconW = 0;
float padding = kItemPadding;
if (hasIcon)
{
- iconH = kIconHeight;
iconW = kIconWidth;
padding = padding*2;
}