LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

set maximum panel size

Hi,

I would like to know how can I set the maximum panel size, in order that when I maximize it with a state property node set to 5 (maximized) when I open it, it don't pass the size I want for that panel.

How Can I do It? I can set the minimum panel size, in File->Vi properties->Window size but I can't set the maximum panel size?

Thanks,

ToNi.
0 Kudos
Message 1 of 15
(6,103 Views)
I think Maximize is only supposed to make your window fill the screen. As such, you can't set the size it will resize to.

___________________
Try to take over the world!
0 Kudos
Message 2 of 15
(6,102 Views)
My problem is the update of my front panel when I call a vi from another one, it is not repainted. I solve this problem opening it with a Open FP invoke node (I set active to true and maximized(5) to state) and then with a run invoke node but when the front panel opens.... it makes the size of my front panel bigger than the size I saved in edit mode for that panel.Why? For this reason I want to set the maximum size of the front panel... Can I do anything to solve this problem?

ToNi.
0 Kudos
Message 3 of 15
(6,093 Views)
Or.... another way..... is it possible to force Windows or LV to redraw again the front panel?
0 Kudos
Message 4 of 15
(6,089 Views)
If you tell a window to maximize, then that's what it will do. It's no different than clicking the maiximize button on any other window application. If you want to open it at the same size that you saved it at, then select Standard as the state. If you want to modify the size and make it bigger or larger than what you saved it as, you can do that with the front panel property Window Bounds.
0 Kudos
Message 5 of 15
(6,085 Views)
Hi,

From my vi, before I call another vi from it, I have a FP Open and FP. State property set to True and 4 (Minimized) respectively and then I use a Run Vi invoke node and finally, after it, I have another FP. State property set to 1 (Standard). My front panel  when opens has the same size as I saved it but LV not redraws it well. How Can I do to solve this kind of problem? I have this problem since a lot of time ago.

ToNi.
0 Kudos
Message 6 of 15
(6,081 Views)
Try restoring the VI only after you make it into a child and not before. Keep in mind that when you do make it a child, it will be limited by the window holding it.

___________________
Try to take over the world!
0 Kudos
Message 7 of 15
(6,061 Views)
Hi,

If I make what you say, LV redraws the subvi well but then the subvi is not a child of the main vi (parent) that opened him.

ToNi.
0 Kudos
Message 8 of 15
(6,060 Views)

It looks like it doesn't like becoming a child window when it's minimized. One solution I found was not to minimize it before making it a child.

Instead, after it's made into a child, you hide it and immediately unhide it. The only real problem with this is that you see the "childing" process, which doesn't look very good. You can trying playing around with it and see if you can come up with a better way.


___________________
Try to take over the world!
0 Kudos
Message 9 of 15
(6,053 Views)
Hi,

If I hide it and iimmediately unhide it after "childing" process, it goes better but sometimes LV not redraws very well the front panel (in some cases) but... if instead of hide and immediatelly unhide it I minimize and immediatelly set the state to standard (1) (see the sample I attach to you) then it works well, LV always redraws it well but the only problem is that the user see how the front panel minimized and then It returns to its standard state.... how can I do the user doesn't see when the front panel minimze and only he see when the front panel is in its standard state?

Thanks,

ToNi.
0 Kudos
Message 10 of 15
(6,052 Views)