Commandbars_Execute not being called
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=14194
Printed Date: 16 June 2025 at 5:22pm Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Commandbars_Execute not being called
Posted By: AntonyJones
Subject: Commandbars_Execute not being called
Date 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
|
Replies:
Posted By: chrisABC
Date 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
|
Posted By: AntonyJones
Date 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.
|
|