Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

int wxPropertyGridManager::GetPageByState ( wxPropertyGridState pstate ) const [inherited]

Returns index for a relevant propertygrid state. If no match is found, wxNOT_FOUND is returned.

Definition at line 706 of file manager.cpp.

References wxPropertyGridManager::GetPageCount().

Referenced by wxPropertyGridManager::EnsureVisible().

    wxASSERT( pState );

    size_t i;
    for ( i=0; i<GetPageCount(); i++ )
        if ( pState == ((wxPropertyGridPage*)m_arrPages.Item(i))->GetStatePtr() )
            return i;

    return wxNOT_FOUND;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index