Print Page | Close Window

Shifting ActiveItem from CXTPReportControl

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4697
Printed Date: 10 November 2025 at 10:10pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Shifting ActiveItem from CXTPReportControl
Posted By: Wisebee
Subject: Shifting ActiveItem from CXTPReportControl
Date Posted: 02 August 2006 at 6:56am
I had a good job with methods of GetSelectedRows class to select separated rows.
I also found GetActiveItem method to get record item pointer of activated row.
But, hot to set activated item?

-------------
Be fun~



Replies:
Posted By: sserge
Date Posted: 02 August 2006 at 1:39pm
An item can become active when edited.
So far, call .EditItem(...) for a needed one.
If you do not want to actually edit it, call .EditItem(NULL) right after that.

--
WBR,
Serge


Posted By: Wisebee
Date Posted: 11 August 2006 at 1:15am

Maybe it was wrong question that I asked before. I'm sorry for that.
Let me try to ask correctly.

There is a report control and it has 5 item(row)s.
Click first row, it turns to blue and outlined with gray dotted line.
Click last row(5th row) holding shift key, all 5 rows turn to blue and the rectangle(shown in gray dotted line) moves to 5th row.
Only one gray dotted rectangle is shown and it moves whenever click an item or press up/down keys.

I wander, how to get the row shown in gray dotted rectangle, also how to set a row as a gray dotted one.
(What it calls? default selected item?)



-------------
Be fun~



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