![]() |
how to add CXTPReportFilterEditControl to toolbar |
Post Reply ![]() |
Author | |
ddlittle ![]() Senior Member ![]() Joined: 19 February 2004 Location: United States Status: Offline Points: 132 |
![]() ![]() ![]() ![]() ![]() Posted: 09 February 2008 at 3:54pm |
I am using a CXTPReportControl and i wanted to add a filter edit box to a toolbar, but CXTPReportFilterEditControl is derived from CEdit and isn't a CXTPControl. I tried changing the pControl to a pointer to it, but got an access violation.
I couldn't find any help or examples.
Thanks!
- David
|
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Hi David,
But the example is available in a regular ReportSample application. Just enable menu Report Control / Filter window -- it is implemented on the toolbar. -- WBR, Serge |
|
![]() |
|
ddlittle ![]() Senior Member ![]() Joined: 19 February 2004 Location: United States Status: Offline Points: 132 |
![]() ![]() ![]() ![]() ![]() |
Not exactly - the filter window is on a CDialogBar, not a CXTPToolbar. A CDialogBar will dock, but it doesn't have any themes, so it looks ugly. It needs to be creatable on a CXTPToolbar to get the right look - if there's a sample that shows how to get a CEdit (Not a CXTPControlItemEdit) on a toolbar, that would probably be sufficient.
|
|
![]() |
|
Barto ![]() Groupie ![]() Joined: 27 February 2005 Location: Germany Status: Offline Points: 60 |
![]() ![]() ![]() ![]() ![]() |
Try a code like this:
|
|
![]() |
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 |