Page 1 of 1

How to hide main menu in Designer Control

Posted: Mon Mar 26, 2007 6:35 am
by Markus Weiß
Hi,

how do i disable the main menu in the Designer Control. I tried to hide it like i did with the normal designer using the following code. But with the Designer Control - the main menu isn't displayed (how it should be) but the place of the main menu is blocked for the toolbars and therefore waist of space.

StiMainMenuService mainMenu = StiConfig.Services.GetService(typeof(StiMainMenuService)) as
StiMainMenuService;

#region Main Menu
if (mainMenu != null)
{
mainMenu.ServiceEnabled = true;
mainMenu.ShowFile = false;
mainMenu.ShowEdit = false;
mainMenu.ShowView = false;
mainMenu.ShowTools= false;
mainMenu.ShowHelp = false;
mainMenu.ShowSelectLanguage = false;
}

Thanks

Markus

How to hide main menu in Designer Control

Posted: Mon Mar 26, 2007 3:33 pm
by Vital
Fixed. Fix will be included in next build.

Thank you.