Print Page | Close Window

Incorrect cursor placement in report

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=5322
Printed Date: 22 November 2024 at 2:52am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Incorrect cursor placement in report
Posted By: TerryT
Subject: Incorrect cursor placement in report
Date Posted: 19 October 2006 at 12:04am

I’ve modeled my code after the sample: “ReportSample”

Report Control->Control Test->Task List Sample

 

If no new rows are added during CTaskListView creation (comment out all “wndReport.AddRecord(new CTaskRecord(…” in TaskListView.cpp

and a new Task is added, the cursor is not visible

 

 

Even more of a problem:

If a command bar is placed at the top of the view, the report control is moved below it, a new Task places the cursor in the header

 

Please advise




Replies:
Posted By: sserge
Date Posted: 22 October 2006 at 4:59pm
open Windows Explorer, open a folder with a single file, press F2 and enter new filename like "aaa". Do not press Enter or something and check whether your cursor is visible... I've found the same effect in this case and I think it's ok in this case...

--
WBR,
Serge


Posted By: TerryT
Date Posted: 05 January 2007 at 8:57am

Hi Serge,

Thanks for the response (sorry for my delay in returning)

I need to know if the following is a bug or by design:

Xtreme Toolkit Pro v10.3
Codejock Project: ReportSample_vc80

From the “Codejock Report Control Sample” application:
Select “Report Control” menu item
Select “Control Test->Task List Sample”
Select “Edit->Add Task”

Immediately begin typing:
Note: neither the text or the cursor shows in the edit control

Select “Edit->Add Task”
Note: the cursor is visible, and the edit control behaves as expected in the second task item
(additionally, the text in the first task appears)

I would have expected the “GetReportCtrl().EditItem(&itemArgs);” to immediately have focus and cursor visible after the first “Add Task”

Thank you!
Terry



Posted By: sserge
Date Posted: 08 January 2007 at 4:29pm
Hi Terry,

Looks like this bug was fixed in later versions. Currently it works for me just fine :)

--
WBR,
Serge


Posted By: TerryT
Date Posted: 14 February 2007 at 9:00am

Hi Serge,

I added "UpdateWindow()" after the Populate() to your (modified) sample, and now is behaving
Thanks!

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




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