![]() |
Dynamic Gallery |
Post Reply ![]() |
Author | |
WaLtI ![]() Groupie ![]() Joined: 30 March 2008 Status: Offline Points: 16 |
![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
|
WaLtI ![]() Groupie ![]() Joined: 30 March 2008 Status: Offline Points: 16 |
![]() ![]() ![]() ![]() ![]() |
Thanks.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Too odd description :(
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
WaLtI ![]() Groupie ![]() Joined: 30 March 2008 Status: Offline Points: 16 |
![]() ![]() ![]() ![]() ![]() |
Hmm ok another try how can i remove a action from a command bars object?
Thanks
-Mike
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Thanks, right. :( CXTPControlActions::Remove method added.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
MGebler ![]() Groupie ![]() Joined: 18 May 2006 Location: Germany Status: Offline Points: 64 |
![]() ![]() ![]() ![]() ![]() |
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 ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |