Class: DSelector (of Control)

The DSelector class is the control class for selector controls. These allow the user to select an item from a list.

Properties

  • type
  • state
  • nsTop
  • nsLeft
  • nsBottom
  • nsRight
  • key
  • said
  • value
  • font
  • x
  • y
  • text
  • cursor
  • lsTop
  • mark

Methods

  • bool handleEvent(heapPtr pEvent)

    Handles the selector's input, allowing the user to select items in the list.

  • void setSize()

    Sets up the control's size.

  • number indexOf(string aString)

    Returns the index of specified string in the list of items. If the string is not an item in the list, it returns -1.

  • string at(number position)

    Returns string at the specified position in the list.

  • void advance(number amount)

    Increments the selected item's index by amount.

  • void retreat(number amount)

    Decrements the selected item's index by amount.