Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPRibbonBar - update
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPRibbonBar - update

 Post Reply Post Reply
Author
Message
cjrobindch View Drop Down
Groupie
Groupie


Joined: 29 July 2008
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote cjrobindch Quote  Post ReplyReply Direct Link To This Post Topic: CXTPRibbonBar - update
    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
Back to Top
cjrobindch View Drop Down
Groupie
Groupie


Joined: 29 July 2008
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote cjrobindch Quote  Post ReplyReply Direct Link To This Post 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
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.047 seconds.