.\" This is a wxWidgets manpage page generated from the XML docs .TH wxHtmlListBox 3wx 2005-02-15 "wxWidgets" "wxWidgets class documentation" .SH NAME wxHtmlListBox \- A listbox showing HTML content .SH DESCRIPTION wxHtmlListBox is an implementation of wxVListBox which shows HTML content in the listbox rows. This is still an abstract base class and you will need to derive your own class from it (see htlbox sample for the example) but you will only need to override a single OnGetItem() function. .SH "PARENTS" wxVListBox .SH "INCLUDE FILES" wx/htmllbox.h .SH MEMBERS .SS wxHtmlListBox (wxWindow* parentwxWindowID id = wxID_ANYconst wxPoint& pos = wxDefaultPositionconst wxSize& size = wxDefaultSizelong style = 0const wxString& name = wxVListBoxNameStr) Normal constructor which calls Create() internally. .SS wxHtmlListBox () Default constructor, you must call Create() later. .SS ~wxHtmlListBox () Destructor cleans up whatever resources we use. .SS bool Create (wxWindow* parentwxWindowID id = wxID_ANYconst wxPoint& pos = wxDefaultPositionconst wxSize& size = wxDefaultSizelong style = 0const wxString& name = wxVListBoxNameStr) Creates the control and optionally sets the initial number of items in it (it may also be set or changed later with SetItemCount() ). There are no special styles defined for wxHtmlListBox, in particular the wxListBox styles can not be used here. Returns true on success or false if the control couldn't be created .SS wxFileSystem& GetFileSystem () .SS const wxFileSystem& GetFileSystem () Returns the wxFileSystem used by the HTML parser of this object. The file system object is used to resolve the paths in HTML fragments displayed in the control and you should use wxFileSystem::ChangePathTo if you use relative paths for the images or other resources embedded in your HTML. .SS wxColour GetSelectedTextBgColour (const wxColour& colBg) This virtual function may be overridden to change the appearance of the background of the selected cells in the same way as GetSelectedTextColour . It should be rarely, if ever, used because SetSelectionBackground allows to change the selection background for all cells at once and doing anything more fancy is probably going to look strangely. .SS wxColour GetSelectedTextColour (const wxColour& colFg) This virtual function may be overridden to customize the appearance of the selected cells. It is used to determine how the colour colFg is going to look inside selection. By default all original colours are completely ignored and the standard, system-dependent, selection colour is used but the program may wish to override this to achieve some custom appearance. .SS wxString OnGetItem (size_t n) This method must be implemented in the derived class and should return the body (i.e. without nor tags) of the HTML fragment for the given item. .SS wxString OnGetItemMarkup (size_t n) This function may be overridden to decorate HTML returned by OnGetItem() . .SH "SEE ALSO" wxVListBox .SH "AUTHORS" Documentation content by Julian Smart, Robert Roebling, Vadim Zeitlin, Robin Dunn, et al Conversion to manpage format by Arnout Engelen (http://bzzt.net), bugreports welcome.