Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
I have a question about the method uifcCreateDialog used to create Custom UI dialog.
In the documentation PTC Creo Editor, they write that to create an UI instance you have to use the following code:
uifcCreateDialog (“MyDialogInstance”,“my_dialog_resource_file”);
My question is what are the input. From the API documentation I see that they are both xrstring. But what do they represent, is my_dialog_resource_file the path of the resource file? Is MyDialogInstance the name of a variable. Or are they just arbitrary names? Also Do you guys have a sample code making use of the User Interface Foundation Classes?
Solved! Go to Solution.
Hi : )
So you have two inputs:
uifcCreateDialog is the OTK representation of ProUIDialogCreate.
Example: ProUIDialogCreate("DialogInstanceName", "RessourceFileName");
Variables
- First the diealog instance name is the name of the dialog inside your code world. It can only exists once at a time. So you can't create more than one dialog with the same instance name at the time and that's how you find your Dialog if you need it.
- ressource Filename - shows to a resource file inside the "text/usascii/resource" or if you have the translation turned on "text/resource/" directory
To show the Dialog you need to activate it.
Don't forget to add some Closing actions. Otherwise it's been opened until creo shutdown : )
Br,
Eike
Hi : )
So you have two inputs:
uifcCreateDialog is the OTK representation of ProUIDialogCreate.
Example: ProUIDialogCreate("DialogInstanceName", "RessourceFileName");
Variables
- First the diealog instance name is the name of the dialog inside your code world. It can only exists once at a time. So you can't create more than one dialog with the same instance name at the time and that's how you find your Dialog if you need it.
- ressource Filename - shows to a resource file inside the "text/usascii/resource" or if you have the translation turned on "text/resource/" directory
To show the Dialog you need to activate it.
Don't forget to add some Closing actions. Otherwise it's been opened until creo shutdown : )
Br,
Eike