"textPosition"

Defines where the text of the button shall be put when using a pixmap.

Synopsis

shape.textPosition(string position);

Parameter

Parameter Description
shape Name of the objects
position

Defines where the text shall be put. Following options are available:

  • TEXT_BELOW_PIXMAP => The text will be put below the pixmap

  • TEXT_RIGHT_OF_PIXMAP => The text will be put right of the pixmap.

Description

If a button is used with a pixmap, textPosition sets the position of the text.

Example

With the following script, the text is set below the pixmap.

main()
{
  this.buttonType = BT_PIXMAP_TEXT;
  this.textPosition("TEXT_BELOW_PIXMAP");
  this.text("MyButton");
}

Assignment

Button