Print Page | Close Window

Dynamic Gallery

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=10165
Printed Date: 01 March 2025 at 6:19am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Dynamic Gallery
Posted By: WaLtI
Subject: Dynamic Gallery
Date Posted: 09 April 2008 at 6:15pm
I have a dynamic menu with some items as splitbuttons
the items should show spezific to the item data a popup menu with some commands on the top and some other information on the bottom. I get the gallery to show up but every time i open the galery popup the items duplicated. I add the dynamic Gallery items with its contents on the OnSetPopup call and i add them only if the controls are empty.
 
The complete menu is temporary and is regenerated every time it need to display it.
 
Thanks
-Mike
 



Replies:
Posted By: WaLtI
Date Posted: 12 April 2008 at 11:29am
Thanks.


Posted By: Oleg
Date Posted: 12 April 2008 at 12:59pm
Too odd description :(

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: WaLtI
Date Posted: 13 April 2008 at 8:08am
Hmm ok another try how can i remove a action from a command bars object?
 
Thanks
-Mike
 


Posted By: Oleg
Date Posted: 14 April 2008 at 1:00am
Thanks, right. :( CXTPControlActions::Remove method added.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: MGebler
Date Posted: 07 May 2008 at 3:03pm
Hello there
 
CXTPControlGalleryItems::CreateItems is not only creating a list for the gallery items, furthermore the gallery with all added items is registered for the whole process.
To avoid duplicated items inside a gallery, I am using this code fragment:
 
m_pItems = CXTPControlGalleryItems::CreateItems( pCommandBars, ID_x ) );
if( 0 == m_pItems->GetItemCount() )
{
    pItems->AddItem( ... );
 
My personal meaning is, that this implementation has more disadvantages than advantages, when using dynamically generated galleries.
 
Maybe I am wrong. Come on "codejock pro's", tell us why!
Is there a better way?
 
Best regards


Posted By: Oleg
Date Posted: 08 May 2008 at 4:00am
Hello,
Yes, its designed. Not for whole process - for pCommandBars instance only.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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