elektra Posted April 20, 2010 Report Share Posted April 20, 2010 I want to have the menu bar on the bottom of the chart, under it the toolbar, under it the annotation bar. The problem is : - when the toolbar, menubar are visible the menubar is under the toolbar, even though I change the dock-properties. - which are the right properties's settings to get the three bars always in the right order Menu/tool/annotationbar? if one the three bars invisible ist the order still the sam for the others for example: toolbar invisible => order Menu/annotation. - How can I customize the menubar? is it possible to do it as the toolbar? thank you Quote Link to comment Share on other sites More sharing options...
Frank Posted April 21, 2010 Report Share Posted April 21, 2010 They will be displayed in the order in which they are created. To ensure the order you want do this in the form-load (do not turn on the toolbar at design time): chart1.MenuBar.Visible = true;chart1.ToolBar.Visible = true; annotation.ToolBar.Visible = true; As for the ManuBar customization, the menubar is a toolbar too, it has the same API. Quote Link to comment Share on other sites More sharing options...
elektra Posted April 22, 2010 Author Report Share Posted April 22, 2010 Thank you very much, the Annotation-object must be created at runtime: chart1.MenuBar.Visible = true; chart1.ToolBar.Visible = true; ChartFX.WinForms.Annotation.Annotations annot = new ChartFX.WinForms.Annotation.Annotations(); annot.Chart = chart1; annot.ToolBar.Dock = DockArea.Top; annot.ToolBar.Visible = true; That works in form-constructor but not in eventhandler form-load. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.