Loading...
 

GetObject

GetObject

GetObject(windowID, childID), GetObject(, childID), GetObject

parameters: Identifier of a Windows and a child Windows object

Stack
Stack Position Description
Stack(In) Top -
Stack(Out) Top a (transient) object

In contrast to GetValue you get the (transient) object connected to the window object instead of the visible string:

Numeric CX_NUMERIC
Percent CX_PERCENT
Fraction CX_FRACTION
Date CX_DATE
DigitalTime CX_TIME
Button
230239
CX_BITMAPIf the button represents an image, then that image (primary only) is returned. Buttons that contain only text return INVALID.
Also works on closed widgets.
Picture CX_BITMAPAlso works onclosed widgets.
OleBox CX_COM_OBJECT
MLOleBox CX_MULTIPLE_COM_OBJECT unused languages are automatically removed from the object with each access
Objectbox see below

This is the original existing as a member in the window object - not a copy!

In case of an object box, GetObject brings the object belonging to the last selected entry on the stack:

Stack
Stack Position Description
Stack(In) Top -
Stack(Out) Top the last selected object

This is independent of whether the entry is currently selected or deselected (but compare GetObjectsSelected and the example).