Print Page | Close Window

OnInplaceButtonDown

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=5364
Printed Date: 24 November 2024 at 1:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: OnInplaceButtonDown
Posted By: adico
Subject: OnInplaceButtonDown
Date Posted: 26 October 2006 at 3:20pm
I want to trigger the CXTPReportRecordItem::OnInplaceButtonDown(CXTPReportInplaceButton* pButton) & show the available list everytime the user clicks the 'OK' button.

Do I need to send a message or access it directly?

If so, does anyone have any ideas?

Thanks in advance



-------------
I am not my memories...I am my dreams!



Replies:
Posted By: sserge
Date Posted: 27 October 2006 at 3:05am
Sorry, which "OK" button do you mean?

--
WBR,
Serge


Posted By: adico
Date Posted: 27 October 2006 at 10:26am

Hi,

It could be any button; I just used the "ok" button as an example.  Ultimately what I would like to accomplish, is every time a user clicks on a button, I want to trigger the appropriate message and show the items inside my record.

So far this is what I have, but I am not there yet.

void CReportTestDlg::OnOK()
{
...
XTP_NM_REPORTINPLACEBUTTON* pItemNotify = (XTP_NM_REPORTINPLACEBUTTON*) pNotifyStruct;
ASSERT(pItemNotify->pButton);

CXTPReportRecordItem* pItem = pRecord->GetItem(0);
if (pItem)
    pItem->OnInplaceButtonDown(pButton);
...


    CXTResizeDialog::OnOK();
}

-------------
I am not my memories...I am my dreams!


Posted By: sserge
Date Posted: 29 October 2006 at 5:29am
Looks like you only have to initiate item's editing:

XTP_REPORTRECORDITEM_ARGS itemArgs(&wndReport, pRow, wndReport.GetColumns()->Find(COLUMN_INDEX));
wndReport.EditItem(&itemArgs);


--
WBR,
Serge



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