LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to resize waveform chart horizontal scrollbar?

Hi,

I'm trying to resize the waveform chart by selecting the "Scale object with pane" option but it is not allowing the horizontal scrollbar of the waveform chart to resize. (Here i want to enlarge the horizontal scrollbar when the waveformchart size increases and similarly reduce the size of scrollbar when the waveform chart size is reduced).

 

Would anybody please suggest a solution.

 

Thank you.

Regards,

Siva

0 Kudos
Message 1 of 3
(2,783 Views)

I just tried this, as I had assumed that the scrollbar would scale with the chart it is attached to but I quickly found out that it doesn't and there aren't any properties exposed that allow you to modify the scrollbar in any way.

It's a bit of a hack/workaround, but you could use a separate scrollbar control (instead of using the attached one) and then manually update the scroll position from that when the user attempts to scroll (using some maths & property nodes).

 

There is an example here: https://decibel.ni.com/content/docs/DOC-14142

 

(But I would probably use an event structure, rather than a while loop so it only updates when the user scrolls)

 

Edit: Here's another that uses the event structure: http://forums.ni.com/t5/LabVIEW/Vertical-scrollbar-for-graph/td-p/2500012


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 2 of 3
(2,766 Views)

Thanks Sam for your reply.

Yes, there is no property node to change the size of the horizontal scrollbar, so i think as you suggested i have to use a seperate scrollbar control.

 

Regards,

Siva

0 Kudos
Message 3 of 3
(2,717 Views)