]> git.saurik.com Git - wxWidgets.git/blobdiff - docs/latex/wx/proplist.tex
Updated wxBitmap overview
[wxWidgets.git] / docs / latex / wx / proplist.tex
index d782b0c5987e338ee4d3454631333ff2c35b158e..ee6a7147a7c9056e819abf0e9819403faf38b4ac 100644 (file)
@@ -55,9 +55,9 @@ Behaviour alters depending on the kind of property being edited. For example, a
 the following behaviour:
 
 \begin{itemize}\itemsep=0pt
-\item Double-clicking on the item toggles between TRUE and FALSE.
-\item Showing the value list enables the user to select TRUE or FALSE.
-\item The user may be able to type in the word TRUE or FALSE, or the edit control
+\item Double-clicking on the item toggles between true and false.
+\item Showing the value list enables the user to select true or false.
+\item The user may be able to type in the word true or false, or the edit control
 may be read-only to disallow this since it is error-prone.
 \end{itemize}
 
@@ -180,7 +180,7 @@ void PropertyListTest(Bool useDialog)
   wxPropertySheet *sheet = new wxPropertySheet;
 
   sheet->AddProperty(new wxProperty("fred", 1.0, "real"));
-  sheet->AddProperty(new wxProperty("tough choice", (Bool)TRUE, "bool"));
+  sheet->AddProperty(new wxProperty("tough choice", (Bool)true, "bool"));
   sheet->AddProperty(new wxProperty("ian", (long)45, "integer", new wxIntegerListValidator(-50, 50)));
   sheet->AddProperty(new wxProperty("bill", 25.0, "real", new wxRealListValidator(0.0, 100.0)));
   sheet->AddProperty(new wxProperty("julian", "one", "string"));
@@ -196,7 +196,7 @@ void PropertyListTest(Bool useDialog)
   wxPropertyListFrame *propFrame = NULL;
   if (useDialog)
   {
-    propDialog = new wxPropertyListDialog(view, NULL, "Property Sheet Test", TRUE, -1, -1, 400, 500);
+    propDialog = new wxPropertyListDialog(view, NULL, "Property Sheet Test", true, -1, -1, 400, 500);
   }
   else
   {
@@ -209,14 +209,14 @@ void PropertyListTest(Bool useDialog)
   {
     view->ShowView(sheet, propDialog);
     propDialog->Centre(wxBOTH);
-    propDialog->Show(TRUE);
+    propDialog->Show(true);
   }
   else
   {
     propFrame->Initialize();
     view->ShowView(sheet, propFrame->GetPropertyPanel());
     propFrame->Centre(wxBOTH);
-    propFrame->Show(TRUE);
+    propFrame->Show(true);
   }
 }
 \end{verbatim}
@@ -240,7 +240,7 @@ void PropertyFormTest(Bool useDialog)
   wxPropertySheet *sheet = new wxPropertySheet;
 
   sheet->AddProperty(new wxProperty("fred", 25.0, "real", new wxRealFormValidator(0.0, 100.0)));
-  sheet->AddProperty(new wxProperty("tough choice", (Bool)TRUE, "bool"));
+  sheet->AddProperty(new wxProperty("tough choice", (Bool)true, "bool"));
   sheet->AddProperty(new wxProperty("ian", (long)45, "integer", new wxIntegerFormValidator(-50, 50)));
   sheet->AddProperty(new wxProperty("julian", "one", "string"));
   wxStringList *strings = new wxStringList("one", "two", "three", NULL);
@@ -252,7 +252,7 @@ void PropertyFormTest(Bool useDialog)
   wxPropertyFormFrame *propFrame = NULL;
   if (useDialog)
   {
-    propDialog = new wxPropertyFormDialog(view, NULL, "Property Form Test", TRUE, -1, -1, 400, 300);
+    propDialog = new wxPropertyFormDialog(view, NULL, "Property Form Test", true, -1, -1, 400, 300);
   }
   else
   {
@@ -286,7 +286,7 @@ void PropertyFormTest(Bool useDialog)
     view->AssociateNames();
     view->TransferToDialog();
     propDialog->Centre(wxBOTH);
-    propDialog->Show(TRUE);
+    propDialog->Show(true);
   }
   else
   {
@@ -294,7 +294,7 @@ void PropertyFormTest(Bool useDialog)
     view->AssociateNames();
     view->TransferToDialog();
     propFrame->Centre(wxBOTH);
-    propFrame->Show(TRUE);
+    propFrame->Show(true);
   }
 }
 \end{verbatim}
@@ -333,7 +333,7 @@ one property, and there is no provision for invoking further dialogs. The reader
 may like to work out how the form view could be extended to provide some of the
 functionality of the property list!
 
-Validator objects may be associated explictly with a wxProperty, or they may be
+Validator objects may be associated explicitly with a wxProperty, or they may be
 indirectly associated by virtue of a property `kind' that matches validators having
 that kind. In the latter case, such validators are stored in a validator registry
 which is passed to the view before the dialog is shown. If the validator takes
@@ -453,7 +453,7 @@ example, in Visual Basic and similar programming environments, you can
 `edit a button', or rather, edit the button's properties.  One of the
 properties you can edit is {\it width} - but there is no explicit
 representation of width in a wxWindows button; instead, you call SetSize
-and GetSize members. To translate this into a consisent,
+and GetSize members. To translate this into a consistent,
 property-oriented scheme, we could derive a new class
 wxButtonWithProperties, which has two new functions: SetProperty and
 GetProperty.  SetProperty accepts a property name and a value, and calls