"backgroundOrigin"

Returns the origin of the widget`s background. This attribute only makes a difference if the widget has a background pixmap, in which case positioning matters. You can also set the origin.

Synopsis

getValue(string shape, "backgroundOrigin", string mode);

shape.backgroundOrigin(string mode);

Parameter

Parameter Description
shape Name of the object
mode

Used mode:

"WidgetOrigin"

"ParentOrigin"

"WindowOrigin"

"AncestorOrigin"

Description

Returns the origin of the widget`s background.

Example

main()
{
  string objT = "TEXT_EDIT1";
  string mod;
  getValue(objT, "backgroundOrigin", mod);
  DebugN("Background origin", mod);
}

Assignment

TextEdit, DpTreeView