"width"

The attribute "width" returns the width of an object (e.g. a textEdit, a zoom navigator or a slider).

Synopsis

getValue(string shape, "width", int &w);

Parameter

Parameter Description
shape Name of the object
w The width of an object.

Description

The attribute "width" returns the width of an object (e.g. a textEdit, a zoom navigator or a slider).

Example

The code returns the width of a textEdit "TEXT_EDIT1".

main(bool enter)
{
  string sn = "TEXT_EDIT1";
  int he;
  getValue(sn,"width",he);
  DebugN("The width ",he);
}

Assignment

TextEdit, Slider, Zoom navigator, DpTreeView