Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Commandbars_Execute not being called
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Commandbars_Execute not being called

 Post Reply Post Reply
Author
Message
AntonyJones View Drop Down
Newbie
Newbie


Joined: 01 May 2009
Location: United Kingdom
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote AntonyJones Quote  Post ReplyReply Direct Link To This Post Topic: Commandbars_Execute not being called
    Posted: 01 May 2009 at 11:01am
Hi all,

I recently added a new form with a ribbon to our application and when I added the form the ribbon worked great. However I tried to use it today and the execute event was not being called.
The code has not been changed and I have recreated the execute method to make sure it is correct; however I have so far had no joy.
The ribbon bar sample works fine and the standard style command bars work on other forms of the application.
I am using VB6 with Xtreme SuitePro ActiveX 2009 (13.0.0).
Any insight you could offer would be greatly appreciated.

Antony

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: 06 May 2009 at 3:28am
From my experience, when I get situation like this I cannot see the answer because I looking in the wrong place.

I recently had a object that did not seem to behave correctly.  I put lots of break points, debug.print , and MsgBox "I am here" lines in, and none of them got triggered when I ran the program.  then found the program was creating a different copy of the object from what I thought.

So in your case I would start with the debug.print .....    MsgBox ".... "   etc and make sure you are looking in the correct place, and try and track down the problem.

You may suspect a Control or VB to not be working correctly, but if that were the case it is likely this Forum would be full of other people discussing it.
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
Back to Top
AntonyJones View Drop Down
Newbie
Newbie


Joined: 01 May 2009
Location: United Kingdom
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote AntonyJones Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2009 at 12:01pm
Hi,
The problem turned out to be an issue with the SkinFramework.RemoveWindow method when the SkinFramework control is on a different form. In the end Oleg gave me this workaround:

    CommandBars.AttachToWindow 0
    MainForm.SkinFramework.RemoveWindow Me.hWnd
    CommandBars.AttachToWindow Me.hWnd

Thanks for all the help.

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.051 seconds.