LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Timed popup messages in CVI?

I'm trying to copy a large directory structure from CDROM to C:\ as part of an application installation.  Because the file copying takes a long time I wanted to display informative popup messages to the user so he wouldn't think the installation had died.  I figured to break up the copying into smaller sets of files with messages between the copying telling the user what was being copied.    I really would like to get some kind of message box that I can put up when I start copying one of these groups of files and then replace it with a different message box when the next set of files is being copied.  The standard MessagePopup() function requires the user to click on "Ok" to make the box disappear so it won't do what I was wanting to do.  Has anyone done some kind of popup messages that can be controlled in some manner?  Even a timed popup message would do for my application.  I could show a message for five seconds or so at the start of each copying operation.  Thanks a bunch in advance for any help.
 
 (I did find some example files of this kind of popup message box in the forums but they were all LabView example files which did not help me because I need this to work in LabWindows/CVI)
 
-- Don
0 Kudos
Message 1 of 6
(4,219 Views)

I just use a simple text message control, with appropriate fonts/colours to make it stand out. Then change the text contents/visibility as the program progresses. You could always put it on a small panel of its own, if you wanted it to be really prominent.

JR

0 Kudos
Message 2 of 6
(4,217 Views)

JR hit the nail on the head to do what you were asking.

You can also use a progress bar  via CreateProgressDialog  and UpdateProgressDialog.

You could also make your own progress bars using some of the numeric controls if you want your own style.

The guage, dial, slide, tank, thermometer, et cetera could each be used.

0 Kudos
Message 3 of 6
(4,214 Views)

As scomak pointed out, the ProgressDialog routines sound like they are close to what you are looking for.  If they do not fit your application, you can find the source code for them in \toolslib\toolbox\toolbox.c.  They would make a good template to modify to fit your own needs.

Good Luck.

0 Kudos
Message 4 of 6
(4,205 Views)


@scomack wrote:

You can also use a progress bar  via CreateProgressDialog  and UpdateProgressDialog.

You could also make your own progress bars using some of the numeric controls if you want your own style.

The guage, dial, slide, tank, thermometer, et cetera could each be used.



I vote for this as well..  I typically use progress bars.  Plus, there are multiple ways of defining / measuring the progress. 

Pop ups can be tricky...  Imagine if the message says: "Please Wait", and something happens and the PC hangs...  The wait could be quite long...  😉

 

0 Kudos
Message 5 of 6
(4,162 Views)

Thanks for all the suggestions everyone.  I think the progress bar would suit me best in this application.  I'll try it first and then look at text panels when I get some time.  Thanks again for all your help.

-- Don

0 Kudos
Message 6 of 6
(4,157 Views)