LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

.dll for TextBox without focus in windows

Hi guys, Somebody knows or use a class (.dll) in windows that just put a textbox on screen with text an timer but dont have focus. So teststand sequences keep running.

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

JoVMo:

 

Thanks for this fun question!

 

I have attached a sample project which includes a DLL that displays a message in a timed popup.  The popup has options for timeout and position, title and message, and whether or not it is floating, is modal, has focus, or allows user to close.

 

It includes two projects, the DLL project, and an EXE project which calls the DLL.

 

See the Readme.txt file for more details on running the sample project and on including the DLL in your own projects.

 

You said that you want a window that doesn't get focus so teststand keeps running.  The question isn't really whether or not the popup has focus, but whether or not teststand waits for it.  In the sample DLL, the function that displays the popup returns as soon as the popup is displayed, so teststand will continue.  Other operations for the popup (timeout, user close, reclaiming focus) happen as callbacks in the DLL, so the calling routine isn't waiting for them to happen.

 

Two tricks to making this work are to use DisplayPanel, not InstallPopup, and to use a timer and a callback to do the timeout, not a loop in the same function that displays the panel.

 

To save space here, I didn't include the DLL or EXE: you'll have to build those yourself.  Build instructions are in the ReadMe.txt file.

 

I tested this in CVI 6.0.0 and 9.0.1.

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

Tnx AI S, thats the method I been looking for.

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