Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - custom CXTPReportRecordItem ???
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

custom CXTPReportRecordItem ???

 Post Reply Post Reply
Author
Message
hpesata View Drop Down
Groupie
Groupie


Joined: 16 July 2004
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote hpesata Quote  Post ReplyReply Direct Link To This Post 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

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: 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
Back to Top
hpesata View Drop Down
Groupie
Groupie


Joined: 16 July 2004
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote hpesata Quote  Post ReplyReply Direct Link To This Post 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

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.047 seconds.