Print Page | Close Window

Own Control in a ReportControl?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4626
Printed Date: 12 November 2025 at 5:09am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Own Control in a ReportControl?
Posted By: PanicMan
Subject: Own Control in a ReportControl?
Date Posted: 20 July 2006 at 11:40am
Hello!
 
I'm using v10.10 of XTP.
 
So I want an AutoComplete Edit Field in a ReportControl with Drop-Down field for choosing the values. (Like in MSIE)
 
The Control itself I allready have, it is derived from CEdit, the DropDownBox from CWnd.
 
Is this possible?
 
Thanks!
 
 



Replies:
Posted By: PanicMan
Date Posted: 25 July 2006 at 4:50am
Is it possible to implement own Controls or not?


Posted By: danpetitt
Date Posted: 25 July 2006 at 6:17am
Dunno if this is valid or not, but what about looking at OnCreateControl and pass back a pointer to your own control.


Posted By: sserge
Date Posted: 30 July 2006 at 6:05pm
yes, look inplace list edit for example:

class CXTPReportInplaceList : public CListBox, public CXTPReportInplaceControl
{
...
}


--
WBR,
Serge


Posted By: PierreL
Date Posted: 26 January 2007 at 12:36pm
I've tried deriving my own "CInplaceComboCtrl" from CXTPComboEx and CXTPReportInplaceControl. I need to have icons in my drop-list.

I'm having problems getting my dropdown to... well... drop. I followed the CXTPReportInplaceList code for the "Create" function but I've not been successful yet. Anyone tried this? I'd appreciate any hints you may have.

Thanks,
Peter


Posted By: sserge
Date Posted: 31 January 2007 at 1:53pm
Note that CListBox is used here (not combo box).
 
I suggest you to inherit from CXTPReportInplaceList and add functionality to draw icons (use owner draw if need).
Or use some other list control based class.

--
Best regards,
Sergey


Posted By: PierreL
Date Posted: 31 January 2007 at 2:49pm
Yes, I'm aware that its using a CListBox. I was trying to use a CComboBox to avoid what you are suggesting. I guess I'll just paint my own.

BTW, along with the 'flicker free drawing' of the CXTListBox... icon support would be appreciated  

Thanks,
P.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net