Changes between Version 3 and Version 4 of documentation/C++Manual/Controls/Form

Show
Ignore:
Author:
lloydw (IP: 203.96.63.172)
Timestamp:
03/11/08 15:32:58 (9 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • documentation/C++Manual/Controls/Form

    v3 v4  
    176176}}} 
    177177 
    178 Options can be procedurally added and removed with the ''Add()'' and ''Remove()'' functions. 
     178Options can be procedurally added and removed with the ''Add()'', ''Remove()'' and ''RemoveAll()'' functions. 
    179179 
    180180{{{ 
    183183// @param[in] value The value of the option. 
    184184// @param[in] before The index of the element to insert the new option before. If out of bounds the new option will be added at the end of the list. 
     185// @param[in] selectable If true this option can be selected. If false, this option is not selectable. 
    185186// @return The index of the new option. 
    186187int Add(const EMP::Core::String& rml, 
    187188        const EMP::Core::String& value, 
    188         int before = -1); 
     189        int before = -1, 
     190        bool selectable = true); 
    189191 
    190192// Removes an option from the select control. 
    191193// @param[in] index The index of the option to remove. If this is outside of the bounds of the control's option list, no option will be removed. 
    192194void Remove(int index); 
     195 
     196// Removes all options from the select control. 
     197void RemoveAll(); 
    193198}}} 
    194199