Please enable JavaScript to view this site.

ESL Documentation

Object Inquiry Built-in Function

Return the identifier(s) of the parent(s) of a specified object.

ancestry of OBJECT_NAME

OBJECT_NAME

The identifier for an object.

Description

The value returned is the fully-qualified name string of the parent(s) of the specified object. Note that this function does not work for menu items.

The syntax used in the returned value for the ancestry is as follows, with child defined as:

# Object definition:

CHILD in PARENT_N in ... in PARENT2 in PARENT1

When ancestry of CHILD is specified, ESL returns:

# Values returned by the ancestry of function:

PARENT1/PARENT2/.../PARENT_N

The string returned indicates that PARENT_N is in the object PARENT2, which is in PARENT1, which is in the coordinate system of the screen as defined by the screen size environment declaration.

Example

 

response to AddWindow_PB

 add blue graphical region Writer_GR size 510 280

 at position XCalc YCalc in ancestry of BigWindow_GR

 

response to Done_PB # in a dialog box

 make ancestry of object invisible

 make ancestry of object temporary

See Also

ancestry Response Inquiry Built-in Function

in Keyword

position Keyword