Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Poss Bug in Ribbon Gallery Image Display
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Poss Bug in Ribbon Gallery Image Display

 Post Reply Post Reply
Author
Message
Joe19 View Drop Down
Newbie
Newbie


Joined: 11 May 2007
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote Joe19 Quote  Post ReplyReply Direct Link To This Post Topic: Poss Bug in Ribbon Gallery Image Display
    Posted: 11 May 2007 at 3:48pm
Hi,
 
I'm adding a ribbonbar with a gallery as one of groups to my app.  I've been using the SDI RibbonBar sample as my guide.  I notice that when creating the gallery there may be a bug relating to the item ID versus the imageID.
 
Here is the slightly modified code from the sample:
 
 m_pItemsShapes = CXTPControlGalleryItems::CreateItems(GetCommandBars(), ID_GALLERY_SHAPES);

 m_pItemsShapes->AddItem(MY_ID1,  0);

If MY_ID1 is not 0, the gallery code tries to load the image indexed to the MY_ID1 value.  This only occurs when the input imageID is 0.  If you look at the sourcecode the problem is with

CXTPControlGalleryItem::GetImage()

Work around is to put an empty image "spacer" in first position for the bitmap holding the gallery images.
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post Posted: 11 June 2007 at 8:59am
this was a bug we had, however if you upgrade to new version it is fixed.
 
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
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.