Print Page | Close Window

Clicking a XTPToolbar button

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=17658
Printed Date: 06 October 2024 at 12:15pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Clicking a XTPToolbar button
Posted By: KWSM
Subject: Clicking a XTPToolbar button
Date Posted: 09 December 2010 at 11:01am
We're working on a integration between a foreground application we wrote, and a background application written by a 3rd party, using the XTPToolbar controls. We need to be able to read the status of buttons in a band on the toolbar, and be able to click the same buttons. We're referencing only one band in the application, and 3 buttons.
 
Previos versions of the application we're integrating against used standard common control toolbars, so we're currently using a loop with a TB_BUTTONCOUNT message to get the button count, iterating over the buttons using a TB_GETBUTTON message for each button, then saving the handles of the 3 buttons we need to be able to send TB_GETSTATE messages to get their up/down state, and WM_COMMAND messages to click the buttons. Since the TM_BUTTONCOUNT message always returns zero when we send the message to the XTPToolbar bands, we don't have a way to get to the buttons.
 
Thoughts? Anything will help me greatly.
 
Thank you!
 
Keith



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net