| Version: 3.2.5

Public Member Functions | Friends | List of all members
wxPropertyGridPage Class Reference
Class List by Category » wxPropertyGrid

`#include <wx/propgrid/manager.h>`

Inheritance diagram for wxPropertyGridPage:
[legend]

## Detailed Description

Holder of property grid page information.

You can subclass this and give instance in wxPropertyGridManager::AddPage. It inherits from wxEvtHandler and can be used to process events specific to this page (id of events will still be same as manager's). If you don't want to use it to process all events of the page, you need to return false in the derived wxPropertyGridPage::IsHandlingAllEvents.

Please note that wxPropertyGridPage lacks many non-const property manipulation functions found in wxPropertyGridManager. Please use parent manager (m_manager member variable) when needed.

Please note that most member functions are inherited and as such not documented on this page. This means you will probably also want to read wxPropertyGridInterface class reference.

# Event Handling

wxPropertyGridPage receives events emitted by its wxPropertyGridManager, but only those events that are specific to that page. If wxPropertyGridPage:: IsHandlingAllEvents returns false, then unhandled events are sent to the manager's parent, as usual.

See wxPropertyGrid Event Handling for more information.

##

Library: wxPropertyGrid
Category: wxPropertyGrid

## Public Member Functions

| wxPropertyGridPage ()
virtual | ~wxPropertyGridPage ()
virtual void | Clear ()
| Deletes all properties on page. More...
wxSize | FitColumns ()
| Reduces column sizes to minimum possible that contents are still visibly (naturally some margin space will be applied as well). More...
int | GetIndex () const
| Returns page index in manager;. More...
wxPGProperty * | GetRoot () const
| Returns "root property". More...
int | GetSplitterPosition (int col=0) const
| Returns x-coordinate position of splitter on a page. More...
wxPropertyGridPageState * | GetStatePtr ()
| Returns pointer to contained property grid state. More...
const wxPropertyGridPageState * | GetStatePtr () const
| Returns pointer to contained property grid state. More...
int | GetToolId () const
| Returns id of the tool bar item that represents this page on wxPropertyGridManager's wxToolBar. More...
virtual void | Init ()
| Do any member initialization in this method. More...
virtual bool | IsHandlingAllEvents () const
| Return false here to indicate unhandled events should be propagated to manager's parent, as normal. More...
virtual void | OnShow ()
| Called every time page is about to be shown. More...
virtual void | RefreshProperty (wxPGProperty *p)
| Refreshes given property on page. More...
void | SetSplitterPosition (int splitterPos, int col=0)
| Sets splitter position on page. More...
Public Member Functions inherited from wxEvtHandler
| wxEvtHandler ()
| Constructor. More...
virtual | ~wxEvtHandler ()
| Destructor. More...
virtual void | QueueEvent (wxEvent *event)
| Queue event for a later processing. More...
virtual void | AddPendingEvent (const wxEvent &event)
| Post an event to be processed later. More...
template<typename T , typename T1 , ... >
void | CallAfter (void(T::*method)(T1,...), T1 x1,...)
| Asynchronously call the given method. More...
template<typename T >
void | CallAfter (const T &functor)
| Asynchronously call the given functor. More...
virtual bool | ProcessEvent (wxEvent &event)
| Processes an event, searching event tables and calling zero or more suitable event handler function(s). More...
bool | ProcessEventLocally (wxEvent &event)
| Try to process the event in this handler and all those chained to it. More...
bool | SafelyProcessEvent (wxEvent &event)
| Processes an event by calling ProcessEvent() and handles any exceptions that occur in the process. More...
void | ProcessPendingEvents ()
| Processes the pending events previously queued using QueueEvent() or AddPendingEvent(); you must call this function only if you are sure there are pending events for this handler, otherwise a `wxCHECK` will fail. More...
void | DeletePendingEvents ()
| Deletes all events queued on this event handler using QueueEvent() or AddPendingEvent(). More...
void | Connect (int id, int lastId, wxEventType eventType, wxObjectEventFunction function, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL)
| Connects the given function dynamically with the event handler, id and event type. More...
void | Connect (int id, wxEventType eventType, wxObjectEventFunction function, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL)
| See the Connect(int, int, wxEventType, wxObjectEventFunction, wxObject*, wxEvtHandler*) overload for more info. More...
void | Connect (wxEventType eventType, wxObjectEventFunction function, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL)
| See the Connect(int, int, wxEventType, wxObjectEventFunction, wxObject*, wxEvtHandler*) overload for more info. More...
bool | Disconnect (wxEventType eventType, wxObjectEventFunction function, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL)
| Disconnects the given function dynamically from the event handler, using the specified parameters as search criteria and returning true if a matching function has been found and removed. More...
bool | Disconnect (int id=wxID_ANY, wxEventType eventType=wxEVT_NULL, wxObjectEventFunction function=NULL, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL)
| See the Disconnect(wxEventType, wxObjectEventFunction, wxObject*, wxEvtHandler*) overload for more info. More...
bool | Disconnect (int id, int lastId, wxEventType eventType, wxObjectEventFunction function=NULL, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL)
| See the Disconnect(wxEventType, wxObjectEventFunction, wxObject*, wxEvtHandler*) overload for more info. More...
template<typename EventTag , typename Functor >
void | Bind (const EventTag &eventType, Functor functor, int id=wxID_ANY, int lastId=wxID_ANY, wxObject *userData=NULL)
| Binds the given function, functor or method dynamically with the event. More...
template<typename EventTag , typename Class , typename EventArg , typename EventHandler >
void | Bind (const EventTag &eventType, void(Class::*method)(EventArg &), EventHandler *handler, int id=wxID_ANY, int lastId=wxID_ANY, wxObject *userData=NULL)
| See the Bind<>(const EventTag&, Functor, int, int, wxObject*) overload for more info. More...
template<typename EventTag , typename Functor >
bool | Unbind (const EventTag &eventType, Functor functor, int id=wxID_ANY, int lastId=wxID_ANY, wxObject *userData=NULL)
| Unbinds the given function, functor or method dynamically from the event handler, using the specified parameters as search criteria and returning true if a matching function has been found and removed. More...
template<typename EventTag , typename Class , typename EventArg , typename EventHandler >
bool | Unbind (const EventTag &eventType, void(Class::*method)(EventArg &), EventHandler *handler, int id=wxID_ANY, int lastId=wxID_ANY, wxObject *userData=NULL)
| See the Unbind<>(const EventTag&, Functor, int, int, wxObject*) overload for more info. More...
void * | GetClientData () const
| Returns user-supplied client data. More...
wxClientData * | GetClientObject () const
| Returns a pointer to the user-supplied client data object. More...
void | SetClientData (void *data)
| Sets user-supplied client data. More...
void | SetClientObject (wxClientData *data)
| Set the client data object. More...
bool | GetEvtHandlerEnabled () const
| Returns true if the event handler is enabled, false otherwise. More...
wxEvtHandler * | GetNextHandler () const
| Returns the pointer to the next handler in the chain. More...
wxEvtHandler * | GetPreviousHandler () const
| Returns the pointer to the previous handler in the chain. More...
void | SetEvtHandlerEnabled (bool enabled)
| Enables or disables the event handler. More...
virtual void | SetNextHandler (wxEvtHandler *handler)
| Sets the pointer to the next handler. More...
virtual void | SetPreviousHandler (wxEvtHandler *handler)
| Sets the pointer to the previous handler. More...
void | Unlink ()
| Unlinks this event handler from the chain it's part of (if any); then links the "previous" event handler to the "next" one (so that the chain won't be interrupted). More...
bool | IsUnlinked () const
| Returns true if the next and the previous handler pointers of this event handler instance are NULL. More...
Public Member Functions inherited from wxObject
| wxObject ()
| Default ctor; initializes to NULL the internal reference data. More...
| wxObject (const wxObject &other)
| Copy ctor. More...
virtual | ~wxObject ()
| Destructor. More...
virtual wxClassInfo * | GetClassInfo () const
| This virtual function is redefined for every class that requires run-time type information, when using the wxDECLARE_CLASS macro (or similar). More...
wxObjectRefData * | GetRefData () const
| Returns the wxObject::m_refData pointer, i.e. the data referenced by this object. More...
bool | IsKindOf (const wxClassInfo *info) const
| Determines whether this class is a subclass of (or the same class as) the given class. More...
bool | IsSameAs (const wxObject &obj) const
| Returns true if this object has the same data pointer as obj. More...
void | Ref (const wxObject &clone)
| Makes this object refer to the data in clone. More...
void | SetRefData (wxObjectRefData *data)
| Sets the wxObject::m_refData pointer. More...
void | UnRef ()
| Decrements the reference count in the associated data, and if it is zero, deletes the data. More...
void | UnShare ()
| This is the same of AllocExclusive() but this method is public. More...
void | operator delete (void *buf)
| The delete operator is defined for debugging versions of the library only, when the identifier `__WXDEBUG__` is defined. More...
void * | operator new (size_t size, const wxString &filename=NULL, int lineNum=0)
| The new operator is defined for debugging versions of the library only, when the identifier `__WXDEBUG__` is defined. More...
Public Member Functions inherited from wxPropertyGridInterface
virtual | ~wxPropertyGridInterface ()
| Destructor. More...
wxPGProperty * | Append (wxPGProperty *property)
| Appends property to the list. More...
wxPGProperty * | AppendIn (wxPGPropArg id, wxPGProperty *newProperty)
| Same as Append(), but appends under given parent property. More...
void | BeginAddChildren (wxPGPropArg id)
| In order to add new items into a property with private children (for instance, wxFlagsProperty), you need to call this method. More...
bool | ClearSelection (bool validation=false)
| Clears current selection, if any. More...
void | ClearModifiedStatus ()
| Resets modified status of all properties. More...
bool | Collapse (wxPGPropArg id)
| Collapses given category or property with children. More...
bool | CollapseAll ()
| Collapses all items that can be collapsed. More...
bool | ChangePropertyValue (wxPGPropArg id, wxVariant newValue)
| Changes value of a property, as if by user. More...
void | DeleteProperty (wxPGPropArg id)
| Removes and deletes a property and any children. More...
bool | DisableProperty (wxPGPropArg id)
| Disables a property. More...
bool | EditorValidate ()
| Returns true if all property grid data changes have been committed. More...
bool | EnableProperty (wxPGPropArg id, bool enable=true)
| Enables or disables property. More...
void | EndAddChildren (wxPGPropArg id)
| Called after population of property with fixed children has finished. More...
bool | Expand (wxPGPropArg id)
| Expands given category or property with children. More...
bool | ExpandAll (bool expand=true)
| Expands all items that can be expanded. More...
int | GetColumnProportion (unsigned int column) const
| Returns auto-resize proportion of the given column. More...
wxPGProperty * | GetFirstChild (wxPGPropArg id)
| Returns id of first child of given property. More...
wxPropertyGridIterator | GetIterator (int flags=wxPG_ITERATE_DEFAULT, wxPGProperty *firstProp=NULL)
| Returns iterator class instance. More...
wxPropertyGridConstIterator | GetIterator (int flags=wxPG_ITERATE_DEFAULT, wxPGProperty *firstProp=NULL) const
wxPropertyGridIterator | GetIterator (int flags, int startPos)
| Returns iterator class instance. More...
wxPropertyGridConstIterator | GetIterator (int flags, int startPos) const
wxPGProperty * | GetFirst (int flags=wxPG_ITERATE_ALL)
| Returns id of first item that matches given criteria. More...
const wxPGProperty * | GetFirst (int flags=wxPG_ITERATE_ALL) const
wxPGProperty * | GetProperty (const wxString &name) const
| Returns pointer to a property with given name (case-sensitive). More...
void | GetPropertiesWithFlag (wxArrayPGProperty *targetArr, wxPGProperty::FlagType flags, bool inverse=false, int iterFlags=(wxPG_ITERATE_PROPERTIES|wxPG_ITERATE_HIDDEN|wxPG_ITERATE_CATEGORIES)) const
| Adds to targetArr pointers to properties that have given flags set. More...
wxVariant | GetPropertyAttribute (wxPGPropArg id, const wxString &attrName) const
| Returns value of given attribute. More...
const wxPGAttributeStorage & | GetPropertyAttributes (wxPGPropArg id) const
| Returns map-like storage of property's attributes. More...
wxColour | GetPropertyBackgroundColour (wxPGPropArg id) const
| Returns background colour of first cell of a property. More...
wxPropertyCategory * | GetPropertyCategory (wxPGPropArg id) const
| Returns pointer of property's nearest parent category. More...
void * | GetPropertyClientData (wxPGPropArg id) const
| Returns client data (void*) of a property. More...
wxPGProperty * | GetPropertyByLabel (const wxString &label) const
| Returns first property which label matches given string. More...
wxPGProperty * | GetPropertyByName (const wxString &name) const
| Returns pointer to a property with given name (case-sensitive). More...
wxPGProperty * | GetPropertyByName (const wxString &name, const wxString &subname) const
| Returns child property subname of property name. More...
const wxPGEditor * | GetPropertyEditor (wxPGPropArg id) const
| Returns property's editor. More...
wxString | GetPropertyHelpString (wxPGPropArg id) const
| Returns help string associated with a property. More...
wxBitmap * | GetPropertyImage (wxPGPropArg id) const
| Returns property's custom value image (NULL of none). More...
const wxString & | GetPropertyLabel (wxPGPropArg id)
| Returns label of a property. More...
wxString | GetPropertyName (wxPGProperty *property)
| Returns property's name, by which it is globally accessible. More...
wxPGProperty * | GetPropertyParent (wxPGPropArg id)
| Returns parent item of a property. More...
wxColour | GetPropertyTextColour (wxPGPropArg id) const
| Returns text colour of first cell of a property. More...
wxValidator * | GetPropertyValidator (wxPGPropArg id)
| Returns validator of a property as a reference, which you can pass to any number of SetPropertyValidator. More...
wxVariant | GetPropertyValue (wxPGPropArg id)
| Returns property's value as wxVariant. More...
wxArrayInt | GetPropertyValueAsArrayInt (wxPGPropArg id) const
| Return's property's value as wxArrayInt. More...
wxArrayString | GetPropertyValueAsArrayString (wxPGPropArg id) const
| Returns property's value as wxArrayString. More...
bool | GetPropertyValueAsBool (wxPGPropArg id) const
| Returns property's value as bool. More...
wxDateTime | GetPropertyValueAsDateTime (wxPGPropArg id) const
| Return's property's value as wxDateTime. More...
double | GetPropertyValueAsDouble (wxPGPropArg id) const
| Returns property's value as double-precision floating point number. More...
int | GetPropertyValueAsInt (wxPGPropArg id) const
| Returns property's value as integer. More...
long | GetPropertyValueAsLong (wxPGPropArg id) const
| Returns property's value as integer. More...
wxLongLong_t | GetPropertyValueAsLongLong (wxPGPropArg id) const
| Returns property's value as native signed 64-bit integer. More...
wxString | GetPropertyValueAsString (wxPGPropArg id) const
| Returns property's value as wxString. More...
unsigned long | GetPropertyValueAsULong (wxPGPropArg id) const
| Returns property's value as unsigned integer. More...
wxULongLong_t | GetPropertyValueAsULongLong (wxPGPropArg id) const
| Returns property's value as native unsigned 64-bit integer. More...
wxVariant | GetPropertyValues (const wxString &listname=wxEmptyString, wxPGProperty *baseparent=NULL, long flags=0) const
| Returns a wxVariant list containing wxVariant versions of all property values. More...
const wxArrayPGProperty & | GetSelectedProperties () const
| Returns list of currently selected properties. More...
wxPGProperty * | GetSelection () const
| Returns currently selected property. More...
virtual wxPGVIterator | GetVIterator (int flags) const
| Similar to GetIterator(), but instead returns wxPGVIterator instance, which can be useful for forward-iterating through arbitrary property containers. More...
bool | HideProperty (wxPGPropArg id, bool hide=true, int flags=wxPG_RECURSE)
| Hides or reveals a property. More...
wxPGProperty * | Insert (wxPGPropArg priorThis, wxPGProperty *newProperty)
| Inserts property to the property container. More...
wxPGProperty * | Insert (wxPGPropArg parent, int index, wxPGProperty *newProperty)
| Inserts property to the property container. More...
bool | IsPropertyCategory (wxPGPropArg id) const
| Returns true if property is a category. More...
bool | IsPropertyEnabled (wxPGPropArg id) const
| Returns true if property is enabled. More...
bool | IsPropertyExpanded (wxPGPropArg id) const
| Returns true if given property is expanded. More...
bool | IsPropertyModified (wxPGPropArg id) const
| Returns true if property has been modified after value set or modify flag clear by software. More...
bool | IsPropertySelected (wxPGPropArg id) const
| Returns true if property is selected. More...
bool | IsPropertyShown (wxPGPropArg id) const
| Returns true if property is shown (i.e. More...
bool | IsPropertyValueUnspecified (wxPGPropArg id) const
| Returns true if property value is set to unspecified. More...
void | LimitPropertyEditing (wxPGPropArg id, bool limit=true)
| Disables (limit = true) or enables (limit = false) wxTextCtrl editor of a property, if it is not the sole mean to edit the value. More...
virtual void | RefreshGrid (wxPropertyGridPageState *state=NULL)
| If state is shown in its grid, refresh it now. More...
wxPGProperty * | RemoveProperty (wxPGPropArg id)
| Removes a property. More...
wxPGProperty * | ReplaceProperty (wxPGPropArg id, wxPGProperty *property)
| Replaces property with id with newly created one. More...
bool | RestoreEditableState (const wxString &src, int restoreStates=AllStates)
| Restores user-editable state. More...
wxString | SaveEditableState (int includedStates=AllStates) const
| Used to acquire user-editable state (selected property, expanded properties, scrolled position, splitter positions). More...
bool | SetColumnProportion (unsigned int column, int proportion)
| Set proportion of an auto-stretchable column. More...
void | SetPropertyAttribute (wxPGPropArg id, const wxString &attrName, wxVariant value, long argFlags=0)
| Sets an attribute for this property. More...
void | SetPropertyAttributeAll (const wxString &attrName, wxVariant value)
| Sets property attribute for all applicable properties. More...
void | SetPropertyBackgroundColour (wxPGPropArg id, const wxColour &colour, int flags=wxPG_RECURSE)
| Sets background colour of given property. More...
void | SetPropertyCell (wxPGPropArg id, int column, const wxString &text=wxEmptyString, const wxBitmapBundle &bitmap=wxBitmapBundle(), const wxColour &fgCol=wxNullColour, const wxColour &bgCol=wxNullColour)
| Sets text, bitmap, and colours for given column's cell. More...
void | SetPropertyClientData (wxPGPropArg id, void *clientData)
| Sets client data (void*) of a property. More...
void | SetPropertyColoursToDefault (wxPGPropArg id, int flags=wxPG_DONT_RECURSE)
| Resets text and background colours of given property. More...
void | SetPropertyEditor (wxPGPropArg id, const wxPGEditor *editor)
| Sets editor for a property. More...
void | SetPropertyEditor (wxPGPropArg id, const wxString &editorName)
| Sets editor control of a property. More...
void | SetPropertyLabel (wxPGPropArg id, const wxString &newproplabel)
| Sets label of a property. More...
void | SetPropertyName (wxPGPropArg id, const wxString &newName)
| Sets name of a property. More...
void | SetPropertyReadOnly (wxPGPropArg id, bool set=true, int flags=wxPG_RECURSE)
| Sets property (and, recursively, its children) to have read-only value. More...
void | SetPropertyValueUnspecified (wxPGPropArg id)
| Sets property's value to unspecified. More...
void | SetPropertyValues (const wxVariantList &list, wxPGPropArg defaultCategory=wxNullProperty)
| Sets property values from a list of wxVariants. More...
void | SetPropertyValues (const wxVariant &list, wxPGPropArg defaultCategory=wxNullProperty)
| Sets property values from a list of wxVariants. More...
void | SetPropertyHelpString (wxPGPropArg id, const wxString &helpString)
| Associates the help string with property. More...
void | SetPropertyImage (wxPGPropArg id, wxBitmapBundle &bmp)
| Set wxBitmap taken from wxBitmapBundle in front of the value. More...
bool | SetPropertyMaxLength (wxPGPropArg id, int maxLen)
| Sets maximum length of text in property text editor. More...
void | SetPropertyTextColour (wxPGPropArg id, const wxColour &colour, int flags=wxPG_RECURSE)
| Sets text colour of given property. More...
void | SetPropertyValidator (wxPGPropArg id, const wxValidator &validator)
| Sets validator of a property. More...
void | SetPropertyValue (wxPGPropArg id, long value)
| Sets value (long integer) of a property. More...
void | SetPropertyValue (wxPGPropArg id, int value)
| Sets value (integer) of a property. More...
void | SetPropertyValue (wxPGPropArg id, double value)
| Sets value (floating point) of a property. More...
void | SetPropertyValue (wxPGPropArg id, bool value)
| Sets value (bool) of a property. More...
void | SetPropertyValue (wxPGPropArg id, const wchar_t *value)
| Sets value (wchar_t*) of a property. More...
void | SetPropertyValue (wxPGPropArg id, const char *value)
| Sets value (char*) of a property. More...
void | SetPropertyValue (wxPGPropArg id, const wxString &value)
| Sets value (string) of a property. More...
void | SetPropertyValue (wxPGPropArg id, const wxArrayString &value)
| Sets value (wxArrayString) of a property. More...
void | SetPropertyValue (wxPGPropArg id, const wxDateTime &value)
| Sets value (wxDateTime) of a property. More...
void | SetPropertyValue (wxPGPropArg id, wxObject *value)
| Sets value (wxObject*) of a property. More...
void | SetPropertyValue (wxPGPropArg id, wxObject &value)
| Sets value (wxObject&) of a property. More...
void | SetPropertyValue (wxPGPropArg id, wxLongLong_t value)
| Sets value (native 64-bit int) of a property. More...
void | SetPropertyValue (wxPGPropArg id, wxLongLong value)
| Sets value (wxLongLong) of a property. More...
void | SetPropertyValue (wxPGPropArg id, wxULongLong_t value)
| Sets value (native 64-bit unsigned int) of a property. More...
void | SetPropertyValue (wxPGPropArg id, wxULongLong value)
| Sets value (wxULongLong) of a property. More...
void | SetPropertyValue (wxPGPropArg id, const wxArrayInt &value)
| Sets value (wxArrayInt&) of a property. More...
void | SetPropertyValueString (wxPGPropArg id, const wxString &value)
| Sets value (wxString) of a property. More...
void | SetPropertyValue (wxPGPropArg id, wxVariant value)
| Sets value (wxVariant) of a property. More...
void | SetPropVal (wxPGPropArg id, wxVariant &value)
| Sets value (wxVariant&) of a property. More...
void | SetValidationFailureBehavior (int vfbFlags)
| Adjusts how wxPropertyGrid behaves when invalid value is entered in a property. More...
void | Sort (int flags=0)
| Sorts all properties recursively. More...
void | SortChildren (wxPGPropArg id, int flags=0)
| Sorts children of a property. More...
wxPGProperty * | GetPropertyByNameA (const wxString &name) const
| GetPropertyByName() with assertion error message. More...
Public Member Functions inherited from wxPropertyGridPageState
| wxPropertyGridPageState ()
| Default constructor. More...
virtual | ~wxPropertyGridPageState ()
| Destructor. More...
void | CheckColumnWidths (int widthChange=0)
| Makes sure all columns have minimum width. More...
virtual void | DoDelete (wxPGProperty *item, bool doDelete=true)
| Override this member function to add custom behaviour on property deletion. More...
virtual wxPGProperty * | DoInsert (wxPGProperty *parent, int index, wxPGProperty *property)
| Override this member function to add custom behaviour on property insertion. More...
virtual void | DoSetSplitterPosition (int pos, int splitterColumn=0, int flags=0)
| This needs to be overridden in grid used the manager so that splitter changes can be propagated to other pages. More...
bool | EnableCategories (bool enable)
void | EnsureVirtualHeight ()
| Make sure virtual height is up-to-date. More...
unsigned int | GetVirtualHeight () const
| Returns (precalculated) height of contained visible properties. More...
unsigned int | GetVirtualHeight ()
| Returns (precalculated) height of contained visible properties. More...
unsigned int | GetActualVirtualHeight () const
| Returns actual height of contained visible properties. More...
unsigned int | GetColumnCount () const
int | GetColumnMinWidth (int column) const
int | GetColumnWidth (unsigned int column) const
wxPropertyGrid * | GetGrid () const
wxPGProperty * | GetLastItem (int flags=wxPG_ITERATE_DEFAULT)
| Returns last item which could be iterated using given flags. More...
const wxPGProperty * | GetLastItem (int flags=wxPG_ITERATE_DEFAULT) const
wxPGProperty * | GetSelection () const
| Returns currently selected property. More...
wxPropertyCategory * | GetPropertyCategory (const wxPGProperty *p) const
int | GetVirtualWidth () const
| Returns combined width of margin and all the columns. More...
int | GetColumnFullWidth (wxPGProperty *p, unsigned int col) const
wxPropertyGridHitTestResult | HitTest (const wxPoint &pt) const
| Returns information about arbitrary position in the grid. More...
bool | IsDisplayed () const
| Returns true if page is visibly displayed. More...
bool | IsInNonCatMode () const
void | VirtualHeightChanged ()
| Called after virtual height needs to be recalculated. More...

## Friends

class | wxPropertyGridManager

## Additional Inherited Members

Public Types inherited from wxPropertyGridInterface
enum | EditableStateFlags { SelectionState , ExpandedState , ScrollPosState , PageState , SplitterPosState , DescBoxState , AllStates }
| More...
Static Public Member Functions inherited from wxEvtHandler
static void | AddFilter (wxEventFilter *filter)
| Add an event filter whose FilterEvent() method will be called for each and every event processed by wxWidgets. More...
static void | RemoveFilter (wxEventFilter *filter)
| Remove a filter previously installed with AddFilter(). More...
Static Public Member Functions inherited from wxPropertyGridInterface
static void | InitAllTypeHandlers ()
| Initializes all property types. More...
static void | RegisterAdditionalEditors ()
| Initializes additional property editors (SpinCtrl etc.). More...
static void | SetBoolChoices (const wxString &trueChoice, const wxString &falseChoice)
| Sets strings listed in the choice dropdown of a wxBoolProperty. More...
static wxPGEditor * | GetEditorByName (const wxString &editorName)
| Returns editor pointer of editor with given name. More...
Protected Member Functions inherited from wxEvtHandler
virtual bool | TryBefore (wxEvent &event)
| Method called by ProcessEvent() before examining this object event tables. More...
virtual bool | TryAfter (wxEvent &event)
| Method called by ProcessEvent() as last resort. More...
Protected Member Functions inherited from wxObject
void | AllocExclusive ()
| Ensure that this object's data is not shared with any other object. More...
virtual wxObjectRefData * | CreateRefData () const
| Creates a new instance of the wxObjectRefData-derived class specific to this object and returns it. More...
virtual wxObjectRefData * | CloneRefData (const wxObjectRefData *data) const
| Creates a new instance of the wxObjectRefData-derived class specific to this object and initializes it copying data. More...
Protected Attributes inherited from wxObject
wxObjectRefData * | m_refData
| Pointer to an object which is the object's reference-counted data. More...

## Constructor & Destructor Documentation

## ◆ wxPropertyGridPage()

wxPropertyGridPage::wxPropertyGridPage | ( |  | ) |

## ◆ ~wxPropertyGridPage()

virtual wxPropertyGridPage::~wxPropertyGridPage | ( |  | ) |

virtual

## Member Function Documentation

## ◆ Clear()

virtual void wxPropertyGridPage::Clear | ( |  | ) |

virtual

Deletes all properties on page.

Implements wxPropertyGridInterface.

## ◆ FitColumns()

wxSize wxPropertyGridPage::FitColumns | ( |  | ) |

Reduces column sizes to minimum possible that contents are still visibly (naturally some margin space will be applied as well).

Returns
  Returns minimum size for the page to still display everything.

Remarks
  This function only works properly if size of containing grid was already fairly large.

Note that you can also get calculated column widths by calling GetColumnWidth() immediately after this function returns.

## ◆ GetIndex()

int wxPropertyGridPage::GetIndex | ( |  | ) | const

inline

Returns page index in manager;.

## ◆ GetRoot()

wxPGProperty* wxPropertyGridPage::GetRoot | ( |  | ) | const

Returns "root property".

It does not have name, etc. and it is not visible. It is only useful for accessing its children.

## ◆ GetSplitterPosition()

int wxPropertyGridPage::GetSplitterPosition | ( | int | col = `0` | ) | const

Returns x-coordinate position of splitter on a page.

## ◆ GetStatePtr() [1/2]

wxPropertyGridPageState* wxPropertyGridPage::GetStatePtr | ( |  | ) |

Returns pointer to contained property grid state.

## ◆ GetStatePtr() [2/2]

const wxPropertyGridPageState* wxPropertyGridPage::GetStatePtr | ( |  | ) | const

Returns pointer to contained property grid state.

## ◆ GetToolId()

int wxPropertyGridPage::GetToolId | ( |  | ) | const

Returns id of the tool bar item that represents this page on wxPropertyGridManager's wxToolBar.

## ◆ Init()

virtual void wxPropertyGridPage::Init | ( |  | ) |

virtual

Do any member initialization in this method.

Remarks
  - Called every time the page is added into a manager.
  - You can add properties to the page here.

## ◆ IsHandlingAllEvents()

virtual bool wxPropertyGridPage::IsHandlingAllEvents | ( |  | ) | const

virtual

Return false here to indicate unhandled events should be propagated to manager's parent, as normal.

## ◆ OnShow()

virtual void wxPropertyGridPage::OnShow | ( |  | ) |

virtual

Called every time page is about to be shown.

Useful, for instance, creating properties just-in-time.

## ◆ RefreshProperty()

virtual void wxPropertyGridPage::RefreshProperty | ( | wxPGProperty * | p | ) |

virtual

Refreshes given property on page.

Implements wxPropertyGridInterface.

## ◆ SetSplitterPosition()

void wxPropertyGridPage::SetSplitterPosition | ( | int | splitterPos,
|  | int | col = `0`
| ) |  |

Sets splitter position on page.

Remarks
  Splitter position cannot exceed grid size, and therefore setting it during form creation may fail as initial grid size is often smaller than desired splitter position, especially when sizers are being used.

## Friends And Related Function Documentation

## ◆ wxPropertyGridManager

friend class wxPropertyGridManager

friend