]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/propgrid/manager.h
On Windows, force read-only property editor wxTextCtrl to have 'white' background...
[wxWidgets.git] / interface / wx / propgrid / manager.h
index 473dd12b54fa9ab9035b6df79c11b0547e01d2f7..3aa7e9746cee5136167da6b27916a5fdc31b79c9 100644 (file)
@@ -170,19 +170,19 @@ public:
 
         wxPropertyGridPage* page;
 
-        page = pgMan->AddPage(wxT("First Page"));
+        page = pgMan->AddPage("First Page");
 
-        page->Append( new wxPropertyCategory(wxT("Category A1")) );
+        page->Append( new wxPropertyCategory("Category A1") );
 
-        page->Append( new wxIntProperty(wxT("Number"),wxPG_LABEL,1) );
+        page->Append( new wxIntProperty("Number",wxPG_LABEL,1) );
 
-        page->Append( new wxColourProperty(wxT("Colour"),wxPG_LABEL,*wxWHITE) );
+        page->Append( new wxColourProperty("Colour",wxPG_LABEL,*wxWHITE) );
 
-        page = pgMan->AddPage(wxT("Second Page"));
+        page = pgMan->AddPage("Second Page");
 
-        page->Append( wxT("Text"),wxPG_LABEL,wxT("(no text)") );
+        page->Append( "Text",wxPG_LABEL,"(no text)" );
 
-        page->Append( new wxFontProperty(wxT("Font"),wxPG_LABEL) );
+        page->Append( new wxFontProperty("Font",wxPG_LABEL) );
     @endcode
 
     @section propgridmanager_window_styles_ Window Styles
@@ -388,6 +388,12 @@ public:
     */
     bool IsPageModified( size_t index ) const;
 
+    /**
+        Returns true if property is selected. Since selection is page
+        based, this function checks every page in the manager.
+    */
+    virtual bool IsPropertySelected( wxPGPropArg id ) const;
+
     /**
         Removes a page.
 
@@ -411,7 +417,12 @@ public:
     /** Select and displays a given page. */
     void SelectPage( wxPropertyGridPage* page );
 
-    /** Select a property. */
+    /**
+        Select a property.
+
+        @see wxPropertyGrid::SelectProperty(),
+             wxPropertyGridInterface::ClearSelection()
+    */
     bool SelectProperty( wxPGPropArg id, bool focus = false );
 
     /**
@@ -463,8 +474,11 @@ protected:
     //
 
     /**
-        Creates property grid for the manager.
-        Override to use subclassed wxPropertyGrid.
+        Creates property grid for the manager. Reimplement in derived class to
+        use subclassed wxPropertyGrid. However, if you you do this then you
+        must also use the two-step construction (ie. default constructor and
+        Create() instead of constructor with arguments) when creating the
+        manager.
     */
     virtual wxPropertyGrid* CreatePropertyGrid() const;
 };