LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI Window as Always On Top

Is there a way to force a CVI window to always be on top?

Thanks in advance,
Mark
0 Kudos
Message 1 of 6
(4,254 Views)
If you want a modal dialog box (a panel on top of all other CVI panels), use InstallPopup(panelHandle) instead of DisplayPanel(panelHandle). Other Windows apps may be displayed on top of all your CVI panels.
If you want the CVI app to always be on top of other Windows apps but still allow access to other Windows apps, set your main panels Floating Style to Always. In the UI editor, double-click on a blank spot on your main panel, click on Other Attributes, then select Always under the Floating Style.
If you want to deny any access to other Windows apps while your CVI app is active, you need to use Windows API calls to create the window as a system modal dialog. You'll have to create the entire user interface through API calls. It sounds like a headache to me.
0 Kudos
Message 2 of 6
(4,254 Views)
is it also possible to have the CVI application always on top if I have only one CVI panel? The access to other windows apps should be possible. I tried it this way but it doesn't work this way.
0 Kudos
Message 3 of 6
(4,254 Views)
Look to the samples/apps/lockout/lockout project which demonstrate some of
the point.
You may also have a look to :
http://perso.wanadoo.fr/philippe.baucour/pratiquer/ctrldyna/ctrldyna.html
and take a look at the source code around line 59-66
Do not forget end user will be able to bypass the limitation with CTRL + ESC

A more definitve solution would be to look at your windows configuration and
see if there is not a way to run only, at boot time, your application
instead of the Explorer and other "classical" windows applications.

Regards, Philippe
Feel free to visit : http://perso.wanadoo.fr/philippe.baucour



"klausi" a écrit dans le message de
news:506500000005000000C9050100-1042324653000@exchange.ni.com...
> is it also possible to ha
ve the CVI application always on top if I
> have only one CVI panel? The access to other windows apps should be
> possible. I tried it this way but it doesn't work this way.
0 Kudos
Message 4 of 6
(4,254 Views)
Thanks for the info. I want to run a application (like a calculator) which is always on top of another windows apps which needs to have full screen size. From time to time the user should have access to the "calculator" without resize of the main application.It seems that this is not so easy to realize with CVI ?
0 Kudos
Message 5 of 6
(4,254 Views)
again, it seem that the behaviour of win2000 and win95 is different. The solution with the "floating" panel works in W95/98 but not in WIN2000.
Do anybody know a solution for WIN2000
0 Kudos
Message 6 of 6
(4,254 Views)