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

void wxPropertyGrid::SetCaptionTextColour ( wxPGId  id,
const wxColour &  col 
)

Sets text colour of a category caption (but not it's children).

Definition at line 4438 of file propgrid.cpp.

References wxPGProperty::GetParentingType().

{
    wxPG_PROP_ID_CALL_PROLOG()

    wxCHECK_RET( p->GetParentingType() == PT_CAPTION,
                 wxT("Only call SetCaptionTextColour for caption properties") );

    // Set indexes
    wxPropertyCategoryClass* cat = (wxPropertyCategoryClass*) p;
    cat->SetTextColIndex(CacheColour(colour));

    // If this was on a visible grid, then draw it.
    DrawItemAndChildren(p);
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index