Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
While playing around in the background files of Creo... I found a resource file for "ribbon_designer_main".
I've never actually seen a "ribbon designer" natively inside of Creo.. so I decided to try to open the resource file.
I coded up something along the lines of the following:
// test code
void test_gui_close(char *dialog, char *component, ProAppData app_data) {
ProUIDialogExit(dialog_label, 0);
}
ProError test_gui() {
ProCharName resource = "ribbon_designer_main";
err = ProUIDialogCreate(resource, resource);
err = ProUIDialogCloseActionSet(resource, test_gui_close, NULL);
err = ProUIPushbuttonActivateActionSet(resource, "Cancel", test_gui_close, NULL);
err = ProUIDialogDestroynotifyActionSet(resource, test_gui_close, NULL);
err = ProUIDialogActivate(resource, &status);
err = ProUIDialogDestroy(resource);
return err;
}
That opened up a GUI...
Has anyone else seen this GUI before? Is this actually a completed object hidden inside of Creo somewhere? Opening the resource file by itself obviously only just loads the "text"... but I figure if someone went through the trouble of actually creating the ".res" file... there must be some code or an application somewhere to leverage it.
Thanks,
James
Thats a separate GUI. The "Dialog Editor" is something that PTC has provided in Creo 3 to help create ".res" files easily and quickly without having to go manually code up the files. The "ribbon designer" is completely different. It looks like a much more robust and much more capable version of going to the "customize ribbon" inside of Creo....
EDIT: But yes, they do mention it at the bottom of the post
There's also the "Creo UI Editor", but that seems to be a different animal specific to Toolkit.
https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS180313
http://support.ptc.com/WCMS/files/162724/en/creo3F000_ui_editor_C_user.pdf
http://support.ptc.com/WCMS/files/162725/en/creo3F000_ui_editor_java_user.pdf
https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS180353
Hello James,
can you please tell where to call the method test_gui() to open the ribbon designer?
Best regards
Michael