How To create a Progress Bar
Good day to all!
I'm working on a plugin, which execution time can be quite a long.
So I'd like to add progress bar into my plugin, so users can understand that everything's ok, plugin is working and no need to panic yet 
In Object Toolkit UG I found section: 7. User Interface Foundation Classes for Dialogs
There I found uifcProgressBar class
So I opened Creo UI editor and it's UG, created simple Dialog with only Progress Bar in it. Saved .res file, put it into my plugins directory, added necessary code in the project.
Dialog appears, that's cool!
After that I get pointer to my Progress Bar object.
Now I'm stuck. Progress bar all the time shows 50% completeness. I can't figure out how to launch it in an infinite loop and how to stop it afterwards.
It would be awesome if someone can help me with advise to go through this.
My code:
xint status = uifcCreateDialog("Dialog1", "Dialog1");
if (status == 0)
{
uifcDialog_ptr dialog1 = uifcDialogFind("Dialog1", "Dialog1");
uifcProgressBar_ptr pbar = uifcProgressBarFind("Dialog1", "ProgressBar1");
if (pbar)
{
pbar->SetUnbounded(xfalse);
}
Dialog1DialogListener *dialog1Lis = new Dialog1DialogListener();
dialog1->AddActionListener(dialog1Lis);
status = uifcActivateDialog("Dialog1");
Mostly I took it from cxx file generated by Creo UI editor and added some rows related to uifcProgressBar_ptr later.
Thank you in advance,
Artem
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

