LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Frontpanel size, dimension and behaviour...

Hi,

I have some problems with the frontpanel of my application:

I created a kind of main menu with a bar on the lower side and another on the left of the screen. The lower bar should always be visible, the above (including left bar) should be covered by a frontpanel of a by-reference-called VI.

The problems I have:
-I can't configure the vi so that it's using the entire screen AND showing the exact section of the frontdiagramm. I always move the frontpanel a bit, press RUN, look, stop, move again...but that is not convenient.
-Then I'd like to put another VI's frontpanel (chosen by main menu VI)on top of this main menu VI. Again the frontpanel has to be positioned exactly.
I found some threads about win API call
s, but they were quite old. I'm using LV7e.
So please tell me about how you're arranging your application's windows in an exact manner.
If you need a more detailed explanantion please let me know...

Thanks and best regards,

Andreas
0 Kudos
Message 1 of 3
(2,893 Views)
This can be done fairly easily using property nodes.

Property nodes set to read the VI properties can give you front panel size and position, and you can also set them to whatever you want.

So you just need to get a VI reference (Functions Palette>Application Control>Open VI Reference) to the VIs you want position, then use property nodes (Functions Palette>Application Control>Property Node) to read and set the size or position as needed.

Open the Example Finder and navigate to "Programmatically Controlling VIs>Controlling Front Panel Objects and double click VI Server - Changing Another VI's Properties.vi. This will open an example VI that shows the basics of how to use property nodes to move things around.

Just be sure to close all the refer
ences you open.

Ed


Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Message 2 of 3
(2,893 Views)
Ed did a good job of answering the first part of your question. This link includes a quick demo that may help finding the right property nodes.

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=137&HOID=506500000005000000143E0100&HTHREAD=000081428&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0


If you are using LV 7 then the embeded front panels are probably going to help with the second part of your Q.

Sorry, I haven't got LV 7 yet, so I can't explain how to use them.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 3
(2,893 Views)