![]() |
Dynamic Gallery |
Post Reply
|
| Author | |
WaLtI
Groupie
Joined: 30 March 2008 Status: Offline Points: 16 |
Post Options
Thanks(0)
Quote Reply
Topic: Dynamic GalleryPosted: 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
|
|
![]() |
|
WaLtI
Groupie
Joined: 30 March 2008 Status: Offline Points: 16 |
Post Options
Thanks(0)
Quote Reply
Posted: 12 April 2008 at 11:29am |
|
Thanks.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 12 April 2008 at 12:59pm |
|
Too odd description :(
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
WaLtI
Groupie
Joined: 30 March 2008 Status: Offline Points: 16 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 April 2008 at 8:08am |
|
Hmm ok another try how can i remove a action from a command bars object?
Thanks
-Mike
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 April 2008 at 1:00am |
|
Thanks, right. :( CXTPControlActions::Remove method added.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
MGebler
Groupie
Joined: 18 May 2006 Location: Germany Status: Offline Points: 64 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
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 |