Dear all,
I updated my project with dotspatial dlls of the last available version (74527).
In my project I alread designed the form, menù and toolbar.
Since I need Gdal to be loaded I need to load extensions, but in this case I found out that the new dlls forces my application to show some default menus above mine.
To stop this behaviour I went to DefaulRequiredImports and had to comment out some code lines on HeaderControls.cs
```
if (App.HeaderControl == null &&
headerControls.Count == 1 && headerControls[0].GetType() == GetType())
{
_isActivated = true;
//var container = new ToolStripPanel {Dock = DockStyle.Top};
//Shell.Controls.Add(container);
//var menuStrip = new MenuStrip { Name = DEFAULT_GROUP_NAME, Dock = DockStyle.Top };
//Shell.Controls.Add(menuStrip);
//Initialize(container, menuStrip);
// Add default buttons
//new DefaultMenuBars(App).Initialize(this);
}
```
I know this is not very elegant, so I would suggest to let the user choose to load or not default header, dock and status controls (separately, since some may want to load status and not header or viceversa).
What do you think?
Thank you
Oscar
Comments: Not an issue
I updated my project with dotspatial dlls of the last available version (74527).
In my project I alread designed the form, menù and toolbar.
Since I need Gdal to be loaded I need to load extensions, but in this case I found out that the new dlls forces my application to show some default menus above mine.
To stop this behaviour I went to DefaulRequiredImports and had to comment out some code lines on HeaderControls.cs
```
if (App.HeaderControl == null &&
headerControls.Count == 1 && headerControls[0].GetType() == GetType())
{
_isActivated = true;
//var container = new ToolStripPanel {Dock = DockStyle.Top};
//Shell.Controls.Add(container);
//var menuStrip = new MenuStrip { Name = DEFAULT_GROUP_NAME, Dock = DockStyle.Top };
//Shell.Controls.Add(menuStrip);
//Initialize(container, menuStrip);
// Add default buttons
//new DefaultMenuBars(App).Initialize(this);
}
```
I know this is not very elegant, so I would suggest to let the user choose to load or not default header, dock and status controls (separately, since some may want to load status and not header or viceversa).
What do you think?
Thank you
Oscar
Comments: Not an issue