LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Caption Positions

Hello,

 

I am having hard times with the allignment of caption strings set to "size to text" on the front panel on different systems.

On my development machine I do the allignment of the captions so everything looks fine (see SS2.png). On another machine with different screen settings the allignment does not fit anymore. The left caption position changed (see SS1.png).

Is there a way to lock the left upper corner of the caption to the position, where I placed it in the edit time?

 

When not using size to text, the allignment stays as set in edit time.

 

Thanks in advance.

 

 

 

Download All
0 Kudos
Message 1 of 5
(2,992 Views)

All you probably need to do is set a defined font. Don't select the generic font, which will depend on the OS settings of the target machine.

 

Some easy reading:

 

Things are definitely not ideal. If you want change, vote e.g. for this idea😄

 

0 Kudos
Message 2 of 5
(2,979 Views)

Thanks for the info.I think my problem results from not having anchors for frontpanel objects.

I will also vote for your idea.

I think there is improvement needed on this. It's hard to understand that there are still those caveats after 20+ years of LabVIEW on the market..Smiley Indifferent

 

Greetings

0 Kudos
Message 3 of 5
(2,945 Views)

 

  • I don't know what you mean by "anchors". Can you elaborate?
  • While it is a good idea, it is not my idea. Still, thanks for voting. 😉
One problem is the fact that LabVIEW is multi-platform, and often a certain windows font is not even available on Mac or linux. Even on the same platform, the programmer might pick a font that is not available on the target machine. So what do you do when porting code? Yes, things need to improve, we need a true WTPSIWTUG ("what the programmers sees is what the user gets" solution), but that is not easy. Should all used fonts be included with each VI?

 

0 Kudos
Message 4 of 5
(2,938 Views)

The problem I had is, that the caption is not somehow tagged (in the way I need it) to the front panel in the size to text mode. I use the caption to also change languages on the front panel. Now when a new text is set to the caption, the left position changes, so that I don't have a left side allignment anymore. If I could anchor the left side of the caption in the front panel, the caption would stick to the left allignment and size to the text only to the right side. Anchoring can for example be used in C# or VB when creating user interfaces.

But it seems to work when size to text is switched of and a fixed size of the caption is used.

 

 

 

 

0 Kudos
Message 5 of 5
(2,931 Views)