Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Ribbon Bar & MDI Close
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ribbon Bar & MDI Close

 Post Reply Post Reply
Author
Message
LittleJK View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 April 2006
Status: Offline
Points: 168
Post Options Post Options   Thanks (0) Thanks(0)   Quote LittleJK Quote  Post ReplyReply Direct Link To This Post Topic: Ribbon Bar & MDI Close
    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
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
LittleJK View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 April 2006
Status: Offline
Points: 168
Post Options Post Options   Thanks (0) Thanks(0)   Quote LittleJK Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.