![]() |
CXTPRibbonBar - update |
Post Reply ![]() |
Author | |
cjrobindch ![]() Groupie ![]() Joined: 29 July 2008 Status: Offline Points: 15 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
cjrobindch ![]() Groupie ![]() Joined: 29 July 2008 Status: Offline Points: 15 |
![]() ![]() ![]() ![]() ![]() |
Resolved -- there were problems with the values for the icon ID's which stopped the bitmaps from being updated correctly.
Oops! ![]() |
|
Product: Xtreme Toolkit Pro 15.0.1
Platform: Windows 7 (32bit) Language: Visual C++ 6.0 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |