We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to allow customization in MainMenuBar ?

Thread ID:

Created:

Updated:

Platform:

Replies:

25359 Feb 24,2005 09:33 PM UTC Feb 25,2005 04:44 PM UTC Windows Forms 5
loading
Tags: Tools
Martin Bonneville
Asked On February 24, 2005 09:33 PM UTC

Hi, I attached my code for adding a test MainMenuBar. (C++.Net) The toolbar load correctly. At runtime, I can add items on mainbar but not in sub menu (like under file). How I can allow this customization ? Best regards, Martin

Martin Bonneville
Replied On February 24, 2005 09:41 PM UTC

I can''t add my file (1k size) ... a message appear saying "File size need to be < 2048k" ! Then, here''s my code : Bar* bar = new Bar(mainFrameBarManager, S"MainMenu"); bar->BarStyle = (BarStyle)(BarStyle::IsMainMenu | BarStyle::AllowQuickCustomizing | BarStyle::DrawDragBorder | BarStyle::RotateWhenVertical | BarStyle::Visible); mainFrameBarManager->Bars->Add(bar); ParentBarItem* parentBarItem = new ParentBarItem(); parentBarItem->Customizable = true; parentBarItem->CategoryIndex = 0; parentBarItem->ID = S"&File"; parentBarItem->Text = S"&File"; parentBarItem->Items->Add(m_Items->Item[0]); parentBarItem->Items->Add(m_Items->Item[1]); parentBarItem->SeparatorIndices->Add(__box(1)); bar->Items->Add(parentBarItem); Regards, Martin

Administrator [Syncfusion]
Replied On February 24, 2005 10:06 PM UTC

Hi Martin, XPMenus should allow you to add BarItems to a ParentBarItem by default. If you drag the BarItem you want to add over the ParentBarItem, it''s menu should open. You can then drop the BarItem into it. This works almost exactly the same way as in the designer. Please let me know if you have any further questions. Regards, Gregory Austin Syncfusion Inc.

Martin Bonneville
Replied On February 25, 2005 01:42 PM UTC

Hi Gregory, If I drag the BarItem I want to add over the ParentBarItem, it''s menu open. But I can''t then drop the BarItem into it. Regards, Martin

Administrator [Syncfusion]
Replied On February 25, 2005 03:42 PM UTC

Hi Martin, Have you tried dragging the BarItem over the open menu and then dropping it? If not, I''d recommend trying it. Otherwise, could you send me a sample that demonstrates this problem so that I could investigate it? Thank you for your cooperation. Regards, Gregory Austin Syncfusion Inc.

Martin Bonneville
Replied On February 25, 2005 04:44 PM UTC

Hi, I found my error, I need to add the ParentBarItem in MainFrameBarManager items. Not on ly in Bar items. Thank Regards, Martin

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;