Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Own Control in a ReportControl?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Own Control in a ReportControl?

 Post Reply Post Reply
Author
Message
PanicMan View Drop Down
Groupie
Groupie
Avatar

Joined: 20 July 2006
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote PanicMan Quote  Post ReplyReply Direct Link To This Post Topic: Own Control in a ReportControl?
    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!
 
 
Back to Top
PanicMan View Drop Down
Groupie
Groupie
Avatar

Joined: 20 July 2006
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote PanicMan Quote  Post ReplyReply Direct Link To This Post Posted: 25 July 2006 at 4:50am
Is it possible to implement own Controls or not?
Back to Top
danpetitt View Drop Down
Senior Member
Senior Member


Joined: 17 July 2005
Location: United Kingdom
Status: Offline
Points: 109
Post Options Post Options   Thanks (0) Thanks(0)   Quote danpetitt Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 30 July 2006 at 6:05pm
yes, look inplace list edit for example:

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


--
WBR,
Serge
Back to Top
PierreL View Drop Down
Groupie
Groupie
Avatar

Joined: 01 September 2006
Location: Canada
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote PierreL Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
PierreL View Drop Down
Groupie
Groupie
Avatar

Joined: 01 September 2006
Location: Canada
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote PierreL Quote  Post ReplyReply Direct Link To This Post 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.
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.046 seconds.