LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI application looses focus due to other application

Hello there,

 

I have searched on this forum but not found the solution for my problem so here I post it.

 

I created a CVI application (using version labwindows/CVI 7.0.0) , the main panel is displayed through the DisplayPanel call.

 

Consider 3 running applications: the CVI application, windows file manager and MS Outlook. The CVI application has the focus and is in front of the other applications. When I select (f.i. using ALT-tab) Outlook the CVI application goes completely to the background, even the file manager window got in front of it.

 

I would expect that only the Outlook window would be in front of the CVI application and the file manager window would be behind the CVI window (order of usage). All other windows applications that I know are behaving like this.

 

The solution might (hopefully) be simple but I cannot find it. I have tried using  SetPanelAttribute(mainPanel, ATTR_FLOATING, ...) to all kind of possible settings but no result in this respect.

 

All help is appreciated! 😄 

0 Kudos
Message 1 of 3
(3,242 Views)

fruituser:

 

I can't duplicate your problem.  I tried with apps built in CVI 6.0 and 9.0.1.  I don't have 7.0.

 

I have Windows Explorer, Outlook, and my CVI app running.  I position the windows so I can always see the order of overlap.  I click on Outlook, and then my CVI app.  Then I press Alt-tab and switch to Outlook.  My CVI app is still on top of Windows Explorer.  I press Alt-tab again, and return to my CVI app.

 

I didn't see any panel option or attribute that would explain the behavior you describe.

 

Do you see the same behavior on another CVI app?  What about an NI example app?

0 Kudos
Message 2 of 3
(3,240 Views)

I see a similar behavior using CVI ver 7.1.0 (306).

 

It is annoying and I've learned to live with it.  Hopefully you'll find a solution that I can "borrow" 😉

0 Kudos
Message 3 of 3
(3,212 Views)