Print Page | Close Window

How to Edit Item without Clicking with Mo

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=3427
Printed Date: 11 May 2024 at 9:12pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to Edit Item without Clicking with Mo
Posted By: LeeHayton
Subject: How to Edit Item without Clicking with Mo
Date 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




Replies:
Posted By: Oleg
Date 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


Posted By: LeeHayton
Date 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

 



Posted By: Oleg
Date 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



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