For instance what would be the best way in OA to get the global/absolute coordinates of this search bar which is embedded within a toolbar object:
https://imgur.com/a/Pe9OCXA
I've tried several approaches, but none have returned the correct coordinates (see list of attempts below):
1. positionAsDyn() - Only ever returns the same relative coordinates of the associated search field. Regardless of where the search field is placed.
2. mapToGlobal() - In theory, this should return the global coordinates, however, I find it returns coordinates that aren't even within the ballpark of the correct position.
3.panelPosition() - This function seems to only return the absolute position when dealing with base panels. For anything embedded just seems to get the relative coordinates.
Note that I am running on Win CC OA 3.18.