Insert() patch from John Labenski
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% Name: ctrlsub.tex
|
||||
%% Purpose: wxControlWithItems documentation
|
||||
%% Author: Vadim Zeitlin
|
||||
@@ -7,7 +7,7 @@
|
||||
%% RCS-ID: $Id$
|
||||
%% Copyright: (c) 2003 Vadim Zeitlin
|
||||
%% License: wxWindows license
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
\section{\class{wxControlWithItems}}\label{wxcontrolwithitems}
|
||||
|
||||
@@ -218,6 +218,35 @@ selected.
|
||||
\helpref{GetSelection}{wxcontrolwithitemsgetselection}
|
||||
|
||||
|
||||
\membersection{wxControlWithItems::Insert}\label{wxcontrolwithitemsinsert}
|
||||
|
||||
\func{int}{Insert}{\param{const wxString\& }{ item}, \param{int }{pos}}
|
||||
|
||||
Inserts the item into the list before pos.
|
||||
Not valid for {\tt wxLB\_SORT} or {\tt wxCB\_SORT} styles, use Append instead.
|
||||
|
||||
\func{int}{Insert}{\param{const wxString\& }{ item}, \param{int }{pos}, \param{void *}{clientData}}
|
||||
|
||||
\func{int}{Insert}{\param{const wxString\& }{ item}, \param{int }{pos}, \param{wxClientData *}{clientData}}
|
||||
|
||||
Inserts the item into the list before pos, associating the given, typed or
|
||||
untyped, client data pointer with the item.
|
||||
Not valid for {\tt wxLB\_SORT} or {\tt wxCB\_SORT} styles, use Append instead.
|
||||
|
||||
\wxheading{Parameters}
|
||||
|
||||
\docparam{item}{String to add.}
|
||||
|
||||
\docparam{pos}{Position to insert item before, zero based.}
|
||||
|
||||
\docparam{clientData}{Client data to associate with the item.}
|
||||
|
||||
\wxheading{Return value}
|
||||
|
||||
The return value is the index of the newly inserted item. If the insertion failed
|
||||
for some reason, -1 is returned.
|
||||
|
||||
|
||||
\membersection{wxControlWithItems::IsEmpty}\label{wxcontrolwithitemsisempty}
|
||||
|
||||
\constfunc{bool}{IsEmpty}{\void}
|
||||
|
Reference in New Issue
Block a user