Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - [WORKAROUND] Navigation & Header Problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[WORKAROUND] Navigation & Header Problem

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

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Topic: [WORKAROUND] Navigation & Header Problem
    Posted: 19 May 2011 at 3:30pm
I having trouble understanding the logic behind FocusChanging, SelectionChanged and row navigation when crossing the header boundary.

If focus is in the top row of the main report body, and you push the up-arrow key, the FocusChanging event fires and returns a HeaderRow for the NewRow property - but focus never moves to the HeaderRow, and the SelectionChanged event doesn't fire.

If you click the HeaderRow with the mouse, focus goes there, but when you hit the down-arrow key the focus gets stuck in the header, but the FocusChanging event fires as if you were going to navigate back to the report body. SelectionChanged doesn't fire though, and navigation gets "stuck" in the header.

Is this the normal and expected behaviour? Is there any way to be able to navigate across the header boundary using only the keyboard?

Here's a sample:
uploads/2676/ReportFocusHeader.zip
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6

Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2011 at 3:54pm
Here's a really ugly workaround that I'll use for now because I am desperate (unless someone has a better idea!)

Essentially, I have to simulate a click on the HeaderRow when cursor up is pressed (since Navigator.CurrentFocusInHeader = True doesn't seem to do anything).

I also have a static flag in the FocusChanging event to prevent a stack overflow and I manually change the focus there to the newrow when moving from the Header > ReportBody.

Ugh...

uploads/2676/ReportFocusHeaderWorkaround.zip
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6

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