LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

My Labview Program is NOT Scaling Properly when changing resolutions. How to do it properly?

All my applications scale nicely. What scales is the controls and indicators (and the nr of panes), but not the font size.

 

Scaling font size will be very tricky...

Message 11 of 19
(782 Views)

wiebe@CARYA wrote:

All my applications scale nicely. What scales is the controls and indicators (and the nr of panes), but not the font size.

 

Scaling font size will be very tricky...


Yes, would be tricky, but should be included by default. On the browser window I am typing in, I can press Crtl+ and instantaneously change the font size and scale. Tricky, but doable, and something an end user expects.

0 Kudos
Message 12 of 19
(760 Views)

@mcduff wrote:

wiebe@CARYA wrote:

All my applications scale nicely. What scales is the controls and indicators (and the nr of panes), but not the font size.

 

Scaling font size will be very tricky...


Yes, would be tricky, but should be included by default. On the browser window I am typing in, I can press Crtl+ and instantaneously change the font size and scale. Tricky, but doable, and something an end user expects.


That's not the same problem.

 

Increasing\Decreasing the font wouldn't be to hard.

 

Scaling the font linear is much harder, as fonts don't scale linearly. So you'd have to scale in steps. That's what's tricky.

 

Of course some texts don't have properties to set the font, but they are quite rare.

0 Kudos
Message 13 of 19
(739 Views)

wiebe@CARYA wrote:

@mcduff wrote:

wiebe@CARYA wrote:

All my applications scale nicely. What scales is the controls and indicators (and the nr of panes), but not the font size.

 

Scaling font size will be very tricky...


Yes, would be tricky, but should be included by default. On the browser window I am typing in, I can press Crtl+ and instantaneously change the font size and scale. Tricky, but doable, and something an end user expects.


That's not the same problem.

 

Increasing\Decreasing the font wouldn't be to hard.

 

Scaling the font linear is much harder, as fonts don't scale linearly. So you'd have to scale in steps. That's what's tricky.

 

Of course some texts don't have properties to set the font, but they are quite rare.


True, but this is what modern users expect. I rather not have to explain to potential customers what LabVIEW can't do. All of us on this forum want LabVIEW to succeed, our careers depend on it. But that doesn't mean LabVIEW doesn't need to update their UI, make things better, etc.

0 Kudos
Message 14 of 19
(726 Views)

@mcduff wrote:

wiebe@CARYA wrote:

@mcduff wrote:

wiebe@CARYA wrote:

All my applications scale nicely. What scales is the controls and indicators (and the nr of panes), but not the font size.

 

Scaling font size will be very tricky...


Yes, would be tricky, but should be included by default. On the browser window I am typing in, I can press Crtl+ and instantaneously change the font size and scale. Tricky, but doable, and something an end user expects.


That's not the same problem.

 

Increasing\Decreasing the font wouldn't be to hard.

 

Scaling the font linear is much harder, as fonts don't scale linearly. So you'd have to scale in steps. That's what's tricky.

 

Of course some texts don't have properties to set the font, but they are quite rare.


True, but this is what modern users expect. I rather not have to explain to potential customers what LabVIEW can't do. All of us on this forum want LabVIEW to succeed, our careers depend on it. But that doesn't mean LabVIEW doesn't need to update their UI, make things better, etc.


I don't think the non-linear scaling of fonts is a LabVIEW limitation.

 

I do agree that thinks could be easier.

0 Kudos
Message 15 of 19
(723 Views)

It took 25+ years and a global herd of top programmers to get somewhat working responsive design into websites and browser capabilities. It is still not nearly perfect!!!

 

The LabVIEW front panel UI dates to 1986. (In recent years, LabVIEW NXG was supposed to solve some of these issues, but failed).

 

Implementing true responsive scaling is a very difficult problem. I would not want all my controls and indicators to rearrange as the window is arbitrarily resized vertically and horizontally. If the axes of my XY graph are designed to show a round circle, I don't want it to show an ellipse after the window is reshaped. Even window scrollbars are not great for LabVIEW panels (while the are the cause of, and solution to, all problems for web pages (see also)).

 

A simple global linear rescale could be implemented if LabVIEW would just render the front panel to a (resolution defined at design time) internal bitmap (independent of screen resolution) followed by a translation layer that uses e.g. the GPU to render it to the screen at any other resolution and parse mouse locations and user interactions back. Simple scaling algorithms are available, for example most web browser can zoom everything on a website pretty well (My forum website here is at 80%, for example). Still there are shortcomings (loss of resolution, pixelation, aliasing, etc.) that might show up. 

 

altenbach_0-1649869722144.png

 

 

0 Kudos
Message 16 of 19
(716 Views)

@altenbach wrote:

 

The LabVIEW front panel UI dates to 1986. (In recent years, LabVIEW NXG was supposed to solve some of these issues, but failed).


Maybe this is the reason why this forum is valid. 🙂  Not sure it would work with any other language.

0 Kudos
Message 17 of 19
(706 Views)

I was messing around a bit and that was all I came up with.

Doing that may be possible with proper programing, but just to scale a bit of text?

On the other side, there are giant projects just to slide in and out some controls ...

 

Greetings Timo

0 Kudos
Message 18 of 19
(687 Views)

@t.n14 wrote:

I was messing around a bit and that was all I came up with.

Doing that may be possible with proper programing, but just to scale a bit of text?

On the other side, there are giant projects just to slide in and out some controls ...


Sadly, you can't easily scale down, as the big text size limits the minimum size.

 

BTW. Is there any other (desktop) application that automatically scales fonts? I don't recall one.

0 Kudos
Message 19 of 19
(673 Views)