Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - HOWTO: Expand/collapse records using keyboard
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

HOWTO: Expand/collapse records using keyboard

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: HOWTO: Expand/collapse records using keyboard
    Posted: 11 April 2011 at 4:55pm
Hi;

Am I wrong or does the report control not support the keyboard for expanding / collapsing tree-like records?
Where do I have to start from to implement this feature if it's actually not supported?
Will this be supported in next 15.0.3 release?
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2011 at 6:17pm
Hi,

please check the tree view dialog in the report sample. You can use the left, right, plus and minus key to collapse and expand the rows.



uploads/1755/ReportSample_18205.zip

Codejock support
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2011 at 6:35pm
Originally posted by ABuenger ABuenger wrote:

Hi,
please check the tree view dialog in the report sample. You can use the left, right, plus and minus key to collapse and expand the rows.

Ok, ABuenger;

Select the first row (click with mouse) then press the right arrow key until the 9th row is selected. Now press the left arrow key once.
From now on the navigation with arrow keys (left/right/up/down) is frozen until another row is selected by mouse.
And in my case I have 3 columns (first and third column is neither editable nor fousable). In this case the keyboard navigation does not work (I can't navigate with left/right arrow keys).

Update: As soon as I call FocusSubItems(TRUE) and the whole row has no focusable item, the navigation stops working.
In my case all parent records have no focusable items.
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2011 at 7:50pm
Confirmed. Will be fixed tomorrow.

Codejock support
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 13 April 2011 at 8:50pm
Fixed and updated sample:

uploads/1755/ReportSample_18205_2.zip
Codejock support
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 14 April 2011 at 12:48am
Hi Andre;

Could I get updated source? I've allready opened an issue #26476.
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 14 April 2011 at 3:33pm
Originally posted by mgampi mgampi wrote:

Hi Andre;

Could I get updated source? I've allready opened an issue #26476.


I'll add the text indent property and then attach the updated source to the issue.

Andre

Codejock support
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 14 April 2011 at 4:04pm
Thanks, Andre!
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
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.219 seconds.