"contentsHeight, contentsWidth"

The attribute "contentsHeight" returns the height of an object, for example, the height of a TextEdit text area. The attribute "contentsWidth" again returns the width of a TextEdit text area.

Synopsis

getValue(string shape, "contentsHeight", int &height);

get Value(string shape, "contentsWidth", int &width);

Parameter

Parameter Description
shape Name of the object
height The height
width The width

Description

The attribute "contentsHeight" returns the height of an object, for example, the height of a TextEdit text area. The attribute "contentsWidth" again returns the width of a TextEdit text area.

Example

Returns the height and width of the text (object "TEXT_EDIT1").

main()
{
  string obj = "TEXT_EDIT1";
  int h;
  int w;
  getValue(obj,"contentsHeight",h);
  getValue(obj,"contentsWidth",w);
  DebugN("Heigth", h);
  DebugN("Width", w);
}

Assignment

TextEdit, embedded module