Forum  General Visual ...  How do I...?  Main menu position
Previous Previous
 
Next Next
New Post 7/1/2010 4:45 AM
  msawczyn
190 posts
5th Level Poster


Main menu position 

I have a form with a banner image (picturebox) docked to the top, and would like to have the main menu immediately below the banner. No matter what order I use, the menu bar docks to the top of the form, rather than showing normal docking behavior.

To help clarify, normally if I have two items that dock top, the first one added will dock to the top of the form, the next one will dock to the bottom of the first one. But if I add the picturebox first, then the menu, the picturebox correctly docks to the top of the form, but the menu does as well, and is therefore hidden by the picturebox.

A bug?

Thanks.

-- Michael

 

 
New Post 7/5/2010 4:51 PM
  palli
14415 posts
1st Level Poster




Re: Main menu position 

Hi Michael,

Nope, not a bug. If you examine how MainMenu is added to a form, it is not done the same way as for example a Panel, by calling Form.Controls.Add, rather it is added to the form by assigning it to the Form.Menu property.

This is exactly the same behaviour as you have for a MainMenu in WinForms.

If you need this behaviour, then you might be able to use ContextMenu controls and then use ContextMenu.Show to show dynamic context menus. The MainMenu items, could then be constructed with Label controls on a FlowLayoutPanel, and then respond to a Click event by dynamically showing the correct ContextMenu.

You might also be able to use ToolBar control for the same purpose.

Hope this helps,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 7/6/2010 8:50 AM
  msawczyn
190 posts
5th Level Poster


Re: Main menu position 

The issue appears to be that, in WinForms, I've got a MenuStrip that I can position where I'd like it to display, but there's no corresponding MenuStrip control in VWG. Using Forms, I can change the Z-order of the controls, including the MenuStrip, so that multiple controls that dock to the same edge do so in the order which I require.

I agree it's not a bug, but more of a "not yet" for VWG. If it could be put on the list of things to do when it comes time to polish, I'd be most thankful.

-- Michael

 
New Post 7/7/2010 8:03 AM
  ori.cohen
4401 posts
1st Level Poster




Re: Main menu position 

Hello Michael,

I am sure you will be able to enjoy the Visual WebGui MenuStrip control once it is created in v7.0.
Sorry we don't have it yet...

Regards,

Ori Cohen
Support Manager, the Visual WebGui team

 
New Post 6/8/2012 2:41 AM
  Soft-Designs
39 posts
No Ranking


Re: Main menu position 

Hi - In the VWG version 6.4 - is the main menu position still fixed / locked?  We also may need to have a menu that works just like the main menu bar, but that we can position anywhere on the page.  If we want to have a menu that we can position anywhere on a application form - in VWG 6.4 - what is the recommended way to do this, and which control to use?

 

 

 
Previous Previous
 
Next Next
  Forum  General Visual ...  How do I...?  Main menu position
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS