Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Hello,
I have to do some updates on instances of a big family table (ca. 1500 items).
In a synchrone application I create a ProUIDialog for special settings for the job,
and then I start the job clicking on an ProUIPushbutton.
Now, while the for-loop ist working, the dialog is not active and i can't press any body to abort?
What do I have to do to get these functionality to my application?
Any ideas?
Thanks for help!
Greetings Lars
Hello,
thanks for the answers!
Have you tried that already?
That's what I've done, but it does not work.
I can't click the cancel button.
We are working on Wildfire 3.0.
Here an example:
The progressbardlg.res is in the Pro/ENGINEER text folder.
err = ProUIDialogCreate(DlgName, "progressbardlg");
err = ProUIPushbuttonActivateActionSet(DlgName, "ProgressBarStopButton", DlgCloseFunction, NULL);
err = ProUIDialogCloseActionSet(DlgName, DlgCloseFunction, NULL);
err = ProUIProgressbarMinintegerSet(DlgName, "ProgressBarDlgMeter", 0);
err = ProUIProgressbarMaxintegerSet(DlgName, "ProgressBarDlgMeter", 10);
err = ProUIDialogAboveactivewindowSet(DlgName, PRO_B_TRUE);
err = ProUIDialogDialogstyleSet(DlgName, PROUIDIALOGSTYLE_WORKING);
err = ProUIDialogActivate(DlgName, NULL);
for (int i = 0; i <= 10; i++)
{
err = ProUIProgressbarIntegerSet(DlgName, "ProgressBarDlgMeter", i);
Sleep(200);
}
void DlgCloseFunction(char *Dialog, char *Control, ProAppData Daten)
{
ProUIDialogDestroy(Dialog);
}
Greetings, Lars
Hello,
I think that's what I did! Isn't it?
But while the loop ist running it is not possible to click the stop button!
Thanks!
Lars
Perfect!
Thank you very much!
Now it works fine!
Greetings Lars