LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Silver XY Graph- Legend positioning when compiled

I have a compiled and isntalled utility that is deployed to around 15 computers so far. One user (and only one so far) is having a problem with the XY graph legend shifting down. It normally looks like this:

Normal.png

 

Her's looks like this (I did this myself since I don't have a screenshot).

Bizarre.png

 

This problem has persisted across multiple builds, and her install is the only one exhibiting this odd behavior. All other computers and development scales fine and looks good.

 

There is one piece of code that may pertain to this. I have a resize event on pane 3 (the XY graph pane), but I'm not sure this could cause this problem.

Resize code.png

 

Any ideas?

Josh
Software is never really finished, it's just an acceptable level of broken
0 Kudos
Message 1 of 7
(3,297 Views)
Screen size/scaling?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 7
(3,259 Views)

@mikeporter wrote:
Screen size/scaling?

Mike...

I'm not sure, unless it's something I'm not expecting.

 

It seems to resize on a lot of different computers. Compiled on my computer, it collapses to virtually nothing and expands to 1680x1050 (hmm, odd monitor). The num rows does an OK job of reducing the legend size along the way and the top stays anchored to the top.

 

*later*

 

OK, I think I have a clue into this behavior. When compiled on most machines, it behaves fine. However, I just recently included the font options in the installer ( this topic ). Tahoma 13 just as in the example... and... bam... the legend shifts down.

Reproduced.png

 

So somehow, the font affects the top positioning of the legend.

Josh
Software is never really finished, it's just an acceptable level of broken
0 Kudos
Message 3 of 7
(3,246 Views)
That makes sense. Are you using the auto resizing and repositioning option on the main GUI? That has never worked right.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 4 of 7
(3,242 Views)

@mikeporter wrote:
That makes sense. Are you using the auto resizing and repositioning option on the main GUI? That has never worked right.

Mike...

Which one are you talking about?

  • VI Properties: Window size:  Maintain proportions of window size for different monitor resolutions. Unchecked
    • The other one in that screen is disabled due to multiple panes.
  • The control itself is "Scale object with pane"
  • Most of the window appearance VI properties are default.

 

Josh
Software is never really finished, it's just an acceptable level of broken
0 Kudos
Message 5 of 7
(3,232 Views)
Scale objects with panel doesn't work well. If you need that functionality, do it yourself in response to the pane size change event.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 6 of 7
(3,227 Views)

So for future people:

 

I solved this by following setting the font of the targeted installation.

https://forums.ni.com/t5/LabVIEW/Font-size-appearance-problem-on-Windows-7-executable/td-p/1959179

 

Basically, make sure that the font you are coding in is the font that is being used when it gets deployed (in the text file).

Somehow this has an effect on the legend's position, not just the size.

Josh
Software is never really finished, it's just an acceptable level of broken
0 Kudos
Message 7 of 7
(3,193 Views)