LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

modal progress dialogs

how can I create a modal progress dialog control in LabWindows/CVI ?
0 Kudos
Message 1 of 6
(3,944 Views)
Sounds like you want to use CreateProgressDialog() and UpdateProgressDialog()
Message 2 of 6
(3,943 Views)
Just as a side note, these commands are located inside the Programmer's Toolbox ( <cvidir>\toolslib\toolbox\toolbox.fp) which you must include in your progect either as an instrument (Instrument menu) or inside the Library menu (Library >> Customize... and add the corresponding .fp to the list).


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 3 of 6
(3,937 Views)
Yes, I guess
I will have to use " InstallPopup() " for make a progress dialog modal.
Is this so?
0 Kudos
Message 4 of 6
(3,908 Views)

Sure, basically you need to:

  • Create a panel with a slider or something like this
  • InstallPopup the panel
  • Update the slider value during your process
  • Handle an "Abort" button if you want to
  • RemovePopup and discard the panel at the end

All this matter is already developed and solved in ProgressDialog functions in the Porgrammer's Toolbox: you may wanto to reinvent all that, but in my opinion it would be better to spend the same (or less Smiley Wink ) time studying how these functions work; it may be a way to learn-by-example on a problem that you need to solve: the better option, I think



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 5 of 6
(3,900 Views)

Thanks, I had to use InstallPopup() because, on my version of CVI proress dialogs are not

modal if I want to, I don't know why, but I solvet the problem with the help on InstallPopup()

over a progress dialog, so now it works.

0 Kudos
Message 6 of 6
(3,847 Views)