Suppress certain context menu of designer

Stimulsoft Reports.NET discussion
Post Reply
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

Suppress certain context menu of designer

Post 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
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Suppress certain context menu of designer

Post 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.
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

Suppress certain context menu of designer

Post 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
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

Suppress certain context menu of designer

Post 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
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Suppress certain context menu of designer

Post 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.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Suppress certain context menu of designer

Post 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!
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

Suppress certain context menu of designer

Post 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
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Suppress certain context menu of designer

Post by Jan »

Hello,

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

Thank you.
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

Suppress certain context menu of designer

Post 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
Post Reply