"x", "y"

The attributes x and y return the coordinate of an object (e.g. a textEdit, a progress bar, a slider, a zoom navigator, an LCD number or a thumb wheel). x returns the X coordinate of an object. y returns the Y coordinate of an object.

Synopsis

getValue(string shape, "x", int xCord);

getValue(string shape, "y", int yCord);

Parameter

Parameter Description
shape Name of the object

xCord

yCord

The coordinate of the object

Description

The attributes x and y return the coordinate of an object (e.g. a textEdit, a progress bar, a slider, a zoom navigator, an LCD number or a thumb wheel). x returns the X coordinate of an object. y returns the Y coordinate of an object.

Example

The example returns the x and y coordinate of a textEdit.

main()
{
  int xCord,yCord;
  string obj1 = "TEXT_EDIT1";
  getValue(obj1,"x",xCord);
  getValue(obj1,"y",yCord);
  DebugN("x-coordinate",xCord);
  DebugN("y-coordinate",yCord);
}

Assignment

TextEdit, Thumb wheel, Progress bar, Slider, Zoom Navigator, LCD number, DpTreeView.