LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Opening Panels on a Second Monitor

How can I open a panel on a second or third monitor. Currently I am using three monitors and the only way I can make it work is to strecth the GUI editor accross all three monitors and position the panel. Is there a better way?
0 Kudos
Message 1 of 5
(4,119 Views)
Have you tried calling SetPanelPos() with the Panel Left big enough to move it off the first screen?
You need to be careful forcing a panel to open on another monitor. If the app is ever run on a system without three monitors, you should have a button or menu option on the main panel to open all panels on the current monitor.
0 Kudos
Message 2 of 5
(4,117 Views)
CVI 5.5 and higher has support for multiple monitors. Check out the example ..\cvi\samples\userint\multimonitor.cws to see how to use the API.

Hope this helps
Bilal Durrani
NI
0 Kudos
Message 3 of 5
(4,103 Views)
Thanks. The example you cited only allows you to open pop up panels in a second or third monitor. Specifically I have to firewire cameras that I want to have displayed in each of the two additional monitors while I continue to run the software from the first monitor. Is there anyway to center the panels on the second monitor short of specifiying the location of a corner by pixels.
0 Kudos
Message 4 of 5
(4,054 Views)
It's not difficult to do. You need to get the height, width and position of the additional monitors using the GetMonitorAttribute() function. You can then use the SetPanelPos() function to position the panels where you want them on the other monitors.
Martin Fredrickson
Test Engineer

Northrop Grumman
Advanced Systems and Products
San Diego, CA 92128
0 Kudos
Message 5 of 5
(4,039 Views)