Print Page | Close Window

CXTPRibbonBar - update

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=17620
Printed Date: 19 June 2025 at 11:31pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPRibbonBar - update
Posted By: cjrobindch
Subject: CXTPRibbonBar - update
Date Posted: 30 November 2010 at 2:40pm
Hi folks -

I'm using Xtreme ToolkitPro v13.3.1 with Visual C++ 6.0 on Windows XP.

I'm writing a fairly basic app which interacts with a hardware device which signals to the application when it changes from one state to another.  As the app doesn't do very much and it's aimed at less-skilful users, I'd like as much of the feedback from the app to the user regarding state changes to be signalled in the CXTPRibbonBar.

I'm using the RibbonControls sample as my base app and building it up from there.  In this, I'm adding a CXTPControlBitmap control to a CXTPRibbonGroup and setting the bitmap image to a picture of the hardware device, but using the xtpImageDisabled flag in the SetIcons call (to make it look 'powered-down').  On powering-up the device, I'd like to change the bitmap to the 'powered-up' image, ie, the xtpImageNormal version of the same image.  A second call to SetIcons doesn't change the image.

I've also tried to implement this using a regular ribbon button and by using SetCheck() in the OnUpdateXXX() function, but I can't seem to Invalidate the control so that the OnUpdateXXX() function gets called.

Any help would be greatly appreciated!

thanks,

 - robin.


-------------
Product: Xtreme Toolkit Pro 15.0.1
Platform: Windows 7 (32bit)
Language: Visual C++ 6.0



Replies:
Posted By: cjrobindch
Date Posted: 01 December 2010 at 6:59am
Resolved -- there were problems with the values for the icon ID's which stopped the bitmaps from being updated correctly.

Oops!  Embarrassed


-------------
Product: Xtreme Toolkit Pro 15.0.1
Platform: Windows 7 (32bit)
Language: Visual C++ 6.0



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