03-24-2014 09:06 AM
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?
03-25-2014 02:44 PM
Hello Baobob,
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.
03-25-2014 02:59 PM
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.
Thanks.
03-26-2014 12:14 PM
What version of LabVIEW are you using?
03-26-2014 12:19 PM - edited 03-26-2014 12:22 PM
Sorry, I forgot to specify the year in my first post: 2013 (SP1).
You are not able to reproduce the behavior in the GIF?
03-27-2014 03:25 PM
I was able to replicate but this looks like expected behavior.
03-27-2014 03:36 PM
@David-H wrote:
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.
Besides:
Thanks.
03-28-2014 06:00 PM
I see what you're saying. It doesn't seem to work pragmatically. Still looking into this.
04-02-2014 10:20 AM
Hello David, how is the investigation going?
04-02-2014 11:33 AM
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.