LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array of booleans used as front panel control doesn't size right when installed as stand alone application.

Solved!
Go to solution

I'm trying to use an array of booleans as a control in my front panel to represent selectable regions. Problem is that when I install the application as a standalone program the boolean sizes are not maintained and the regions are out of alignment. How do I keep the aspect ratio?

 

Development = Right = right.png

 

Stand alone installation = wrong =wrong.png

 

I have tried using every combination of "VI Properties", "Window Size", "Maintain proportions of window .......", "Scale all objects on front panel as ......" check boxes and there is no change in results.

I have tried to find a way to set the size of the booleans pragmatically but can't seem to find a way to get to that level of the control with property nodes.

To set them originally I selected an individual element of the array and used the "Properties" "Appearance tab" "Size height width".

 

The VI was developed with LV2010 service pack 1, Windows XP 32bit.

The application was installed on Windows 7 64bit, No LV software other then the runtime engine.

The application will have to go out to a number of machines of every kind and all different monitor combos and sizes.

 

Any ideas how to hard-line the desired results?????

 

Thanks....

0 Kudos
Message 1 of 6
(3,149 Views)

Could you post full size images?  I can't see anything.

0 Kudos
Message 2 of 6
(3,146 Views)

right.png Development = Right.

 

wrong.png As stand alone application = wrong.

 

Note the overlap in the middle and that each black button is square and extending beyond the boundaries vs. the Right image that fit as three separate arrays. Lining up whit the background image.

0 Kudos
Message 3 of 6
(3,139 Views)
Solution
Accepted by NS_USGS

These still aren't full size, but I can see a little better.  Are the two images running at the same resolution, or is the program running at a different resolution?

 

I don't see any text in the booleans.  Is that correct?  One big difference you are going to see between Win7 and XP is the fonts.  The defalt fonts are different.  They should be bigger on Win7.

 

If the resolutions are different, and you're depending on NI's built-in resizing, you'll need to do it yourself probably.  I have never been happy with it.

Message 4 of 6
(3,129 Views)

Well played. Within the properties of one of the elements of the array (boolean properties) Even though "Show Boolean text" wasn't selected by default the "Off Text" case has OK by default. I removed the OK so there was no text associated with the buttons of the array and the Application version looks great...

 

Explains a number of other issues I was having. Didn't have a full understanding of what "System, Application, & Dialog fonts" actually meant. Expected different behaviors.

 

You mention doing the resizing yourself. Programmaticly? Do you have some examples or past forum info. I have a feeling similar problems are going to keep coming up along these lines.

 

Thanks for the help, would have probably never gone down that road.....

0 Kudos
Message 5 of 6
(3,106 Views)

You could start with looking at this thread.

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