LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GUI Problem

Hi! I have the following problem and I would like your advice to overcome it.

I am developing a GUI to control an instrument. The program will run on a touch panel PC which has 12" monitor with 800x600 resolution.

I am developing the program in my laptop which has a 15,4" monitor with 1280x800 resolution.

When I started to develop the GUI, in the vi properties I had set the window size to be 800x600 so as to be equal with the resolution of the 12 " pc that will be used.

I thought that I would not have any problem but I was wrong. When I setup the program ( i have create an installed version) the gui does not appear as in my computer. There is a part of the GUI that does not appear at all since the controllers is out of the screen in the 12" pc.

I don't want want to use a solution like maintain proportions because it is altering my customized controllers.

So my question is:

What size do I have to use for the vi when i am developing it in my computer (15,4" 1280x800) so as when I transfer to the 12" pc (800x600) to look exactly the same? 

It is really important to me. 

Thanks in advance.

 

Achille 

0 Kudos
Message 1 of 4
(2,691 Views)

If you want the window to fill the screen and you want the content of the window to fill the window, there is no way of doing this without some dynamic control, because the size of the display in the full window depends on things like the whether the title bar is displayed (and how large it is), whether the menus are displayed, whether the OS has a taskbar and how large that is, etc.

 

You can work around this by having the window small enough or by not having the content fill the window. In XP, the default size of both the task bar and the window title bar is around 30 pixels each (so if you make the height of the display ~790x~540 you should be alright), but that can change.

 

If you do want the stuff in your window to change without being resized, you can create panes and have the panes themselves resize without the controls resizing. I don't remember the details, so I can't help you with the specifics.


___________________
Try to take over the world!
0 Kudos
Message 2 of 4
(2,677 Views)

I don't quite understand the problem.

You say that "There is a part of the GUI that does not appear at all since the controllers is out of the screen in the 12" pc".

 

I face this problem all the time, but don't have the difficulty.

 

The first time, I set my dev sys resolution to 1024x768 (my target resolution, 800x600 in your case) and set the window to fit.

Then set the MINIMUM WINDOW SIZE to the CURRENT SIZE (VI properties - window size).

Now set your dev sys resolution back to the way you want it. 

 

Don't use any scale panel to fit or such options.

 

If the screen size gets messed up, I just drag it to the minimum, and it's OK.

 

When you deploy to the target, the resolution is still the way you want it.

 

If that doesn't work, then please explain your problem again... 

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 3 of 4
(2,656 Views)

Hi,

 

Just one more thing to add. When doing something with touch panels, the way you see your FP when developing might differ from what you see after you have deployed your VI to touch panel. Best practice to my knowledge is to check often enough how the GUI looks on the touch panel itself. Usually when touch panel GUI looks bad on your computer, it looks good on touch panel 🙂

 

These are my just experiences and they are limited to 5,6" TPC-2106T.

 

- Matti

0 Kudos
Message 4 of 4
(2,611 Views)