LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Tips for remembering panel position and size?

I am expecting this is a setting somewhere in the panel editor, but I couldn't find it in the help file.

The program I have been working on created a resizable child panel. If I open it on my second monitor (which I run vertical) and make it very tall, then close it, it will then open too large (off the screen) if I move the main program to the primary (smaller, horizontal) monitor.

I just created a simple routine that uses the parent and child panel handles to check sizes and adjust the child panel sizes downwards if they are larger than the parent panel.

But ever allowing a panel to display larger than the window (off the screen) seems like something the UI should take care of itself.

Is there some simple setting for this?

I noticed that there was a set attribute command to center the position of a window, and there also seem to be UI editor check boxes to do this automatically, so I am expecting maybe I just missed something similar for this.

Thanks.

0 Kudos
Message 1 of 3
(2,192 Views)

Hello,

 

Here are some references that describe how to go about programmatically setting the size of a front panel:

Programmatically Move the Front Panel to a Desired Position Using LabVIEW
Programmatically Set Front Panel Size and Position - Example

Niki Budgell | Product Planner - SW Management | NI
0 Kudos
Message 2 of 3
(2,128 Views)

Are there similar tips for using LabWindows?

0 Kudos
Message 3 of 3
(2,111 Views)