Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Single Cell Selection
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Single Cell Selection

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

Joined: 21 May 2019
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote DuMa Quote  Post ReplyReply Direct Link To This Post Topic: Single Cell Selection
    Posted: 21 May 2019 at 7:24am
Hi,

I integrated the Report Control in our Software and I am looking for a way to configure the control like when you click on a cell that not the whole row becomes selected and highlighted but only the clicked cell gets selected.

Is there any way to configure the Report Control like this?

Thank you
Back to Top
BobC View Drop Down
Groupie
Groupie


Joined: 28 April 2017
Location: Longmont, CO
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote BobC Quote  Post ReplyReply Direct Link To This Post Posted: 23 May 2019 at 12:32pm
What you are looking for is to reverse the behavior of CXTPReportControl::FocusSubItems(), and after looking through the code and docs, I didn't see a particularly convenient way to get that.

Though this would seem like a common desired behavior, so maybe I'm missing something.
Back to Top
DuMa View Drop Down
Newbie
Newbie
Avatar

Joined: 21 May 2019
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote DuMa Quote  Post ReplyReply Direct Link To This Post Posted: 27 May 2019 at 4:08am
Alright thank you. Than I have to deal with this somehow.

But maybe you can tell me if it is possible to configure the Report Control to behave like Excel. Maybe not with single cells but with rows and when you keep the left mouse button hold down and move the cursor over the grid that all the rows you moved over get highlighted?
Back to Top
BobC View Drop Down
Groupie
Groupie


Joined: 28 April 2017
Location: Longmont, CO
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote BobC Quote  Post ReplyReply Direct Link To This Post Posted: 28 May 2019 at 11:06am
That capability is not built into the report control, so you would have to write the code. You might try using CXTPMouseMonitor, or just subclass CXTPReportControl and add your own mouse handler.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.109 seconds.