Class: Control (of Obj)

The Control class is the base class for buttons, text, edits, selectors and icons.

Properties

  • type
  • state
  • nsTop
  • nsLeft
  • nsBottom
  • nsRight
  • key
  • said
  • value

Methods

  • number doit()

    Returns the value property.

  • void enable(bool fENABLE)

    If fENABLE is TRUE, it enables the control. Otherwise, it disables it.

  • void select(bool fSELECT)

    If fSELECT is TRUE, it selects the control. Otherwise, it deselects it. It then draws the updated control.

  • bool handleEvent(heapPtr pEvent)

    If pEvent's claimed property is FALSE, it returns FALSE. Otherwise, it tracks it and returns whether it's tracked or not.

  • bool check(heapPtr pEvent)

    Returns TRUE s the mouse cursor is over the control. FALSE otherwise.

  • heapPtr track(heapPtr pEvent)

    Tracks the control, highlighting it if it's selected. It returns a poiter to the control.

  • void setSize()

    In the base Control class, this is just an empty place holder.

  • void move(number theX, number theY)

    Moves the control theX pixels horizontally, and theY pixels vertically.

  • void moveTo(number newX, number newY)

    Moves the control to the newX and newY positions.

  • void draw()

    Draws the control.

  • bool isType(number aType)

    Returns TRUE if the control's type is aType, otherwise, FALSE.

  • bool checkState(number aState)

    Returns TRUE if the control's state is aState, otherwise, FALSE.

  • void cycle()

    In the base Control class, this is just an empty place holder.