Menu items Not Showing Up
I followed the "Getting Started" section on DOCs.
Attachment: SynFusMenuBar_471ae112.zip
But, none of my menu items show.
Neither do they show in your sample code.
Attached is my test project
Attachment: SynFusMenuBar_471ae112.zip
SIGN IN To post a reply.
5 Replies
TB
Thirupathi Bala Krishnan
Syncfusion Team
October 28, 2019 07:10 AM UTC
Hi Frank,
Thanks for contacting Syncfusion support.
We have analyzed the reported query – “Menu items does not displayed inside the bar”. We have checked the code snippet in the shared sample. Here you have missed the addition of bar items to the particular bar. Due to this, none of the bar items displayed in the bar.
Please refer the following code sample.
|
# Form1.Designer.VB
'
'Bar1
'
Me.Bar1.BarName = "maninMenu"
Me.Bar1.Caption = "maninMenu"
Me.Bar1.Manager = Me.MainFrameBarManager1
' Add ParentBarItem to Bar
Me.Bar1.Items.AddRange(New Syncfusion.Windows.Forms.Tools.XPMenus.BarItem() {ParentBarItem1, BarItem1})
'
'ParentBarItem1
'
Me.ParentBarItem1.BarName = "ParentBarItem1"
Me.ParentBarItem1.CategoryIndex = 0
Me.ParentBarItem1.ID = "mnuFile"
Me.ParentBarItem1.MetroColor = System.Drawing.Color.FromArgb(CType(CType(67, Byte), Integer), CType(CType(201, Byte), Integer), CType(CType(232, Byte), Integer))
Me.ParentBarItem1.ShowToolTipInPopUp = False
Me.ParentBarItem1.SizeToFit = True
Me.ParentBarItem1.Text = "mnuFile"
Me.ParentBarItem1.WrapLength = 20
' Add BarItem to ParentBarItem
Me.ParentBarItem1.Items.AddRange(New Syncfusion.Windows.Forms.Tools.XPMenus.BarItem() {BarItem1})
|
Please refer the following screenshot for your reference.
Please let us know if you need any further assistance.
Regards,
Thirupathi B.
Thirupathi B.
FR
Frank
October 28, 2019 10:50 AM UTC
Thanks,
You are showing me code added in the auto-generated code.
I followed the docs exactly.
What step in the GUI designer did you do to get it to show.
My returned example you edited looks the same.
What is different?
TB
Thirupathi Bala Krishnan
Syncfusion Team
October 29, 2019 02:05 PM UTC
Hi Frank,
Thanks for the update.
Thanks for the update.
We have checked your reported query – “How to add the bar items to the Bar via designer”. You can achieve this requirement by Drag and drop the Bar items into the MainFrameBarManager control. After performing the drag and drop operation, the following code snippets are added automatically in designer file.
|
Me.Bar1.Items.AddRange(New Syncfusion.Windows.Forms.Tools.XPMenus.BarItem() {ParentBarItem1, BarItem1})
Me.ParentBarItem1.Items.AddRange(New Syncfusion.Windows.Forms.Tools.XPMenus.BarItem() {BarItem1}) |
Please refer the following screenshot for your reference.
Please refer the attached videos from the following location:
If the above solution does not meet your actual requirement, could you please share the detailed description about your requirement so that it could be helpful to provide the solution at the earliest.
Regards,
Thirupathi B.
Regards,
Thirupathi B.
FR
Frank
October 29, 2019 03:03 PM UTC
Okay... Got it.
But that part IS NOT on this page....
You may want to add that part
TB
Thirupathi Bala Krishnan
Syncfusion Team
October 31, 2019 08:39 AM UTC
Hi Frank,
Thanks for the update.
We have logged the documentation task for the reported scenario – “Need to update the content for adding menu items via designer page” and the updated contents will be refreshed in our website by mid-December, 2019.
Thanks for the update.
We have logged the documentation task for the reported scenario – “Need to update the content for adding menu items via designer page” and the updated contents will be refreshed in our website by mid-December, 2019.
Please let us know if you need any further assistance.
Regards,
Thirupathi B.
Regards,
Thirupathi B.
SIGN IN To post a reply.
- 5 Replies
- 2 Participants
-
FR Frank
- Oct 25, 2019 03:20 PM UTC
- Oct 31, 2019 08:39 AM UTC