wxLIST_HITTEST_TOLEFT,
wxLIST_HITTEST_TORIGHT,
wxLIST_HITTEST_ONITEM,
+
+// GetSubItemRect constants
+ wxLIST_GETSUBITEMRECT_WHOLEITEM,
};
// Sets the item image
bool SetItemImage(long item, int image, int selImage=-1) ;
+ bool SetItemColumnImage( long item, long column, int image );
// Gets the item text
wxString GetItemText(long item) const ;
self->GetItemRect(item, rect, code);
return rect;
}
+
+// MSW only so far...
+// wxRect GetSubItemRect(long item, long subItem, int code = wxLIST_RECT_BOUNDS) {
+// wxRect rect;
+// self->GetSubItemRect(item, subItem, rect, code);
+// return rect;
+// }
}
// get the horizontal and vertical components of the item spacing
wxSize GetItemSpacing() const;
+ %pythoncode { GetItemSpacing = wx._deprecated(GetItemSpacing) }
#ifndef __WXMSW__
void SetItemSpacing( int spacing, bool isSmall = false );
+ %pythoncode { SetItemSpacing = wx._deprecated(SetItemSpacing) }
#endif
// Gets the number of selected items in the list control
"Determines which item (if any) is at the specified point, giving
details in the second return value (see wx.LIST_HITTEST flags.)", "");
+ DocDeclAStrName(
+ long, HitTest(const wxPoint& point, int& OUTPUT, long* OUTPUT),
+ "HitTestSubItem(Point point) -> (item, where, subItem)",
+ "Determines which item (if any) is at the specified point, giving details in
+the second return value (see wx.LIST_HITTEST flags) and also the subItem, if
+any.", "",
+ HitTestSubItem);
+
+
// Inserts an item, returning the index of the new item if successful,
// -1 otherwise.
long InsertItem(wxListItem& info);