generic wxListCtrl colour/font setting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -18,6 +18,7 @@ all (GUI):
|
||||
- wxMenu(Bar)::Insert() and Remove() functions for dynamic menu menagament
|
||||
- wxToolBar supports arbitrary controls (not only buttons) and can be
|
||||
dynamically changed (Delete/Insert functions)
|
||||
- wxListCtrl allows setting colour/fonts for individual items
|
||||
- wxDC::DrawRotatedText() (contributed by Hans-Joachim Baader, limited to
|
||||
+/-90 degrees for now - contributions to improve it are welcome!)
|
||||
|
||||
|
@@ -402,7 +402,7 @@ For list view mode (only), inserts a column. For more details, see \helpref{wxLi
|
||||
\pythonnote{In place of a single overloaded method name, wxPython
|
||||
implements the following methods:\par
|
||||
\indented{2cm}{\begin{twocollist}
|
||||
\twocolitem{\bf{InsertColumn(col, heading, format=wxLIST_FORMAT_LEFT,
|
||||
\twocolitem{\bf{InsertColumn(col, heading, format=wxLIST\_FORMAT\_LEFT,
|
||||
width=-1)}}{Creates a column using a header string only.}
|
||||
\twocolitem{\bf{InsertColumnInfo(col, item)}}{Creates a column using a
|
||||
wxListInfo.}
|
||||
@@ -529,6 +529,12 @@ The {\bf m\_mask} member contains a bitlist specifying which of the other fields
|
||||
|
||||
The {\bf m\_stateMask} and {\bf m\_state} members take flags from the following:
|
||||
|
||||
The wxListItem object can also contain item-specific colour and font
|
||||
information: for this you need to call one of SetTextColour(),
|
||||
SetBackgroundColour() or SetFont() functions on it passing it the colour/font
|
||||
to use. If the colour/font is not specified, the default list control
|
||||
colour/font is used.
|
||||
|
||||
\twocolwidtha{5cm}
|
||||
\begin{twocollist}\itemsep=0pt
|
||||
\twocolitem{wxLIST\_STATE\_DONTCARE}{Don't care what the state is. Win32 only. }
|
||||
|
Reference in New Issue
Block a user