LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Does anyone know if it is possible to add a verticle scrollbar to a cluster control?

Now THAT would be useful.

Here is my strategy as a workaround:

(1) Guess the maximum width your cluster will ever be, and make it that wide.

(2) Save the cluster as a "Strict Typedef" Custom Control.

(3) On front panels where you use this cluster, reserve an "infinitely tall" vertical strip on your front panel each time the cluster is used.

(4) As you add items to the cluster, only add them in the vertical direction, so they grow inside the vertical strips mentioned in the last step.

(5) To "scroll" the cluster, simply scroll the front panel.

Hope that helps.

0 Kudos
Message 2 of 11
(3,818 Views)
Thanks for the suggestion. But in my particular situation, Cluster is not the only control on the front panel and scrolling the whole front panel will not help.
0 Kudos
Message 3 of 11
(3,807 Views)

hi there

i got two suggestions:

"Read only"    : show the picture of the cluster inside a picture control with scroll bars
"Read Write":

 

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 4 of 11
(3,792 Views)

hi there

i got two suggestions:

"Read only"    : show the picture of the cluster inside a picture control with scroll bars
"Read Write" :

 

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 5 of 11
(3,792 Views)

hi there

i got two suggestions:

"Read only"    : show the picture of the cluster inside a picture control with scroll bars
"Read Write"  :

 

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 6 of 11
(3,792 Views)

hi there

i got two suggestions:

"Read only"    : show the picture of the cluster inside a picture control with scroll bars
"Read Write"  :

 

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 7 of 11
(3,792 Views)
THIS SUCKS!
 
 
 
"Read only" : use a picture control with scrollbars showing the image of the cluster
"ReadWrite": use a subpanel with scrollbars showing a sub-VI with the cluster on its frontpanel
 
for both suggestions see attachment
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
Message 8 of 11
(3,790 Views)

Chris,

Thank you so much for your suggestion.

Using the subpanel worked out for me. I tried it earlier but I was doing somethig wrong I guess.

Now, Is there a way to limit how much of the VI front panel inside the subpanel is scrolled? Because when we move the scrollbars to eiter extreme, the subpanel showsmore of blank front panel of the subVI around the cluster.

Thanks again!

0 Kudos
Message 9 of 11
(3,777 Views)

hi there

- you are not allowed to open a front panel which is shown in a SubPanel (that's propably the reason for the problems you mentioned)
- a SubPanel shows the whole PANEL, so you have to adjust the panel size to the size of the cluster (you can place the cluster in the upper left corner and adjust the panel size to the cluster size at runtime using some VI/control properties)
- another option is the "Scale Panel" option of the SubPanel (right click->"Scale Panel"). then the front panel will be scaled to fit into the SubPanel (proportions get lost!)

 

 

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 10 of 11
(3,771 Views)