- wxVListBox is a listbox-like control with the following two main differences
- from a regular listbox: it can have an arbitrarily huge number of items because
- it doesn't store them itself but uses wxVListBox::OnDrawItem
- callback to draw them (so it is a Virtual listbox) and its items can
- have variable height as determined by
- wxVListBox::OnMeasureItem (so it is also a listbox
- with the lines of Variable height).
-
- Also, as a consequence of its virtual nature, it doesn't have any methods to
- append or insert items in it as it isn't necessary to do it: you just have to
- call wxVListBox::SetItemCount to tell the control how
- many items it should display. Of course, this also means that you will never
- use this class directly because it has pure virtual functions, but will need to
- derive your own class, such as wxHtmlListBox, from it.
-
- However it emits the same events as wxListBox and the same
- event macros may be used with it. Since wxVListBox does not store its items
- itself, the events will only contain the index, not any contents such as the
- string of an item.
+ wxVListBox is a wxListBox-like control with the following two main
+ differences from a regular wxListBox: it can have an arbitrarily huge
+ number of items because it doesn't store them itself but uses the
+ OnDrawItem() callback to draw them (so it is a virtual listbox) and its
+ items can have variable height as determined by OnMeasureItem() (so it is
+ also a listbox with the lines of variable height).
+
+ Also, as a consequence of its virtual nature, it doesn't have any methods
+ to append or insert items in it as it isn't necessary to do it: you just
+ have to call SetItemCount() to tell the control how many items it should
+ display. Of course, this also means that you will never use this class
+ directly because it has pure virtual functions, but will need to derive
+ your own class from it (for example, wxHtmlListBox).
+
+ However it emits the same events as wxListBox and the same event macros may
+ be used with it. Since wxVListBox does not store its items itself, the
+ events will only contain the index, not any contents such as the string of
+ an item.