"buttonType"

Defines the type of a button (with a text, icon or both).

Synopsis

setValue(string shape, "buttonType", int type);

shape.buttonType(type);

Parameter

Parameter Description
shape Name of the objects
type

BT_TEXT (0) displays a text.

BT_PIXMAP (1) displays an icon.

BT_PIXMAP_TEXT (2) displays both text and icons.

Description

Defines the type of a button (with a text, icon or both).

Example

With the following script, you can change between two graphic images and, in addition, display a text.

main()
{
  this.buttonType(BT_PIXMAP_TEXT);
  this.buttonDownPixmap = "Butback.gif";
  this.buttonUpPixmap = "download1.gif";
  this.text = "button description text";
}

or also

main()
{
  setValue("","buttonType", BT_PIXMAP_TEXT,
  "buttonDownPixmap", "Butback.gif",
  "buttonUpPixmap", "download1.gif",
  "text", "button description text");
}

Assignment

Button