Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

showcase_listctrl Class Reference

A listctrl used in the showcase_dialog. More...

#include <showcase_listctrl.h>

Inheritance diagram for showcase_listctrl:

wxListCtrl List of all members.

Public Methods

  showcase_listctrl (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxLC_REPORT, const wxValidator &validator=wxDefaultValidator, const wxString &name="the_showcase_listctrl")
  Constructor.

  showcase_listctrl ()
  ~showcase_listctrl ()
  Destructor.

void  set_column_widths (int maximum_listctrl_width)
  Sets the column widths of the columns.


Protected Attributes

wxWindow *  m_parent

Detailed Description

A listctrl used in the showcase_dialog.

Populates rows from a file. Clicking on a row gets the details to show in the parent managed wxHtmlWindow.


Constructor & Destructor Documentation

showcase_listctrl::showcase_listctrl wxWindow *    parent,
wxWindowID    id = -1,
const wxPoint &    pos = wxDefaultPosition,
const wxSize &    size = wxDefaultSize,
long    style = wxLC_REPORT,
const wxValidator &    validator = wxDefaultValidator,
const wxString &    name = "the_showcase_listctrl"
 

Constructor.

Parameters:
parent  The parent window.
id  The id of the progress_listbox. Will usually be -1 unless multiple of them on the same dialog.
pos  The pixel position of the listctrl on its parent window
size  The pixel size of the listctrl
style  Style of the listbox. See wxWindows wxListBox docs for details.
validator  Window validator. See wxWindows docs for details.
name  Windows name (rarely used).

Member Function Documentation

void showcase_listctrl::set_column_widths int    maximum_listctrl_width
 

Sets the column widths of the columns.

Needs to be public so the parent can tell to resize them as needed when the sash position has changed.

Parameters:
maximum_listctrl_width  The maximum width of the whole listctrl.