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

void wxPropertyGrid::SetPropertyColourToDefault ( wxPGId  id )

Sets background and text colour of property and all its children to the default.

Definition at line 4464 of file propgrid.cpp.

References wxPGProperty::GetParentingType().

{
    wxPG_PROP_ID_CALL_PROLOG()

    SetBackgroundColourIndex( p, 0, wxPG_RECURSE|wxPG_FORCE );
    SetTextColourIndex( p, 0, wxPG_RECURSE|wxPG_FORCE );

    if ( p->GetParentingType() == PT_CAPTION )
    {
        wxPropertyCategoryClass* cat = (wxPropertyCategoryClass*) p;
        cat->SetTextColIndex(1);
    }
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index