Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - CXTPReportFilterEditControl shoud be a CXTPControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPReportFilterEditControl shoud be a CXTPControl

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


Joined: 23 April 2010
Location: Canada
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote acwest Quote  Post ReplyReply Direct Link To This Post Topic: CXTPReportFilterEditControl shoud be a CXTPControl
    Posted: 15 July 2011 at 11:15am
It would be a lot easier to use the CXTPReportFilterEditControl if it was derived from CXTPControl. I am trying to add one to a ribbon group, but it isn't working well. So far, I am trying to make it work as a custom control, but it isn't working. In this case, I am not getting OnCreateControl message for it, so it isn't being initialized properly.
Edit: I did some debugging, and it appears that I only get the OnCreateControl message for Controls that load menu items, such as xtpControlSplitButtonPopup
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 July 2011 at 2:59pm
Hi,

that's unfortunately not possible, because the Report Control is also sold as a single control without the CommandBars.

I'll look into a solution to host it on the CommandBar.

Andre

Codejock support
Back to Top
acwest View Drop Down
Groupie
Groupie


Joined: 23 April 2010
Location: Canada
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote acwest Quote  Post ReplyReply Direct Link To This Post Posted: 15 July 2011 at 3:27pm
I'm sure there would be some way to do it. That doesn't help me now in any case. Any idea why OnCreateControl isn't being triggered by any ribbon controls that don't contain menus?
Back to Top
acwest View Drop Down
Groupie
Groupie


Joined: 23 April 2010
Location: Canada
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote acwest Quote  Post ReplyReply Direct Link To This Post Posted: 15 July 2011 at 5:32pm
Well, it's more than a bit bogus, but if you use SetButtons instead of add to add the cusatom control, OnCreateControl gets called properly. Of course, you need to set the controlType in that case, but it works...
Back to Top
WoH-xD View Drop Down
Newbie
Newbie


Joined: 13 March 2011
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote WoH-xD Quote  Post ReplyReply Direct Link To This Post Posted: 16 July 2011 at 7:29am
i also would like to know how to add a filteredit via GetControls->Add to a ToolBar
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 02 May 2013 at 1:33am
Me too! Thumbs Up
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
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.125 seconds.