This is a migrated thread and some comments may be shown as answers.

RibbonBar Mdi Window List

2 Answers 91 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 02 Jun 2008, 08:39 PM
Hi

I want to show the current windows in my mdi form on a button dropdown. I can get it to work with a basic menu i.e But need to have this add to the Ribbonbar - anyone help

Thanks

'Setup MDI stuff

Me.IsMdiContainer = True

'Add File Menu

Dim miFile As MenuItem = MainMenu.MenuItems.Add("&File")

miFile.MergeOrder = 0

miFile.MergeType = MenuMerge.MergeItems

Dim miAddDoc As MenuItem = New MenuItem("&Add Document", New EventHandler(AddressOf Me.FileAdd_Clicked), Shortcut.CtrlA)

miAddDoc.MergeOrder = 100

Dim miExit As MenuItem = New MenuItem("E&xit", New EventHandler(AddressOf Me.FileExit_Clicked), Shortcut.CtrlX)

miExit.MergeOrder = 110

miFile.MenuItems.Add(miAddDoc)

miFile.MenuItems.Add(

"-") ' Gives us a seperator

miFile.MenuItems.Add(miExit)

'Add Window Menu

Dim miWindow As MenuItem = MainMenu.MenuItems.Add("&Window")

miWindow.MergeOrder = 10

miWindow.MenuItems.Add(

"&Cascade", New EventHandler(AddressOf Me.WindowCascade_Clicked))

miWindow.MenuItems.Add(

"Tile &Horizontal", New EventHandler(AddressOf Me.WindowTileH_Clicked))

miWindow.MenuItems.Add(

"Tile &Vertical", New EventHandler(AddressOf Me.WindowTileV_Clicked))

miWindow.MdiList =

True 'Adds the MDI Window List to the bottom of the menu

2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 03 Jun 2008, 07:44 AM
Hello Tim,

Thank you for your interest in RadRibbonBar.

Could you specify in which path of the RibbonBar you want to add these menu items? In case you want to add menu items in Ribbon's StartMenu, you can access the StartMenu using the code below:

Me.RadRibbonBar1.StartMenuItems


Be aware that the RibbonBar is not designed (regarding the MS UI Guidelines) to support MDI applications and includes only the Min, Restore and Close buttons for the child forms. Examine the RibbonBar examples in the Quick Start Framework to get familiar with the functionality of the ribbon.

I hope this helps.

All the best,
Peter
the Telerik team


Instantly find answers to your questions at the new Telerik Support Center
0
Tim
Top achievements
Rank 1
answered on 03 Jun 2008, 11:24 AM
Hi Peter

Thanks for the reply, i will change or drop the idea of mdi windows in the app.

Thanks

Tim
Tags
RibbonBar
Asked by
Tim
Top achievements
Rank 1
Answers by
Peter
Telerik team
Tim
Top achievements
Rank 1
Share this question
or