Hello fellow LabVIEW folks,
I want to be able to use a property node to change a graph or chart's legend's scrollbar's visibility. And after that I would like to invoke the Fit Control to Pane method so the graph nicely adjusts its size.
But for some reason, the calling the method does not have any effect. And after having changed the scrollbar visibility through the property node, I can't even fit the control by right-clicking on it and select fit to pane from the contextual menu. I'd need to hide and show again the scrollbar from the right-click menu.
Running Windows 7 64bit, LabVIEW 32bit SP1
The following gif explains the problem:
Looks like a bug to me, but I'm maybe doing something wrong. What do you think?
I replicated this on my computer and both the invoke and property node function correctly. The difference in my VI vs. your GIF demonstration is that I placed them in a while loop and ran the program. I was able to toggle the Bool constant to see the scroll bar on then off based on it being True or False.
Hi David, thank you for your answer,
Here's what I get when I put the code in a while loop:
I have no problem showing and hiding the scrollbar. My issue is that after I show the scrollbar, the legend's width increases (you can see that the lefthand part of the legend goes outside the limit of the pane). So I invoke the fit to pane method in order to resize the graph control. But invoking the method does not work for me.
Sorry, I forgot to specify the year in my first post: 2013 (SP1).
You are not able to reproduce the behavior in the GIF?
I was able to replicate but this looks like expected behavior.
this looks like expected behavior.
Mh? Can you elaborate?
When a control is larger than the pane (which is the case when I show the legend's scrollbar), I expect that the fit control to pane method resizes the control so it fits the pane.
I see what you're saying. It doesn't seem to work pragmatically. Still looking into this.
Hello David, how is the investigation going?
I'll be able to look at it either late this afternoon or tomorrow. I'm able to replicate on my computer and at first glance seems like a bug.