Quantcast
Channel: DotSpatial Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1128

Closed Unassigned: loadextensions is forced to load default menubars eventhough one may want to use its own menus created at design time [25532]

$
0
0
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

Viewing all articles
Browse latest Browse all 1128

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>