"maximumHeight, maximumWidth"

The attribute "maximumHeight"; returns the maximum height of a textEdit (excluding any window frame), a tree widget or a slider and the attribute "maximumWidth"; the maximum width of a textEdit, a tree widget or a slider.

Synopsis

getValue(string shape,"maximumHeight",int &mHeight);

getValue(string shape,"maximumWidth",int &mWidth);

Parameter

Parameter Description
shape Name of the object

mHeight

mWidth

The maximum height of a textEdit.

The maximum width of a textEdit.

Description

The attribute "maximumHeight"; returns the maximum height of a textEdit (excluding any window frame), a tree widget or a slider and the attribute "maximumWidth"; the maximum width of a textEdit, a tree widget or a slider.

Example

The example returns the maximum height and width of a textEdit.

main(bool enter)
{
  string objT = "TEXT_EDIT1";
  int mHeig;
  getValue(objT,"maximumHeight",mHeig);
  DebugN("Maximum height",mHeig);
  int mWidth;
  getValue(objT,"maximumWidth",mWidth);
  DebugN("Maximum width", mWidth);
}

Assignment

TextEdit, Slider, Tree widget