Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - How to Edit Item without Clicking with Mo
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to Edit Item without Clicking with Mo

 Post Reply Post Reply
Author
Message
LeeHayton View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 November 2005
Location: United Kingdom
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote LeeHayton Quote  Post ReplyReply Direct Link To This Post Topic: How to Edit Item without Clicking with Mo
    Posted: 20 December 2005 at 8:51am

I am adding a new record to the report control and would like to have the item in edit mode without the user having to click on the item with the mouse.

How can I do this?

Thanks

Lee

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 20 December 2005 at 1:28pm

From our sample:

void CTaskListView::OnAddTask()
{
 CTaskRecord* pRecord = (CTaskRecord*)GetReportCtrl().AddRecord(new CTaskRecord(TRUE, taskImportanceNormal, FALSE, taskStatusNotStarted, _T(""), COleDateTime(), 0, _T("")));
 GetReportCtrl().Populate();

 CXTPReportRow* pRow = GetReportCtrl().GetRows()->Find(pRecord);
 if (pRow)
 {   
  XTP_REPORTRECORDITEM_ARGS itemArgs(&GetReportCtrl(), pRow, GetReportCtrl().GetColumns()->Find(COLUMN_SUBJECT));
  GetReportCtrl().EditItem(&itemArgs);
 }

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
LeeHayton View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 November 2005
Location: United Kingdom
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote LeeHayton Quote  Post ReplyReply Direct Link To This Post Posted: 21 December 2005 at 4:09am

I forgot to say that I am using the Xtreme Suite for ActiveX v9.60.1 and visual basic 6.

Can you do it using this?

The desired effect is like the StartLabelEdit function of VB controls.

Thanks

Lee

 

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 21 December 2005 at 4:17am

Hi,

There is ReportControl.EditItem method in ActiveX version, but I afraid it appeared in 9.80 only.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.172 seconds.