03-19-2023 12:26 PM
03-19-2023 01:55 PM - edited 03-19-2023 02:17 PM
I can confirm this is a bug in the scripting method: the "Horizontal" and "Vertical" coordinates of the "Position" parameter are indeed flipped.
For comparison, the method "Create from Data Type" from the VI class uses exactly the same Typedef "LVPointTypeDef.ctl" for the position, and the coordinates are used correctly.
Attached is a minimal example that reproduces the bug, with the comparison with the other method that works as intended.
03-20-2023 02:47 AM - edited 03-20-2023 02:51 AM
The scripting Application class method "UI.Hilight palette menu item" also has the same issue (or at least has had for a long time. I haven't checked in recent versions). Maybe whoever implemented them came from a background where the reversed order makes sense.
03-20-2023 04:07 PM
And to be clear, I wanted them vertically laid out as pictured but found I had to use the horizontal component of the cluster to accomplish that.