LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph Palette shifts unproportionally when window is resized

Hello,

 

The title perfectly describes my problem.

VI Properties -> Window Size-> Maintain... ENABLED

VI Properties -> Window Size-> Scale all... ENABLED

For the resize option to work, all front panel object are UNLOCKED

 

Every time I resize the window everything other than the graph palette are reized somewhat proprtionally but the grpah palette just shifts to a wrong position. (Saved for LV16.0)

Screenshot 2023-07-28 172026.png

Screenshot 2023-07-28 171807.png

  

 

Cheers,

Diural

0 Kudos
Message 1 of 13
(1,353 Views)

Align it with one of the edges and it will be OK.

 

(I strongly recommend not do enable scaling ever. It never works right, especially for fonts. In rare cases you can enable it if the pane has exactly one scaling item and no extra decorations)

0 Kudos
Message 2 of 13
(1,349 Views)

Graphs are incredibly annoying to use in a resizeable window (which is... basically all GUI's, lol).

 

Shameless plug for my Idea Exchange entry to help with that:

https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Decouple-plot-legend-tools-etc-from-the-plot-graphic-...

0 Kudos
Message 3 of 13
(1,337 Views)

@BertMcMahan wrote:

Graphs are incredibly annoying to use in a resizeable window (which is... basically all GUI's, lol).

 


It can be done pretty well if we do resizing, but not scaling. For example one of my display windows of this program has three panes:

A: does not resize

B: only resizes vertically

C: resizes in both directions

 

Note that all extra decorations (legend etc.)  in pane C are hidden. I also set a reasonable minimum size for the window.

 

altenbach_0-1690557133375.png

 

0 Kudos
Message 4 of 13
(1,331 Views)

Perhaps did you mean the tool palettes are hidden in pane C? I see a legend in there.

 

My issue is that probably 90% of my graphs need the zoom tools available to the end user, and 80% of them have plot names defined at runtime. The graph palette with zoom tools isn't a huge deal to get it to stay put (you gotta stick it at a corner) but the legend tends to scoot around all over the place when you resize the window, change plot names, resize it again, etc. Of course I can't seem to reproduce this at the moment 🙄; that's the kind of thing only an end user can find during the demo 😂

 

I'd really like the legend to be more easy to handle. I have one program in particular with at least 5 different plots (one with up to ~30 plots, and four on one screen in quadrants). Getting the legends where I want them so they don't take up a ton of extra space is a pain in the butt. It's certainly not impossible but it's annoying.

 

Horizontal legends also don't work quite right; apparently, the width of the plot names field is constant among all elements:

BertMcMahan_0-1690558031072.png

The entry named "Short" has a checkbox immediately to its left, but its line style control box thing is way over to the right. A quick glance makes it seem like "Short" is the red line, not the green line.

 

*yes I know 30 plots is way too many... the program is a visualizer for a data stream decoder, so the end user needs to be able to pick and choose which of the streams to compare. They don't use all 30 at once. They also need zoom tools to be able to inspect individual packet-level synchronization. I'm certain a better dev could find a better way to handle it 😁

0 Kudos
Message 5 of 13
(1,320 Views)

@BertMcMahan wrote:

Perhaps did you mean the tool palettes are hidden in pane C? I see a legend in there.


Actually, that's a size=3 array of clusters (colorbox, checkbox, string), to substitute for a graph legend. (The program predates the "visibility checkbox" of the legend by many years!) 😄

 

0 Kudos
Message 6 of 13
(1,314 Views)

@altenbach wrote:

@BertMcMahan wrote:

Perhaps did you mean the tool palettes are hidden in pane C? I see a legend in there.


Actually, that's a size=3 array of clusters (colorbox, checkbox, string), to substitute for a graph legend. (The program predates the "visibility checkbox" of the legend by many years!) 😄

 


Ah, clever! I didn't even notice that was a colorbox, not a line.

 

One of these days I'm going to make a custom control (as mentioned in the idea exchange entry) that just handles all of that stuff. Just gotta wait until I get frustrated enough, lol.

0 Kudos
Message 7 of 13
(1,308 Views)

@BertMcMahan wrote:

The entry named "Short" has a checkbox immediately to its left, but its line style control box thing is way over to the right. A quick glance makes it seem like "Short" is the red line, not the green line.

😁


If I have a horizontal legend, I typically right-align the legend font (But the visibility checkbox is unfortunately still far... 😞 , but I typically don't show it)

 

altenbach_0-1690559190647.png

 

Message 8 of 13
(1,306 Views)

giphy

 

I cannot believe I never thought to try right-aligning the text.

 

0 Kudos
Message 9 of 13
(1,303 Views)

I think the visibility checkbox needs to go to the right of the style box and the font needs to be right-aligned by default. Now it works well in both directions Maybe I write an idea.... (Might break a lot of legacy code, though...)

 

altenbach_0-1690560563265.png

 

0 Kudos
Message 10 of 13
(1,292 Views)