*/
bool EnsureVisible( wxPGPropArg id );
- /** Returns number of children of the root property of the selected page. */
- size_t GetChildrenCount()
- {
- return GetChildrenCount( m_pPropGrid->m_pState->m_properties );
- }
-
- /** Returns number of children of the root property of given page. */
- size_t GetChildrenCount( int pageIndex );
-
- /** Returns number of children for the property.
-
- NB: Cannot be in container methods class due to name hiding.
- */
- size_t GetChildrenCount( wxPGPropArg id ) const
- {
- wxPG_PROP_ARG_CALL_PROLOG_RETVAL(0)
- return p->GetChildCount();
- }
-
/** Returns number of columns on given page. By the default,
returns number of columns on current page. */
int GetColumnCount( int page = -1 ) const;
*/
bool EnsureVisible( wxPGPropArg id );
- /**
- Returns number of children of the root property of the selected page.
- */
- size_t GetChildrenCount()
- {
- return GetChildrenCount( m_pPropGrid->m_pState->m_properties );
- }
-
- /**
- Returns number of children of the root property of given page.
- */
- size_t GetChildrenCount( int pageIndex );
-
- /**
- Returns number of children for the property.
-
- NB: Cannot be in container methods class due to name hiding.
- */
- size_t GetChildrenCount( wxPGPropArg id ) const
- {
- wxPG_PROP_ARG_CALL_PROLOG_RETVAL(0)
- return p->GetChildCount();
- }
-
/**
Returns number of columns on given page. By the default,
returns number of columns on current page.
{
wxString propLabel;
- if ( !m_pPropGridManager->GetChildrenCount() )
+ if ( !m_pPropGridManager->GetGrid()->GetRoot()->GetChildCount() )
{
wxMessageBox(wxT("No items to relate - first add some with Append."));
return;
{
wxString propLabel;
- if ( !m_pPropGridManager->GetChildrenCount() )
+ if ( !m_pPropGridManager->GetGrid()->GetRoot()->GetChildCount() )
{
wxMessageBox(wxT("No items to relate - first add some with Append."));
return;
// -----------------------------------------------------------------------
-size_t wxPropertyGridManager::GetChildrenCount( int page_index )
-{
- return GetChildrenCount( GetPage(page_index)->GetStatePtr()->m_properties );
-}
-
-// -----------------------------------------------------------------------
-
void wxPropertyGridManager::OnToolbarClick( wxCommandEvent &event )
{
int id = event.GetId();