LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Horizontal / Vertical flipped for Create from Data Type scripting?

horizontal layout.png

 

Am I missing something here or is there a bug in this scripting method?

~ The wizard formerly known as DerrickB ~
Gradatim Ferociter
0 Kudos
Message 1 of 4
(195 Views)

Hi,

 

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.

0 Kudos
Message 2 of 4
(182 Views)

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.


___________________
Try to take over the world!
0 Kudos
Message 3 of 4
(128 Views)

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.

~ The wizard formerly known as DerrickB ~
Gradatim Ferociter
0 Kudos
Message 4 of 4
(106 Views)