![]() |
CXTPReportFilterEditControl shoud be a CXTPControl |
Post Reply ![]() |
Author | |
acwest ![]() Groupie ![]() Joined: 23 April 2010 Location: Canada Status: Offline Points: 16 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
ABuenger ![]() Newbie ![]() ![]() Joined: 02 February 2006 Status: Offline Points: 1075 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
|
acwest ![]() Groupie ![]() Joined: 23 April 2010 Location: Canada Status: Offline Points: 16 |
![]() ![]() ![]() ![]() ![]() |
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?
|
|
![]() |
|
acwest ![]() Groupie ![]() Joined: 23 April 2010 Location: Canada Status: Offline Points: 16 |
![]() ![]() ![]() ![]() ![]() |
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...
|
|
![]() |
|
WoH-xD ![]() Newbie ![]() Joined: 13 March 2011 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
i also would like to know how to add a filteredit via GetControls->Add to a ToolBar
|
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() |
Me too!
![]() |
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
![]() |
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 |