![]() |
custom CXTPReportRecordItem ??? |
Post Reply
|
| Author | |
hpesata
Groupie
Joined: 16 July 2004 Status: Offline Points: 60 |
Post Options
Thanks(0)
Quote Reply
Topic: custom CXTPReportRecordItem ???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 |
|
![]() |
|
sserge
Moderator Group
Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
hpesata
Groupie
Joined: 16 July 2004 Status: Offline Points: 60 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
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 |