LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Panels & Multiple Displays

I would like to load a couple different panels upon application launch, and send them to different monitors attached to my target computer.  I see functions to determine how many monitors are attached, and what they are numbered.  But I don't see any function calles or attributes that can direct a panel to the second monitor.

 

Is there a way?  Has anyone done this?

0 Kudos
Message 1 of 4
(3,293 Views)

You don't explicitly direct a panel to a particular monitor. Instead, what you do is position a panel at a given coordinate position. That coordinate position will determine which monitor, or monitors, will display the panel.

 

If you have your monitor ID, you have to first call GetMonitorAttribute to obtain the top/left/width/height of that monitor. That way you'll know which coordinate position to assign to your panel, so that it's displayed in this monitor.

 

Luis

0 Kudos
Message 2 of 4
(3,289 Views)

After a little more digging, I was beginning to suspect what you describe.  You have given me the formula, which I will try as soon as I can hook up the second monitor here.

 

Thanks... gary

0 Kudos
Message 3 of 4
(3,285 Views)

Hello all,

sorry to barge in on this thread, but I have problems with the NI forums:

 

- the nntp server is no longer accessible (natinst.public.labwindows-svi.general, usually my prefered method)

 

- the [New message] button on the board doesn't work: it opens a page with [Step 1: ask your question], [Step 2...], [Step 3...] and a search box and that's about it. Tested both in FF and Chrome on Linux.

 

So, since I couldn't find a way to start a new thread, my just going off topic on this one.

 

I also had a legitimate CVI question, but that'll wait.

0 Kudos
Message 4 of 4
(3,257 Views)