LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmtically Scaling the front panel objects depending on the Dispaly card resolution.

I have programmed my application in dispaly resolution of 1024 by 768. I want to deploy the same code on a machine having a resolution of 800 by 600. how do i scale down my front panel objects to 800 by 600 resolution .

I want to do it programmatically.
Suresh Thangappan
0 Kudos
Message 1 of 6
(3,334 Views)
There is an even easier way which will save you lots of unnecessary coding. Go to file select VI properties/ window size then select maintain proportions of window for different monitor resolutions



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 6
(3,329 Views)
I tried to do it in a lower version LabVIEW, 6.1/6.0? I found that the position of front panel objects were changed when I resize the window. Does it fix in LabVIEW 7.1?

Bill
0 Kudos
Message 3 of 6
(3,326 Views)


@Bill Choy wrote:
I tried to do it in a lower version LabVIEW, 6.1/6.0? I found that the position of front panel objects were changed when I resize the window. Does it fix in LabVIEW 7.1?

Bill





I have not noticed this behavior in 7.0. I have heard talk of it being in 6.0/6.1 like you said. If you download the trial version of 7.1 I'm sure you could see if it does what you are seeing



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 4 of 6
(3,321 Views)
i need to do it programatically because my Application needs to be deployrd in different resolution machines ie is in With 1024by 765 resolution and 800by 600 resolution.

So doing programmaticaly is better option.
Suresh Thangappan
0 Kudos
Message 5 of 6
(3,325 Views)

To get best control, you will need to do it programmatically. Using the property nodes, all controls can be moved and resized. Resizing is problematic, however, because there is no single method that works for all controls. The top level Bounds property is read-only. It should be used to make sure whatever you did to change the size resulted in the size you expected. You will need to search the control–specific properties for the one which resizes your control of interest. For example, the Plot Area.Size property changes the size of a Waveform Graph.


You can link one control to the size of the panel and have it scale automatically. Do this by selecting the object, then selecting Edit>>Scale Object with Panel. I typically use this for the main object on my panel. The rest of the objects are then moved around the rescaled object, but not rescaled. You will have to rescale them yourself, and move them again if you do not like the position. You will probably want/need to change font sizes on numerics.


What you are trying to do is possible, but it is also tedious. Good luck! Let us know if you still have problems.

0 Kudos
Message 6 of 6
(3,295 Views)