Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Gallery control on a dialog
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Gallery control on a dialog

 Post Reply Post Reply
Author
Message
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Topic: Gallery control on a dialog
    Posted: 30 April 2009 at 7:34pm
Is it possible to use the Gallery control on a CDialog / CView? See Insert > Chart in Excel 2007.




Codejock support
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: 01 May 2009 at 2:12am
Hi,
 
You can insert ToolBar to dialog. Try search in forum. There was some sample already.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2009 at 7:46am
Originally posted by oleg oleg wrote:

Hi,
 
You can insert ToolBar to dialog. Try search in forum. There was some sample already.


Thanks Oleg, but I don't want to have a toolbar with a gallery on the dialog, I only want the gallery popup as in the screenshot above.

Codejock support
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2009 at 9:55am
Originally posted by ABuenger ABuenger wrote:

Is it possible to use the Gallery control on a CDialog / CView? See Insert > Chart in Excel 2007.




 
Hi ABuenger
 
Do you mean like below, as if so I can help you as I have already made a clone of this dialog using Gallery Controls:
 
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2009 at 4:21pm
Originally posted by terrym terrym wrote:

 


Nice! Please check your PM.

Codejock support
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2009 at 5:01pm
Could you please put the declaration of CXTPControlGalleryOffice2007Theme in a header!
I had to derive my own theme from CXTPControlGalleryOffice2007Theme to get a white gallery background and had to copy the declaration from XTPOffice2007Theme.cpp.



class CControlGalleryOffice2007Theme : public CXTPControlGalleryOffice2007Theme
{
public:
    CControlGalleryOffice2007Theme(CXTPPaintManager* pPaintManager)
        : CXTPControlGalleryOffice2007Theme(pPaintManager)
    {

    }
  
   virtual void FillControl(CDC* pDC, CXTPControlGallery* pGallery, CRect rc)
   {
      pDC->FillSolidRect(&rc, RGB(255,255,255));
   }
};

Codejock support
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 2009 at 1:04am
Hi,
 
moved. thanks.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post Posted: 08 May 2009 at 3:07am
Originally posted by ABuenger ABuenger wrote:

Could you please put the declaration of CXTPControlGalleryOffice2007Theme in a header!
I had to derive my own theme from CXTPControlGalleryOffice2007Theme to get a white gallery background and had to copy the declaration from XTPOffice2007Theme.cpp.



class CControlGalleryOffice2007Theme : public CXTPControlGalleryOffice2007Theme
{
public:
    CControlGalleryOffice2007Theme(CXTPPaintManager* pPaintManager)
        : CXTPControlGalleryOffice2007Theme(pPaintManager)
    {

    }
  
   virtual void FillControl(CDC* pDC, CXTPControlGallery* pGallery, CRect rc)
   {
      pDC->FillSolidRect(&rc, RGB(255,255,255));
   }
};

 
Much nicer idea, as right now we had to hack this lol :(
 
But good to know this will be changed for next released.
 
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
Back to Top
aldokocha View Drop Down
Newbie
Newbie
Avatar

Joined: 12 May 2009
Location: United States
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote aldokocha Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2009 at 5:09pm
Originally posted by terrym terrym wrote:


 
Hi ABuenger
 
Do you mean like below, as if so I can help you as I have already made a clone of this dialog using Gallery Controls:
 
 
I'm very interested in creating image galleries in a Dialog/View. Could you help me as well?
Aldo Kocha
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 14 May 2009 at 5:35pm
Clicking an item in the gallery on a dialog has no effect, the item is being highlighted but not marked as "hot" when clicked.

Codejock support
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post Posted: 15 May 2009 at 3:59am

Could you please download our http://www.my-software.co.uk/products/create-a-gift/download/cg-setup.exe and then click Download Images on the Insert ribbon and see if ours does what you say?

Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post Posted: 15 May 2009 at 4:07am
Originally posted by aldokocha aldokocha wrote:

Originally posted by terrym terrym wrote:


 
Hi ABuenger
 
Do you mean like below, as if so I can help you as I have already made a clone of this dialog using Gallery Controls:
 
 
I'm very interested in creating image galleries in a Dialog/View. Could you help me as well?
 
Sure, what help would you like as then we can point you in the right direction.
 
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post Posted: 15 May 2009 at 4:13am
Originally posted by ABuenger ABuenger wrote:

Clicking an item in the gallery on a dialog has no effect, the item is being highlighted but not marked as "hot" when clicked.

 
Oh yes, if I remember correctly we had to derive our own CXTPControlGalleryItem class, not only to get around this issue, but also to implement multiple selections as if you check out our version you toggle each item (on/off) then click the Download button to download those items.
 
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
Back to Top
aldokocha View Drop Down
Newbie
Newbie
Avatar

Joined: 12 May 2009
Location: United States
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote aldokocha Quote  Post ReplyReply Direct Link To This Post Posted: 15 May 2009 at 7:32am
Originally posted by terrym terrym wrote:

 Oh yes, if I remember correctly we had to derive our own CXTPControlGalleryItem class, not only to get around this issue, but also to implement multiple selections as if you check out our version you toggle each item (on/off) then click the Download button to download those items.
 


Could you tell me in what version of Codejock I can check out that feature?
Aldo Kocha
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 15 May 2009 at 9:12am
Will an out of the box solution for this problem be included in 13.1?
There are multiple customers with the same request and everyone has to search for an 1 year old half-working sample

Codejock support
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.188 seconds.