A window which holds the header of HyperTreeList
.
Default class constructor. |
|
Appends a column to the |
|
Appends a column to the |
|
Shifts the |
|
Draws the column resize line on a |
|
Returns a column item, an instance of |
|
Returns the column text alignment. |
|
Returns the column text colour. |
|
Returns the total number of columns. |
|
Returns the column text label. |
|
Returns the column width, in pixels. |
|
Returns the total width of all columns. |
|
Inserts a column to the |
|
Inserts a column to the |
|
Returns |
|
Returns |
|
Handles the |
|
Handles the |
|
Handles the |
|
Redraws the column. |
|
Removes a column from the |
|
Sends a |
|
Sets/unsets the double buffering for the header. |
|
Sets a column using an instance of |
|
Sets the column text alignment. |
|
Sets the column text colour. |
|
Sets the column text label. |
|
Sets the column width, in pixels. |
|
Associate a custom renderer with the header - all columns will use it |
|
Returns the column that corresponds to the logical input x coordinate. |
A window which holds the header of HyperTreeList
.
Default class constructor.
parent – the window parent. Must not be None
;
id – window identifier. A value of -1 indicates a default value;
owner – the window owner, in this case an instance of TreeListMainWindow
;
pos – the control position. A value of (-1, -1) indicates a default position, chosen by either the windowing system or wxPython, depending on platform;
size – the control size. A value of (-1, -1) indicates a default size, chosen by either the windowing system or wxPython, depending on platform;
style – the window style;
name – the window name.
Appends a column to the TreeListHeaderWindow
.
text – the column text label;
width – the column width in pixels;
flag – the column alignment flag, one of wx.ALIGN_LEFT
,
wx.ALIGN_RIGHT
, wx.ALIGN_CENTER
;
image – an index within the normal image list assigned to
HyperTreeList
specifying the image to use for the column;
shown – True
to show the column, False
to hide it;
colour – a valid wx.Colour
, representing the text foreground colour
for the column;
edit – True
to set the column as editable, False
otherwise.
Appends a column to the TreeListHeaderWindow
.
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.
dc – an instance of wx.DC
.
Draws the column resize line on a ScreenDC
.
Returns a column item, an instance of TreeListItem
.
column – an integer specifying the column index.
Returns the column text alignment.
column – an integer specifying the column index.
Returns the column text colour.
column – an integer specifying the column index.
Returns the total number of columns.
Returns the column text label.
column – an integer specifying the column index.
Returns the column width, in pixels.
column – an integer specifying the column index.
Returns the total width of all columns.
Inserts a column to the TreeListHeaderWindow
at the position specified
by before.
before – the index at which we wish to insert the new column;
text – the column text label;
width – the column width in pixels;
flag – the column alignment flag, one of wx.ALIGN_LEFT
,
wx.ALIGN_RIGHT
, wx.ALIGN_CENTER
;
image – an index within the normal image list assigned to
HyperTreeList
specifying the image to use for the column;
shown – True
to show the column, False
to hide it;
colour – a valid wx.Colour
, representing the text foreground colour
for the column;
edit – True
to set the column as editable, False
otherwise.
Inserts a column to the TreeListHeaderWindow
at the position specified
by before.
before – the index at which we wish to insert the new column;
colInfo – an instance of TreeListColumnInfo
.
Returns True
if the column is editable, False
otherwise.
column – an integer specifying the column index.
Returns True
if the column is shown, False
if it is hidden.
column – an integer specifying the column index.
Handles the wx.EVT_MOUSE_EVENTS
event for TreeListHeaderWindow
.
event – a MouseEvent
event to be processed.
Handles the wx.EVT_PAINT
event for TreeListHeaderWindow
.
event – a PaintEvent
event to be processed.
Handles the wx.EVT_SET_FOCUS
event for TreeListHeaderWindow
.
event – a FocusEvent
event to be processed.
Redraws the column.
col – the index of the column to redraw.
Removes a column from the TreeListHeaderWindow
.
column – an integer specifying the column index.
Sends a ListEvent
for the parent window.
evtType – the event type;
pos – an instance of wx.Point
.
Sets/unsets the double buffering for the header.
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
.
column – an integer specifying the column index;
info – an instance of TreeListColumnInfo
.
Sets the column text alignment.
column – an integer specifying the column index;
flag – the new text alignment flag.
See also
TreeListColumnInfo.SetAlignment()
for a list of valid alignment
flags.
Sets the column text colour.
column – an integer specifying the column index;
colour – a valid wx.Colour
object.
Sets the column text label.
column – an integer specifying the column index;
text – the new column label.
Sets the column width, in pixels.
column – an integer specifying the column index;
width – the new width for the column, in pixels.
Associate a custom renderer with the header - all columns will use it
renderer – a class able to correctly render header buttons
Note
the renderer class must implement the method DrawHeaderButton
Returns the column that corresponds to the logical input x coordinate.
x – the x position to evaluate.
The column that corresponds to the logical input x coordinate,
or wx.NOT_FOUND
if there is no column at the x position.