LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Dimensionar aplicación automáticamente

Solved!
Go to solution

Hola, 

 

Me gustaría saber si hay alguna función o alguna forma a través de la que se redimensionen el panel y todos sus objetos dependiendo de la resolución de pantalla que se tenga. Llegando a conseguir que se ocupe la totalidad de la pantalla sin quedar ningún elemento oculto.

 

Un saludo,

 

Prg_Coruna.

 

Hi,

 

I would like to know if there is some function or forms someone across that the panel and all his objects are re-measured depending on the resolution of screen that is had. Managing to achieve that the totality of the screen deals without any secret element stays.

 

Thanks,

 

Prg_Coruna.

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

You have several options avaialble to handle your case.

The simplest of all is to enable resizing of the panels: edit panel attributes and open Other attributes... dialog, there you can set Resolution adjustment = 100%, which means the panel will be resized if shown on a screen with a different resolution than the one it was developed on. I personally don't like this way since it simply scales all objects the same way with poor effects in some cases (e.g. if only one dimension is growing, like when you display a square panel on a wide screen).

 

Another alternative, which implies some programming, is to use splitters: with splitters you can decide object per object if moving or resizing it. I like this option because I can widen the objects that gain visibility in this process (e.g. graphs) moving the other objects accordingly to leave room for the formers. See this example published by nickb.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 6
(3,559 Views)

The solution hes useful but I have a problem, in the application I use some coordinate and the problem comes because it does not support the position of these elements,
do you know if there is some solution?

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

I don't understand what you mean: can you post an example?



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 4 of 6
(3,542 Views)

In my application I have a selection of language, as you observe in the photo. And according to the selected language the gray rectangle is placed in a site (for coordinates). When I increased the size this rectangle is messed up. 

0 Kudos
Message 5 of 6
(3,534 Views)
Solution
Accepted by topic author Prg_Coruna

In a case like this PositionCtrlRelativeToCtrl () function can be of help.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 6 of 6
(3,515 Views)