Getting CXTPReportRecordItem coordinates |
Post Reply |
Author | |
Vincs
Newbie Joined: 01 February 2012 Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 01 February 2012 at 9:39am |
Hello everyone!
I’m software engineer and I’m in charge of software automation (simulate user action on GUI). I’m trying to implement automation on CodeJock component: get the coordinates, text caption… So far, I can get the caption of the CXTPReportRecordItem controls. What I’m trying to do now is to retrieve the coordinates of that component. I’m trying to use the “ virtual void (XTP_REPORTRECORDITEM_ARGS* pDrawArgs, CRect& rcItem); “ function, but I can’t make it works and I don’t find any explanation on the web. I’ve got a loop that browses my records, and when it finds the good one, it tries to retrieve the coordinates:
CRect ret; CXTPReportRecordItem *pItem = pReportRecord->GetItem(0);
XTP_REPORTRECORDITEM_ARGS drawArgs; drawArgs.pControl = pReportCtrl; drawArgs.pItem = pItem;
pItem->GetCaptionRect(&drawArgs,ret);
But this
function returns incoherent data. It returns {top=0 bottom=0 left=17 right=0} for each row that has an icon in front of it, and tagRECT = {top=0 bottom=0 left=0 right=0} where there is no icon. Can you help me on this one ? |
|
Product: Xtreme ToolkitPro 2011 (15.1.2)
Platform: Windows 7 x64 Language: C++ MFC |
|
Vincs
Newbie Joined: 01 February 2012 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Hello! I’ve used the methods: ret = pTaskPanelItem->GetInvalidateRect(); and ret = pTaskPanelItem->GetTextRect();
Still no idea how I can do the same with ReportControl component? |
|
Product: Xtreme ToolkitPro 2011 (15.1.2)
Platform: Windows 7 x64 Language: C++ MFC |
|
Vincs
Newbie Joined: 01 February 2012 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
They replied to my ticket: “Hello,
I didn’t try it yet.
|
|
Product: Xtreme ToolkitPro 2011 (15.1.2)
Platform: Windows 7 x64 Language: C++ MFC |
|
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 |