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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

How to access the "ribbon designer"?

sully7
13-Aquamarine

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
4 REPLIES 4
TomU
23-Emerald IV
(To:sully7)

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

sully7
13-Aquamarine
(To:TomU)

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
MichelH
12-Amethyst
(To:sully7)

Hello James,

can you please tell where to call the method test_gui() to open the ribbon designer?

 

Best regards

Michael

Top Tags