05-20-2014 02:16 AM
Hello folk,
I am needing help with GUI. I have a waveform graph having 32 plots. I need this graph to be compressed with its plots name upon resizing the window. I have already checked box against scale all objects on front panel from VI properties.
Main issue is my graph is getting resized properlly but plot names beside it does not. For reference I have attached a VI with this post.
Your help will be truly appreciated.
06-04-2014 10:56 AM
jatinpatel1489,
In this specific VI, the problem lies in the fact that if you were to scale this legend down, it would become unreadable. You could programmatically check the graph size, font size etc and either resize or remove icons in order to make it smaller or bigger based on how big the graph is. There is not way that I can find to resize the legend with the plot automatically.
06-04-2014 11:14 AM
Legend:Autosize property must be set to False to play with the Legend:Size.Width property.
Now if what you really want is to control the total height when the panel resizes... (And my magic 8-Ball says "Sure, That's exactly what the OP wants!")
Set Legend:scrollbar visible =TRUE (This will allow the user to see any plot in the legend regardless of resizing)
Add an event case for "Panel Resize"
In the panel resize event case; read the new panel height, do a bit of math and set Legend:Number of Rows to the floor of panel height divided by height of one plot name in the legend