Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Shifting ActiveItem from CXTPReportControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Shifting ActiveItem from CXTPReportControl

 Post Reply Post Reply
Author
Message
Wisebee View Drop Down
Newbie
Newbie
Avatar

Joined: 06 April 2006
Location: Korea, South
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wisebee Quote  Post ReplyReply Direct Link To This Post Topic: Shifting ActiveItem from CXTPReportControl
    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~
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: 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
Back to Top
Wisebee View Drop Down
Newbie
Newbie
Avatar

Joined: 06 April 2006
Location: Korea, South
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wisebee Quote  Post ReplyReply Direct Link To This Post 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~
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.031 seconds.