Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Incorrect cursor placement in report
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Incorrect cursor placement in report

 Post Reply Post Reply
Author
Message
TerryT View Drop Down
Newbie
Newbie


Joined: 31 August 2006
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote TerryT Quote  Post ReplyReply Direct Link To This Post Topic: Incorrect cursor placement in report
    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

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: 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
Back to Top
TerryT View Drop Down
Newbie
Newbie


Joined: 31 August 2006
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote TerryT Quote  Post ReplyReply Direct Link To This Post 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

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: 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
Back to Top
TerryT View Drop Down
Newbie
Newbie


Joined: 31 August 2006
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote TerryT Quote  Post ReplyReply Direct Link To This Post 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();

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.125 seconds.