A simple class which holds line geometries for UltimateListCtrl.
__init__ | Default class constructor. |
CalculateSize | Calculates the line size and item positions. |
Check | Checks/unchecks an item. |
Draw | Draws the line on the specified device context. |
DrawHorizontalGradient | Gradient fill from colour 1 to colour 2 from left to right. |
DrawInReportMode | Draws the line on the specified device context when the parent UltimateListCtrl |
DrawTextFormatted | Draws the item text, correctly formatted. |
DrawVerticalGradient | Gradient fill from colour 1 to colour 2 from top to bottom. |
DrawVistaRectangle | Draws the selected item(s) with the Windows Vista style. |
GetAttr | Returns an instance of UltimateListItemAttr associated with the first item |
GetHeight | Returns the line height, in pixels. |
GetImage | Returns a Python list with the zero-based indexes of the images associated |
GetItem | Returns information about the item. |
GetKind | Returns the item kind. |
GetMode | Returns the current highlighting mode. |
GetText | Returns the item text at the position index. |
GetToolTip | Returns the item tooltip at the position index. |
GetWidth | Returns the line width. |
GetX | Returns the line x position. |
GetY | Returns the line y position. |
HasImage | Returns True if the first item in the line has at least one image |
HasMode | Returns True if the parent UltimateListCtrl has the window |
HasText | Returns True if the text of first item in the line is not the empty |
HideItemWindow | If the input item has a window associated with it, hide it. |
Highlight | Sets the current line as highlighted or not highlighted. |
InReportView | Returns True if the parent UltimateListCtrl is in report view. |
InitItems | Initializes the list of items. |
IsChecked | Returns whether the item is checked or not. |
IsHighlighted | Returns True if the line is highlighted. |
IsVirtual | Returns True if the parent UltimateListCtrl has the ULC_VIRTUAL style set. |
ResetDimensions | Resets the line dimensions (client rectangle). |
ReverseHighlight | Reverses the line highlighting, switching it off if it was on and vice-versa. |
SetAttr | Sets an instance of UltimateListItemAttr to the first item in the line. |
SetAttributes | Sets various attributes to the input device context. |
SetColour | Sets the text colour for the item. |
SetHeight | Sets the line height. |
SetImage | Sets the zero-based indexes of the images associated with the item into the image list. |
SetItem | Sets information about the item. |
SetKind | Sets the item kind. |
SetPosition | Sets the line position. |
SetReportView | Sets whether UltimateListLineData is in report view or not. |
SetText | Sets the item text at the position index. |
SetToolTip | Sets the item tooltip at the position index. |
SetWidth | Sets the line width. |
SetX | Sets the line x position. |
SetY | Sets the line y position. |
A simple class which holds line geometries for UltimateListCtrl.
Default class constructor.
Parameters: | owner – an instance of UltimateListCtrl. |
---|
Calculates the line size and item positions.
Parameters: |
|
---|
Checks/unchecks an item.
Parameters: |
|
---|
Note
This method is meaningful only for check and radio items.
Draws the line on the specified device context.
Parameters: |
|
---|
Gradient fill from colour 1 to colour 2 from left to right.
Parameters: |
|
---|
Draws the line on the specified device context when the parent UltimateListCtrl is in report mode.
Parameters: |
|
---|
Draws the item text, correctly formatted.
Parameters: |
|
---|
Gradient fill from colour 1 to colour 2 from top to bottom.
Parameters: |
|
---|
Draws the selected item(s) with the Windows Vista style.
Parameters: |
|
---|
Returns an instance of UltimateListItemAttr associated with the first item in the line.
Returns a Python list with the zero-based indexes of the images associated with the item into the image list.
Parameters: | index – the index of the item. |
---|
Returns information about the item.
Parameters: |
|
---|
Returns the item kind.
Parameters: | index – the index of the item. |
---|
See also
SetKind for a list of valid item kinds.
Returns the item text at the position index.
Parameters: | index – the index of the item. |
---|
Returns the item tooltip at the position index.
Parameters: | index – the index of the item. |
---|
Returns True if the first item in the line has at least one image associated with it.
Returns True if the parent UltimateListCtrl has the window style specified by mode.
Parameters: | mode – the window style to check. |
---|
If the input item has a window associated with it, hide it.
Parameters: | item – an instance of UltimateListItem. |
---|
Sets the current line as highlighted or not highlighted.
Parameters: | on – True to set the current line as highlighted, False otherwise. |
---|
Returns True if the parent UltimateListCtrl is in report view.
Initializes the list of items.
Parameters: | num – the initial number of items to store. |
---|
Returns whether the item is checked or not.
Parameters: | index – the index of the item. |
---|
Returns True if the parent UltimateListCtrl has the ULC_VIRTUAL style set.
Reverses the line highlighting, switching it off if it was on and vice-versa.
Sets an instance of UltimateListItemAttr to the first item in the line.
Parameters: | attr – an instance of UltimateListItemAttr. |
---|
Sets various attributes to the input device context.
Parameters: |
|
---|
Sets the text colour for the item.
Parameters: |
|
---|
Sets the zero-based indexes of the images associated with the item into the image list.
Parameters: |
|
---|
Sets information about the item.
Parameters: |
|
---|
Sets the item kind.
Parameters: |
|
---|
Sets the line position.
Parameters: |
|
---|
Sets whether UltimateListLineData is in report view or not.
Parameters: | inReportView – True to set UltimateListLineData in report view, False otherwise. |
---|
Sets the item text at the position index.
Parameters: |
|
---|
Sets the item tooltip at the position index.
Parameters: |
|
---|