Print Page | Close Window

custom CXTPReportRecordItem ???

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=3614
Printed Date: 09 November 2025 at 11:42pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: custom CXTPReportRecordItem ???
Posted By: hpesata
Subject: custom CXTPReportRecordItem ???
Date Posted: 07 February 2006 at 9:26am
Hi!

XTP 9.70

I would like to use a custom item within a report control which
displays a spin button ctrl.

any hints on how to accomplish this would be greatly appreciated,
thanx in advance!

regards,
Hans




Replies:
Posted By: sserge
Date Posted: 11 February 2006 at 3:37am
Hi Hans,

You'll have to override a few RecordItem methods: for drawing an item it would be OnDrawCaption(), where you'll have to draw your button picture, like:
pDrawArgs->pDC->DrawFrameControl(&pDrawArgs->rc Item, DFC_SCROLL, ...);

Then you'll have to override mouse button handling methods to increase/decrease a value when clicking at spin button scrolls.

And so on

--
WBR,
Serge


Posted By: hpesata
Date Posted: 14 February 2006 at 3:52am
Hi Serge!

is it possible to use a CSpinButton control with your approach or do I have to paint the control myself ?

it would be great if you could provide some sample code, thanx in advance!

regards,
Hans




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