Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Support for Multi-Monitor Systems in LabWindows/CVI

Primary Software: LabWindows/CVI Development Systems>>Base Package
Primary Software Version: 8.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I have more than one monitor installed on my system. How can I programmatically open panels, popup panels, and messages on a specific monitor using LabWindows/CVI?

Solution:
It is possible to open panels, popup panels, and messages on a specific monitor using SetSystemAttribute. Please note that a panel will display on the default monitor that is selected when LoadPanel is called for that panel. For instance, to open a panel on monitor one, use the following code:

SetSystemAttribute (ATTR_DEFAULT_MONITOR, 1);
panelHandle = LoadPanel (0, "multimonitor.uir", PANEL)
DisplayPanel (panelHandle);


Refer to the example program in the related links section for further details on how to determine which monitors are installed on your system and how to use popup panels and messages on these monitors.

Related Links:
Developer Zone Example: Support for Multi-Monitor Systems


Attachments:





Report Date: 03/30/2007
Last Updated: 04/02/2007
Document ID: 47TB2UZL

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit