Print Page | Close Window

[WORKAROUND] Navigation & Header Problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=18410
Printed Date: 15 November 2024 at 9:45pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [WORKAROUND] Navigation & Header Problem
Posted By: jpbro
Subject: [WORKAROUND] Navigation & Header Problem
Date 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 - uploads/2676/ReportFocusHeader.zip


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6




Replies:
Posted By: jpbro
Date 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 - uploads/2676/ReportFocusHeaderWorkaround.zip


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6




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