Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to have scroll bar on waveformGraph?

I am using Measurement studio 7.1 and C#. I would like to know how I can achieve the same behavior of scroll bar. Here is the problem:

In our application I may have many waveforms (100) stacked in top of each other that they are not really recognizable as waveform when I want to show them all in one screen. So I would like to have a minimum size for each waveform and then have only 8 to 10 of them in one screen and then to see the rest of them by scrolling down the waveformGraph.

I have included a snap shot of the waveform viewer that our UI deginer comes up with.
0 Kudos
Message 1 of 7
(5,444 Views)
There is no way to directly add scroll bars to the graph. I do believe I have a work around for this though. Put the graph in a child form and set that child forms AutoScroll property to true. Then you would just need to set the form properties so it couldn't be moved within the parent form.

Let me know if this is unclear or an unacceptable solution. Have a great day!

Allan S.
National Instruments
0 Kudos
Message 2 of 7
(5,442 Views)
What do you mean by child form? Child form could be a panel. Am I right? I believe panel does autoScroll property. I assume when you said setting properties that it couldn't be moved within the parents means docked to fill. Have you actually tried this? I did try it but I didn't see the scroll bar until I actually added VScroll to the form. Then the scroll bar is there but moving the scroll bar doesn't move the graph. It seems it should work but I don't know what I am missing. Can you provide some sample code? I would appreciate it.
0 Kudos
Message 3 of 7
(5,443 Views)
I have attached an example that shows what I was trying to describe. I have created an MDI parent form and a child form. On the childform I have turned off the control box, min. button, max. button, and changed the border style to none. This fixes it inside the parent form. Next I turned the autoscroll property to true and since I have a graph on it that is larger then the form the scroll bars appear.

If there is anything more you need help on inreguards to this example or if is insuffient please let me know. Have a great day!

Allan S.
National Instruments
0 Kudos
Message 4 of 7
(5,422 Views)
Try this example as well.

I basically created a user control with a graph and a vertical scrollbar. I use the vertical scrollbar to change the range of the y axis of the graph. I created this example with MStudio 7.1

Hope this helps
Bilal Durrani
NI
0 Kudos
Message 5 of 7
(5,411 Views)
hmm, attachment didn't come thru. Let me try again
Bilal Durrani
NI
0 Kudos
Message 6 of 7
(5,409 Views)
Thanks. I think I follow your example. I need to dock in left in case to resize (Maximize).

NJK
0 Kudos
Message 7 of 7
(5,382 Views)