"armed"

Indicates whether or not a button/object is pressed.

Synopsis

getValue(string shape, "armed", bool &state);

shape.armed();

Parameters

Parameter Description
shape Name of the object
state Pressed or depressed (TRUE/FALSE)

Description

This attribute indicates whether a button is pressed (armed==TRUE) or depressed.

Example

When the button "button123" ; is pressed, the text will change to "Pressed" ;.

main()
{
  shape but=getShape("button123");
  if (but.armed()==TRUE) but.text="Pressed";
}

Assignment

Button