![]() |
Poss Bug in Ribbon Gallery Image Display |
Post Reply ![]() |
Author | |
Joe19 ![]() Newbie ![]() Joined: 11 May 2007 Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() 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. |
|
![]() |
|
terrym ![]() Senior Member ![]() Joined: 13 April 2007 Status: Offline Points: 836 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
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 |