Just use the already existing wxRenderer::DrawItemSelectionRect()

from wxListCtrl and wxTreeCtrl; and document it...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2006-11-14 10:20:38 +00:00
parent 3ccb6f0c23
commit 05d9753817
4 changed files with 56 additions and 105 deletions

View File

@@ -143,6 +143,21 @@ The \arg{sortArrow} parameter can be one of
drawing of a text or bitmap label can be passed in \arg{params}.
\membersection{wxRendererNative::DrawItemSelectionRect}\label{wxrenderernativedrawitemselectionrect}
\func{void}{DrawItemSelectionRect}{\param{wxWindow* }{win}, \param{wxDC\& }{dc}, \param{const wxRect\& }{rect}, \param{int }{flags = 0}}
Draw a selection rectangle underneath the text as used e.g.
in a \helpref{wxListCtrl}{wxlistctrl}. The supported \arg{flags}
are \texttt{wxCONTROL\_SELECTED} for items which are selected
(e.g. often a blue rectangle) and \texttt{wxCONTROL\_CURRENT}
for the item that has the focus (often a dotted line around
the item's text). \texttt{wxCONTROL\_CURRENT} may be used
to indicate if the control has the focus (othewise the
the selection rectangle is e.g. often grey and not blue).
This may be ignored by the renderer or deduced by the
code directly from the \arg{win}.
\membersection{wxRendererNative::DrawPushButton}\label{wxrenderernativedrawpushbutton}
\func{void}{DrawPushButton}{\param{wxWindow *}{win}, \param{wxDC\& }{dc}, \param{const wxRect\& }{rect}, \param{int }{flags}}