Function PopupMenu.addMultistateItem

Adds a new multistate item with text label. Contrarily to normal binary items, multistate items can have more than two states, as defined by max_states. Each press or activate of the item will increase the state by one. The default value is defined by default_state. An id can optionally be provided, as well as an accelerator (accel). If no id is provided, one will be created from the index. If no accel is provided then the default 0 will be assigned to it. See getItemAccelerator for more info on accelerators.

void addMultistateItem (
  const(String) label,
  const(long) max_states,
  const(long) default_state = 0L,
  const(long) id = -1L,
  const(long) accel = 0L
) nothrow @nogc;