Ribbon Bar & MDI Close
Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=7157
Printed Date: 18 June 2025 at 7:36pm Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Ribbon Bar & MDI Close
Posted By: LittleJK
Subject: Ribbon Bar & MDI Close
Date Posted: 16 May 2007 at 2:10pm
Hi, We are trying to get the close, minimize and restore buttons to be removed. All the examples show using .SetFlags xtpFlagHideMDIButtons, 0. Just when I look for setflags it's not there in the properties.
thanks
|
Replies:
Posted By: jpbro
Date Posted: 16 May 2007 at 7:12pm
First, are you using the latest version?
Next, the SetFlags is a property of the RibbonBar, not the CommandBars, so:
Dim objRbn as RibbonBar
With Me.CommandBars
.VisualTheme = xtpThemeOffice2007
.PaintManager.RefreshMetrics
.RecalcLayout
Set objRbn = .AddRibbonBar("RibbonBar")
End With
With objRbn
.SetFlags xtpFlagHideMDIButtons
End With
|
|
Posted By: LittleJK
Date Posted: 17 May 2007 at 9:38am
We are using 11.1.... Yeah I don't know it wasn't working when I posted this message but after getting it to work in the codejock sample... it finally worked in our project.... Thanks though, just quick question? Why are you calling .recalculate and .paintmanager.refreshmetrics when declaring the commandbar? Just wondering because we currently don't use them. Although we do have to use the recalculate a lot with the docking panes actions now.
|
|