A window which holds the header of HyperTreeList.
__init__ | Default class constructor. |
AddColumn | Appends a column to the TreeListHeaderWindow. |
AddColumnInfo | Appends a column to the TreeListHeaderWindow. |
AdjustDC | Shifts the wx.DC origin to match the position of the main window horizontal |
DrawCurrent | Draws the column resize line on a wx.ScreenDC. |
GetColumn | Returns a column item, an instance of TreeListItem. |
GetColumnAlignment | Returns the column text alignment. |
GetColumnColour | Returns the column text colour. |
GetColumnCount | Returns the total number of columns. |
GetColumnText | Returns the column text label. |
GetColumnWidth | Returns the column width, in pixels. |
GetWidth | Returns the total width of all columns. |
InsertColumn | Inserts a column to the TreeListHeaderWindow at the position specified |
InsertColumnInfo | Inserts a column to the TreeListHeaderWindow at the position specified |
IsColumnEditable | Returns True if the column is editable, False otherwise. |
IsColumnShown | Returns True if the column is shown, False if it is hidden. |
OnMouse | Handles the wx.EVT_MOUSE_EVENTS event for TreeListHeaderWindow. |
OnPaint | Handles the wx.EVT_PAINT event for TreeListHeaderWindow. |
OnSetFocus | Handles the wx.EVT_SET_FOCUS event for TreeListHeaderWindow. |
RefreshColLabel | Redraws the column. |
RemoveColumn | Removes a column from the TreeListHeaderWindow. |
SendListEvent | Sends a wx.ListEvent for the parent window. |
SetBuffered | Sets/unsets the double buffering for the header. |
SetColumn | Sets a column using an instance of TreeListColumnInfo. |
SetColumnAlignment | Sets the column text alignment. |
SetColumnColour | Sets the column text colour. |
SetColumnText | Sets the column text label. |
SetColumnWidth | Sets the column width, in pixels. |
SetCustomRenderer | Associate a custom renderer with the header - all columns will use it :param renderer: a class able to correctly render header buttons .. |
XToCol | Returns the column that corresponds to the logical input x coordinate. |
A window which holds the header of HyperTreeList.
Default class constructor.
Parameters: |
|
---|
Appends a column to the TreeListHeaderWindow.
Parameters: |
|
---|
Appends a column to the TreeListHeaderWindow.
Parameters: | colInfo – an instance of TreeListColumnInfo. |
---|
Shifts the wx.DC origin to match the position of the main window horizontal scrollbar: this allows us to always use logical coordinates.
Parameters: | dc – an instance of wx.DC. |
---|
Draws the column resize line on a wx.ScreenDC.
Returns a column item, an instance of TreeListItem.
Parameters: | column – an integer specifying the column index. |
---|
Returns the column text alignment.
Parameters: | column – an integer specifying the column index. |
---|
Returns the column text colour.
Parameters: | column – an integer specifying the column index. |
---|
Returns the column text label.
Parameters: | column – an integer specifying the column index. |
---|
Returns the column width, in pixels.
Parameters: | column – an integer specifying the column index. |
---|
Inserts a column to the TreeListHeaderWindow at the position specified by before.
Parameters: |
|
---|
Inserts a column to the TreeListHeaderWindow at the position specified by before.
Parameters: |
|
---|
Returns True if the column is editable, False otherwise.
Parameters: | column – an integer specifying the column index. |
---|
Returns True if the column is shown, False if it is hidden.
Parameters: | column – an integer specifying the column index. |
---|
Handles the wx.EVT_MOUSE_EVENTS event for TreeListHeaderWindow.
Parameters: | event – a wx.MouseEvent event to be processed. |
---|
Handles the wx.EVT_PAINT event for TreeListHeaderWindow.
Parameters: | event – a wx.PaintEvent event to be processed. |
---|
Handles the wx.EVT_SET_FOCUS event for TreeListHeaderWindow.
Parameters: | event – a wx.FocusEvent event to be processed. |
---|
Redraws the column.
Parameters: | col – the index of the column to redraw. |
---|
Removes a column from the TreeListHeaderWindow.
Parameters: | column – an integer specifying the column index. |
---|
Sends a wx.ListEvent for the parent window.
Parameters: |
|
---|
Sets/unsets the double buffering for the header.
Parameters: | buffered – True to use double-buffering, False otherwise. |
---|
Note
Currently we are using double-buffering only on Windows XP.
Sets a column using an instance of TreeListColumnInfo.
Parameters: |
|
---|
Sets the column text alignment.
Parameters: |
|
---|
See also
TreeListColumnInfo.SetAlignment() for a list of valid alignment flags.
Sets the column text colour.
Parameters: |
|
---|
Sets the column text label.
Parameters: |
|
---|
Sets the column width, in pixels.
Parameters: |
|
---|
Associate a custom renderer with the header - all columns will use it
Parameters: | renderer – a class able to correctly render header buttons |
---|
Note
the renderer class must implement the method DrawHeaderButton