Oleg,
I'm confused. When you say "Add it before you setup PanelSummary as Dialog Bar", what is the "it" you are referring too?
By "it" do you mean I should remove the DialogBar add the child form and then recreate the DialogBar??? I've tried that and other combinations. Could you be more specific?
Thanks,
Tim
This is the FormLoad part of the code that was attached in the previous post from the RibbonMDI Sample.
Private Sub frmMain_Load(ByVal eventSender As Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load CreateRibbonBar()
CommandBars.KeyBindings.Add(ID.FCONTROL, System.Convert.ToInt32("N"c), ID.ID_FILE_NEW) CommandBars.KeyBindings.Add(ID.FCONTROL, System.Convert.ToInt32("O"c), ID.ID_FILE_OPEN) CommandBars.KeyBindings.Add(ID.FCONTROL, System.Convert.ToInt32("S"c), ID.ID_FILE_SAVE) CommandBars.KeyBindings.Add(ID.FCONTROL, System.Convert.ToInt32("X"c), ID.ID_EDIT_CUT) CommandBars.KeyBindings.Add(ID.FCONTROL, System.Convert.ToInt32("C"c), ID.ID_EDIT_COPY) CommandBars.KeyBindings.Add(ID.FCONTROL, System.Convert.ToInt32("V"c), ID.ID_EDIT_PASTE) CommandBars.KeyBindings.Add(ID.FCONTROL, System.Convert.ToInt32("A"c), ID.ID_EDIT_SELECT_ALL)
LoadIcons()
Dim StatusBar As XtremeCommandBars.StatusBar = Nothing StatusBar = CommandBars.StatusBar StatusBar.Visible = True
StatusBar.AddPane(0) StatusBar.AddPane(ID.ID_INDICATOR_CAPS) StatusBar.AddPane(ID.ID_INDICATOR_NUM) StatusBar.AddPane(ID.ID_INDICATOR_SCRL)
DialogBar = CommandBars.AddDialogBar("TaskPanel", XtremeCommandBars.XTPBarPosition.xtpBarTop) DialogBar.Caption = "DialogBar" DialogBar.EnableAnimation = True DialogBar.Closeable = True DialogBar.EnableDocking(XtremeCommandBars.XTPToolBarFlags.xtpFlagAlignTop) DialogBar.Resizable = False DialogBar.ChildHandle = PanelSummary.Handle.ToInt32 DialogBar.ShowGripper = False DialogBar.SetSize(1800, 48)
RibbonBar().EnableFrameTheme()
CommandBars.Options.KeyboardCuesShow = XtremeCommandBars.XTPKeyboardCuesShow.xtpKeyboardCuesShowWindowsDefault
Dim ctrl As Control For Each ctrl In Me.Controls If TypeOf ctrl Is MdiClient Then CommandBars.SetMDIClient(ctrl.Handle.ToInt32()) End If Next ctrl
' Dim Workspace As XtremeCommandBars.TabWorkspace
CommandBars.EnableCustomization(True)
End Sub
|