Spread 8.0 Documentation
DLL
Support Options

Glossary Item Box

DLL


To limit user entry in an edit cell

  1. Call the SSSetTypeEdit function and set the parameters as follows:
    1. Set the ChrSet parameter to specify a character set that can be used to type data.
    2. Set the Len parameter to specify the maximum number of characters allowed in the cell.
    3. Set the Style parameter to ES_MULTILINE to let users type multiple lines of text in the cell.
    4. If you set the Style parameter to ES_MULTILINE in step 1c and you want to allow the user to press the Enter key to add a new line, set the Style parameter to ES_WANTRETURN.
    5. Set the Style parameter to ES_AUTOHSCROLL to allow horizontal scrolling in the cell.
  2. Call the SSSetCellType or SSSetCellTypeRange function and set the CellType parameter to SS_TYPE_EDIT.
© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.