![]() |
MDI child w/o control box |
Post Reply ![]() |
Author | |
wakerunner ![]() Groupie ![]() Joined: 29 September 2007 Status: Offline Points: 85 |
![]() ![]() ![]() ![]() ![]() Posted: 30 October 2007 at 12:41am |
If you have a ribbonbar on a MDI parent and have a child set to "controlbox=false" "minbutton=false" and "maxbutton=false" the child form is not displayed when loaded.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Set WindowState to Normal. (from Maximized). Standard Application without any Codejock controls works same.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
wakerunner ![]() Groupie ![]() Joined: 29 September 2007 Status: Offline Points: 85 |
![]() ![]() ![]() ![]() ![]() |
You're right, without Commandbars VB does the same, the difference I just found though is without commandbars if you set controlbox=false maxbutton=true, the child is displayed but the child controlbox is not visible, with commandbars it is, (The X and maximize button is for the child)
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Use xtpFlagHideMDIButtons flag.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
wakerunner ![]() Groupie ![]() Joined: 29 September 2007 Status: Offline Points: 85 |
![]() ![]() ![]() ![]() ![]() |
Could you give me an example where to put that flag, I haven't been able to make it work. Below is sample code from your MDI Ribbon sample, how would you set that flag in this code?
Dim Control As CommandBarControl Dim ControlFile As CommandBarPopup Dim ControlAbout As CommandBarControl Dim RibbonBar As RibbonBar
Set RibbonBar = CommandBars.AddRibbonBar("The Ribbon") RibbonBar.EnableDocking xtpFlagStretchedShared Set ControlFile = RibbonBar.AddSystemButton() ControlFile.IconID = ID_SYSTEM_ICON ControlFile.CommandBar.Controls.Add XtremeCommandBars.XTPControlType.xtpControlButton, ID_FILE_new, "&New", False, False ControlFile.CommandBar.Controls.Add XtremeCommandBars.XTPControlType.xtpControlButton, ID_FILE_OPEN, "&Open...", False, False Set Control = ControlFile.CommandBar.Controls.Add(XtremeCommandBars.XTPControlType.xtpControlButton, ID_FILE_PRINT_SETUP, "Pr&int Setup...", False, False) Control.BeginGroup = True Set Control = ControlFile.CommandBar.Controls.Add(XtremeCommandBars.XTPControlType.xtpControlButton, ID_FILE_MRU_FILE1, "Recent File", False, False) Control.BeginGroup = True Control.Enabled = False Set Control = ControlFile.CommandBar.Controls.Add(XtremeCommandBars.XTPControlType.xtpControlButton, ID_APP_EXIT, "E&xit", False, False) Control.BeginGroup = True ControlFile.CommandBar.SetIconSize 32, 32 Set ControlAbout = RibbonBar.Controls.Add(XtremeCommandBars.XTPControlType.xtpControlButton, ID_APP_ABOUT, "&About", False, False) ControlAbout.Flags = XtremeCommandBars.XTPControlFlags.xtpFlagRightAlign Seting the flag here does not hide the controlbox for the MDI child
ControlAbout.Flags = xtpFlagHideMDIButtons
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
RibbonBar.SetFlags xtpFlagHideMDIButtons, 0
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |