From 7690a4ca86aea86424162ea3ebbb4f642685140b Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Thu, 10 Apr 2008 13:36:51 +0000 Subject: [PATCH] Correct introduction to wxControlWithItems git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/ctrlsub.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/interface/ctrlsub.h b/interface/ctrlsub.h index 9376be9a86..3ac1b3a452 100644 --- a/interface/ctrlsub.h +++ b/interface/ctrlsub.h @@ -11,9 +11,9 @@ @wxheader{ctrlsub.h} This class is an abstract base class for some wxWidgets controls which contain - several items, such as wxListBox and - wxCheckListBox derived from it, - wxChoice and wxComboBox. + several items such as wxListBox, wxCheckListBox, wxChoice and wxComboBox derive + from it. + It defines the methods for accessing the controls items and although each of the derived classes implements them differently, they still all conform to the @@ -24,16 +24,18 @@ different kinds: either simple untyped (@c void *) pointers which are simply stored by the control but not used in any way by it, or typed pointers (@c wxClientData *) which are owned by the control meaning that the typed - client data (and only it) will be deleted when an item is - @ref wxControlWithItems::delete deleted or the entire control is - @ref wxControlWithItems::clear cleared (which also happens when it is - destroyed). Finally note that in the same control all items must have client - data of the same type (typed or untyped), if any. This type is determined by + client data (and only it) will be deleted when an item is deleted + (using wxControlWithItems::Delete) or the entire control is cleared + (using wxControlWithItems::Clear) which also happens when it is + destroyed. + + Finally note that in the same control all items must have client data of the + same type (typed or untyped), if any. This type is determined by the first call to wxControlWithItems::Append (the version with client data pointer) or wxControlWithItems::SetClientData. @library{wxcore} - @category{FIXME} + @category{controls} @see wxControlWithItems::Clear */ -- 2.45.2