LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scripting: find slide orientation programmatically

Solved!
Go to solution

@alexderjuengere wrote:

to add my 2 cents, we could calculate the eigenvalues of the centered bounding box coordinates of the slide control, because:

 

- The larger eigenvalue indicates the direction of the longer side. If the larger eigenvalue indicates the variance in the y-direction, then the rectangle is vertically oriented.

- If the larger eigenvalue indicates the variance in the x-direction, then the rectangle is horizontally oriented.

- This is a simplification that assumes the eigenvalues correctly reflect the variance along the principal axes, which is the case for a rectangle with known opposite corners and orthogonal sides

 

 

 

 

slide-orientation.png


Is your real name Rube Goldberg?

Message 11 of 13
(468 Views)

@paul_a_cardinale wrote:


Is your real name Rube Goldberg?


😄

0 Kudos
Message 12 of 13
(464 Views)

Thank you!

Property BasicObjectFlags works.

 

At the beginning I tried to get the same information from property Style ID but search for right Style ID (if there is one) takes a hell of time.

_____________________________________
www.azinterface.net - Interface-based multiple inheritance for LabVIEW OOP
0 Kudos
Message 13 of 13
(419 Views)