09-16-2016 04:45 AM
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
09-16-2016 05:15 AM - edited 09-16-2016 05:17 AM
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
09-19-2016 06:03 AM
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