// set the cell's ID to item's index so that CellCoordsToPhysical()
// can quickly find the item:
- cell->SetId(wxString::Format(_T("%u"), n));
+ cell->SetId(wxString::Format(_T("%lu"), (unsigned long)n));
cell->Layout(GetClientSize().x - 2*GetMargins().x);
// nothing to do
}
+wxCursor wxHtmlListBox::GetHTMLCursor(HTMLCursor type) const
+{
+ // we don't want to show text selection cursor in listboxes
+ if (type == HTMLCursor_Text)
+ return wxHtmlWindow::GetDefaultHTMLCursor(HTMLCursor_Default);
+
+ // in all other cases, use the same cursor as wxHtmlWindow:
+ return wxHtmlWindow::GetDefaultHTMLCursor(type);
+}
+
// ----------------------------------------------------------------------------
// wxHtmlListBox handling of HTML links
// ----------------------------------------------------------------------------