Page 1 of 1

Suppress certain context menu of designer

Posted: Fri Dec 18, 2009 8:35 am
by munich
Hello,

in the ribbon designer I would like to suppress the context menu in the area, where you change between the different pages of a report, the preview, the code pane and so on. How can this be done?

Thanks for any help.

Regards
munich

Suppress certain context menu of designer

Posted: Fri Dec 18, 2009 4:35 pm
by Jan
Hello Munich,

You can use following code:

Code: Select all

Stimulsoft.Report.Design.StiMainMenuService menuService = Stimulsoft.Report.Design.StiMainMenuService.GetService();
menuService.ShowFilePageNew = false;
menuService.ShowFileFormNew = false;
menuService.ShowFilePageSetup = false;
menuService.ShowFilePageDelete = false;
Thank you.

Suppress certain context menu of designer

Posted: Mon Dec 21, 2009 3:03 am
by munich
Hello Jan,

there must be a misunderstanding. Your code removes some items in the office menu opened by the application button of ribbon designer. I would like to suppress a context menu. A context menu is opened using the right mouse button.

The context menu I would like to suppress is the one opened right clicking the tabs of ribbon designer allowing to change between the page pane(s), preview pane, code pane and so on.

Regards
munich

Suppress certain context menu of designer

Posted: Mon Dec 21, 2009 7:34 am
by munich
Hello Jan,

I still have the items "Duplicate", "Move Left" and "Move Right" in the menu. How can I remove them too?

Yours
munich

Suppress certain context menu of designer

Posted: Mon Dec 21, 2009 12:43 pm
by Edward
Hi Munich,

Unfortunately that is not possible at the moment, but we have added that into our to-do list and let you know when the feature is available.

Thank you.

Suppress certain context menu of designer

Posted: Thu Dec 24, 2009 5:13 am
by Edward
Hi Munich,

The following properties will be available in the next prerelease build:

StiOptions.Designer.TabsContextMenu.ShowPageNew;
StiOptions.Designer.TabsContextMenu.ShowFormNew;
StiOptions.Designer.TabsContextMenu.ShowPageSetup;
StiOptions.Designer.TabsContextMenu.ShowPageDelete;

StiOptions.Designer.TabsContextMenu.ShowPageClone;
StiOptions.Designer.TabsContextMenu.ShowPageMoveLeft;
StiOptions.Designer.TabsContextMenu.ShowPageMoveRight;
StiOptions.Designer.TabsContextMenu.ShowPageSetup;

Merry Christmas and a happy New Year!

Suppress certain context menu of designer

Posted: Fri Jan 08, 2010 6:12 am
by munich
Dear Edward,

a happy new year too.

The StiOptions.Designer.TabsContextMenu.XXX properties work fine. But one issue is left:
When I hide all menu items a empty context menu with a small height remains. Is or will there be a possibility to hide this too?

Please excuse my persistence. I am looking forward to your answer.

Regards
munich

Suppress certain context menu of designer

Posted: Fri Jan 08, 2010 1:09 pm
by Jan
Hello,

Problem fixed. Patch will be available in build from 11 Jan.

Thank you.

Suppress certain context menu of designer

Posted: Wed Jan 13, 2010 2:31 am
by munich
Dear Jan,

perfect! Now the complete context menu disappears when disabling all menu items.

I thank you very much for your help.

Yours
munich