Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Dynamic Gallery
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Dynamic Gallery

 Post Reply Post Reply
Author
Message
WaLtI View Drop Down
Groupie
Groupie


Joined: 30 March 2008
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote WaLtI Quote  Post ReplyReply Direct Link To This Post Topic: Dynamic Gallery
    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
 
Back to Top
WaLtI View Drop Down
Groupie
Groupie


Joined: 30 March 2008
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote WaLtI Quote  Post ReplyReply Direct Link To This Post Posted: 12 April 2008 at 11:29am
Thanks.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 12 April 2008 at 12:59pm
Too odd description :(
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
WaLtI View Drop Down
Groupie
Groupie


Joined: 30 March 2008
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote WaLtI Quote  Post ReplyReply Direct Link To This Post Posted: 13 April 2008 at 8:08am
Hmm ok another try how can i remove a action from a command bars object?
 
Thanks
-Mike
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 14 April 2008 at 1:00am
Thanks, right. :( CXTPControlActions::Remove method added.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
MGebler View Drop Down
Groupie
Groupie


Joined: 18 May 2006
Location: Germany
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote MGebler Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.045 seconds.