]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/deprecated/propform.cpp
Aliases for [G|S]etCaretLineBack
[wxWidgets.git] / contrib / src / deprecated / propform.cpp
index 2395e564c55c13670744684defdcbdc0563d70a0..df77fe214d8dbe2453301ab6f699c2b1aaf0b45c 100644 (file)
@@ -9,10 +9,6 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
-#pragma implementation "propform.h"
-#endif
-
 // For compilers that support precompilation, includes "wx/wx.h".
 #include "wx/wxprec.h"
 
@@ -680,7 +676,7 @@ bool wxStringFormValidator::OnRetrieveValue(wxProperty *property, wxPropertyForm
     else if (m_propertyWindow->IsKindOf(CLASSINFO(wxListBox)))
     {
         wxListBox *lbox = (wxListBox *)m_propertyWindow;
-        if (lbox->GetSelection() > -1)
+        if (lbox->GetSelection() != wxNOT_FOUND)
             property->GetValue() = lbox->GetStringSelection();
     }
     /*
@@ -688,14 +684,14 @@ bool wxStringFormValidator::OnRetrieveValue(wxProperty *property, wxPropertyForm
     {
     wxRadioBox *rbox = (wxRadioBox *)m_propertyWindow;
     int n = 0;
-    if ((n = rbox->GetSelection()) > -1)
+    if ((n = rbox->GetSelection()) != wxNOT_FOUND)
     property->GetValue() = rbox->GetString(n);
     }
     */
     else if (m_propertyWindow->IsKindOf(CLASSINFO(wxChoice)))
     {
         wxChoice *choice = (wxChoice *)m_propertyWindow;
-        if (choice->GetSelection() > -1)
+        if (choice->GetSelection() != wxNOT_FOUND)
             property->GetValue() = choice->GetStringSelection();
     }
     else