Changes between Version 3 and Version 4 of documentation/C++Manual/Controls/Form
- Timestamp:
- 03/11/08 15:32:58 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
documentation/C++Manual/Controls/Form
v3 v4 176 176 }}} 177 177 178 Options can be procedurally added and removed with the ''Add()'' and ''Remove()'' functions.178 Options can be procedurally added and removed with the ''Add()'', ''Remove()'' and ''RemoveAll()'' functions. 179 179 180 180 {{{ 183 183 // @param[in] value The value of the option. 184 184 // @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. 185 186 // @return The index of the new option. 186 187 int Add(const EMP::Core::String& rml, 187 188 const EMP::Core::String& value, 188 int before = -1); 189 int before = -1, 190 bool selectable = true); 189 191 190 192 // Removes an option from the select control. 191 193 // @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. 192 194 void Remove(int index); 195 196 // Removes all options from the select control. 197 void RemoveAll(); 193 198 }}} 194 199