Print Page | Close Window

Poss Bug in Ribbon Gallery Image Display

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=7113
Printed Date: 03 March 2025 at 1:05pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Poss Bug in Ribbon Gallery Image Display
Posted By: Joe19
Subject: Poss Bug in Ribbon Gallery Image Display
Date 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.



Replies:
Posted By: terrym
Date 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



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