Correct introduction to wxControlWithItems

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2008-04-10 13:36:51 +00:00
parent de022e4f11
commit 7690a4ca86

View File

@@ -11,9 +11,9 @@
@wxheader{ctrlsub.h} @wxheader{ctrlsub.h}
This class is an abstract base class for some wxWidgets controls which contain This class is an abstract base class for some wxWidgets controls which contain
several items, such as wxListBox and several items such as wxListBox, wxCheckListBox, wxChoice and wxComboBox derive
wxCheckListBox derived from it, from it.
wxChoice and wxComboBox.
It defines the methods for accessing the controls items and although each of 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 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 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 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 (@c wxClientData *) which are owned by the control meaning that the typed
client data (and only it) will be deleted when an item is client data (and only it) will be deleted when an item is deleted
@ref wxControlWithItems::delete deleted or the entire control is (using wxControlWithItems::Delete) or the entire control is cleared
@ref wxControlWithItems::clear cleared (which also happens when it is (using wxControlWithItems::Clear) which also happens when it is
destroyed). Finally note that in the same control all items must have client destroyed.
data of the same type (typed or untyped), if any. This type is determined by
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 the first call to wxControlWithItems::Append (the version with
client data pointer) or wxControlWithItems::SetClientData. client data pointer) or wxControlWithItems::SetClientData.
@library{wxcore} @library{wxcore}
@category{FIXME} @category{controls}
@see wxControlWithItems::Clear @see wxControlWithItems::Clear
*/ */