This example allows the user to specify the position of each border of the front panel. The panelbounds property adjusts the actual pane borders, not including the window borders, scroll bars, tool bars, title bar, etc., so ensure that there is sufficient clearance on all sides if you wish to see anything outside the actual front panel pane. Position values are in pixels and are in terms of absolute screen position (i.e. 0 is the top or left most pixel on your monitor).
The VI will position the borders of the front panel to the specified positions.
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
This example allows the user to specify the position of each border of the front panel. The panelbounds property adjusts the actual pane borders, not including the window borders, scroll bars, tool bars, title bar, etc., so ensure that there is sufficient clearance on all sides if you wish to see anything outside the actual front panel pane. Position values are in pixels and are in terms of absolute screen position (i.e. 0 is the top or left most pixel on your monitor).
The VI will position the borders of the front panel to the specified positions.
Is there any property to change the hight and width of the window in run-time? All I can see is that I need to give all four co-ordinates (top, left, right, bottom) in order to achieve this. I wouldn't like to give the top and left, but only the area height and width to change the window size. Is it possible?
Ajayvignesh_MV wrote:
Is there any property to change the hight and width of the window in run-time?
It looks like you will have to do something like this