LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Progressbar usage

Hi, actually I´m working in a project that includes a microsoft progressbar activex. Is the first time that I´m use an activex in a LabWindows project. I need help about set the value of progressbar. I try this with SetCtrlAttribute function but this don´t work. Please If any have information about using this activex with LabWindows help me. Thanks.
0 Kudos
Message 1 of 3
(4,431 Views)
I cannot help you with the activex control, but have you considered using the CVI progress dialogue instead of the activex one? Create-, Update- and DiscardProgressDialogue functions can be found in the Programmer's toolbox that comes with CVI: it's located in <cvi>\toolslib\toolbox directory; the instrument is named toolbox.fp


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?
0 Kudos
Message 2 of 3
(4,413 Views)

Hello,

you should use the special instrument functions to control this progress bar.

Right-click the Progress Bar in your uir file and select "Generate ActiveX Control Driver" from the popup menu. After you completed the wizard, the "Microsoft Windows Common Controls" Instrument is available in the Instrument Menu. You can see a lot of folders in this instrument. IProgressBar is one of them. You should use the function "MSComctlLib_IProgressBarSetValue"  to set the value of the progress bar.

If you have any more questions, please ask.

Success,

Wim

PS: to be honest, I would go for Roberto's suggestion Smiley Wink

0 Kudos
Message 3 of 3
(4,383 Views)