File: prop16.htm

package info (click to toggle)
wxwin2-doc 2.01-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 6,540 kB
  • ctags: 5,968
  • sloc: cpp: 15,157; makefile: 434; sh: 6
file content (29 lines) | stat: -rw-r--r-- 1,397 bytes parent folder | download
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-&gt;AddProperty(new wxProperty("fred", strings, "stringlist"));
</PRE>

<A HREF="prop17.htm#topic6"><B>wxListOfStringsListValidator::wxListofStringsListValidator</B></A><BR>

</BODY></HTML>