Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - SOLVED: Error with v12.0.1 RibbonBar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SOLVED: Error with v12.0.1 RibbonBar

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

Joined: 05 June 2008
Status: Offline
Points: 258
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisABC Quote  Post ReplyReply Direct Link To This Post Topic: SOLVED: Error with v12.0.1 RibbonBar
    Posted: 13 July 2008 at 9:15am
The following code (taken from the Ribbon Sample) worked OK in my program with v12.0.0   (in the Create ribbonBar sub)

    Set ControlFile = RibbonBar.AddSystemButton()
    . . . .
    With ControlFile.CommandBar.Controls
        Set ControlPrint = .Add(xtpControlsplitButtonPopup, ID_FILE_PRINT, "Print")
        Set PopupBar = commandBars.CreateCommandBar("CXTPRibbonSystemPopupBarPage")
    Set ControlPrint.CommandBar = PopupBar


After I updated to v12.0.1
The program stops on the last line with.   Error 438
     "Object doesn't support this property or method"

--------------------------------------------------------------------------------
However, the Ribbon Sample still runs OK with v12.0.1  so there must be something else (not the above code) that is affecting it.

Any ideas?   If not I shall have to start comparing the Ribbon Sample with my own code to see what is different.

(SOLVED:  with v12.0.1 ControlPrint must be Dim as CommandBarPopup
                 (with v12.0.0 it could be dim as CommandBarControl))

Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
Back to Top
chrisABC View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2008
Status: Offline
Points: 258
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisABC Quote  Post ReplyReply Direct Link To This Post Posted: 13 July 2008 at 6:32pm
Just to confirm this.

I uninstalled v12.0.1 and then installed v 12.0.0
My programs then run OK.

Uninstalled v12.0.0 and then installed 12.0.1
My program now reports error 438 "Object doesn't support property....
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
Back to Top
chrisABC View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2008
Status: Offline
Points: 258
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisABC Quote  Post ReplyReply Direct Link To This Post Posted: 13 July 2008 at 7:24pm
The solution is in the Dim statement.

  in v12.0.0  this works OK.
      Dim ControlPrint as CommandBarControl

but in v12.0.1  this must be changed to:
      Dim ControlPrint as CommandBarPopup


The rest of the code is:
     Set ControlFile = RibbonBar.AddSystemButton()
    . . . .
    With ControlFile.CommandBar.Controls
        Set ControlPrint = .Add(xtpControlsplitButtonPopup, ID_FILE_PRINT, "Print")
        Set PopupBar = commandBars.CreateCommandBar("CXTPRibbonSystemPopupBarPage")
        Set ControlPrint.CommandBar = PopupBar



With this change to the Dim statement, my program runs OK under v12.0.1
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.

This page was generated in 0.098 seconds.