1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
<HTML>
<head><title>wxListOfStringsListValidator: wxPropertyListValidator</title></head>
<BODY BGCOLOR=#FFFFFF>
<A NAME="wxlistofstringslistvalidator"></A><CENTER>
<A HREF="prop.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="prop5.htm#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="prop15.htm#topic5"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="prop17.htm#topic6"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>
<H2>wxListOfStringsListValidator: wxPropertyListValidator</H2>
<P>
<img src="books.gif"></A><A HREF="prop184.htm#validatorclasses">Validator classes</A>
<P>
This class validates a list of strings for a list view. When editing the property,
a dialog box is presented for adding, deleting or editing entries in the list.
At present no constraints may be supplied.<P>
You can construct a string list property value by constructing a wxStringList object.<P>
For example:<P>
<PRE>
myListValidatorRegistry.RegisterValidator((wxString)"stringlist",
new wxListOfStringsListValidator);
wxStringList *strings = new wxStringList("earth", "fire", "wind", "water", NULL);
sheet->AddProperty(new wxProperty("fred", strings, "stringlist"));
</PRE>
<A HREF="prop17.htm#topic6"><B>wxListOfStringsListValidator::wxListofStringsListValidator</B></A><BR>
</BODY></HTML>
|