LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting programmatically PanelBounds when title bar is invisible?

We have a VI that, when run, brings up all the LabVIEW windows intended to run on a specific machine according to information specified in an INI file.
The VI attempts to position the window by setting the PanelBounds property.  When the TitleBar, ToolBar and MenuBar are visible, the placement of the window isn't perfect, but is acceptable. However, when any of the Bars are set to be invisible, the top of the window is moved down the window equal to the value of the height of each of the Bars that has been set to invisible. I've tried to circumvent the problem, by decrementing the "top" value of the Panel Bounds by the value of the height of each invisible bar to no avail. What can I do next?
 
 
0 Kudos
Message 1 of 2
(2,474 Views)
I'm not sure exactly what problem you are experiencing, but it sounds like you are having difficulty aligning windows when some of them don't display a toolbar or menu bar. Is that correct? If not, can you take some screenshots (no BMPs, please) that show your problem?

You might try using the Front Panel Window >> Window Bounds property instead of the Panel Bounds. Panel Bounds only refers to the area encompassing the front panel itself, not any of its toolbars. Window Bounds extends to the whole window. Does this solve your problem or point you in the right direction at least?
Jarrod S.
National Instruments
0 Kudos
Message 2 of 2
(2,463 Views)