Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - OnInplaceButtonDown
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

OnInplaceButtonDown

 Post Reply Post Reply
Author
Message
adico View Drop Down
Groupie
Groupie
Avatar

Joined: 20 April 2006
Location: United States
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote adico Quote  Post ReplyReply Direct Link To This Post Topic: OnInplaceButtonDown
    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!
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: 27 October 2006 at 3:05am
Sorry, which "OK" button do you mean?

--
WBR,
Serge
Back to Top
adico View Drop Down
Groupie
Groupie
Avatar

Joined: 20 April 2006
Location: United States
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote adico Quote  Post ReplyReply Direct Link To This Post 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!
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: 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
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.203 seconds.