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

void wxPropertyContainerMethods::AddPropertyChoice ( wxPGId  id,
const wxString &  label,
int  value = wxPG_INVALID_VALUE 
) [inherited]

Adds choice to a property that can accept one.

Remarks:
  • If you need to make sure that you modify only the set of choices of a single property (and not also choices of other properties with initially identical set), call wxPropertyGrid::SetPropertyChoicesPrivate.
  • This usually only works for wxEnumProperty and derivatives (wxFlagsProperty can get accept new items but its items may not get updated).

Definition at line 549 of file propgrid.cpp.

{
    wxPG_PROP_ID_CALL_PROLOG()

    p->InsertChoice(label,-1,value);
}

Generated by  Doxygen 1.6.0   Back to index