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

wxWindow * wxPropertyGrid::GetEditorControl (  ) const

Returns pointer to current active primary editor control (NULL if none).

If editor uses clipper window, pointer is returned to the actual editor, not the clipper.

Definition at line 7814 of file propgrid.cpp.

Referenced by GetPropertyRect(), wxPGProperty::PrepareValueForDialogEditing(), and wxPropertyContainerMethods::SetPropertyMaxLength().

{
    wxWindow* ctrl = m_wndPrimary;

    if ( !ctrl )
        return ctrl;

    // If it's clipper window, return its child instead
#if wxPG_ENABLE_CLIPPER_WINDOW
    if ( ctrl->IsKindOf(CLASSINFO(wxPGClipperWindow)) )
    {
        return ((wxPGClipperWindow*)ctrl)->GetControl();
    }
#endif

    return ctrl;
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index