cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to access the "ribbon designer"?

Highlighted
Amethyst

How to access the "ribbon designer"?

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...

ribbon.png

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

President & Founder
CadActive Technologies - www.cadactive.com
3 REPLIES 3

Re: How to access the "ribbon designer"?

There's a mention in this discussion: RE: Creo 2.0 Toolkit-Dialog Editor

Re: How to access the "ribbon designer"?

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

President & Founder
CadActive Technologies - www.cadactive.com