Print Page | Close Window

Tabbing problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Task Panel
Forum Description: Topics Related to Codejock Task Panel
URL: http://forum.codejock.com/forum_posts.asp?TID=11036
Printed Date: 01 May 2024 at 11:06pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tabbing problem
Posted By: rdhd
Subject: Tabbing problem
Date Posted: 14 June 2008 at 12:40pm
I have a task panel with groups into which I add dialogs as the group items. When focus is on a group and the user tabs, the CXTPTaskPanel::OnKeyDown method calls GetNextItem, which returns the next group. It then calls SetFocusedItem, which somehow sets focus to the first control with a tab stop on the first dialog I have in the group (way cool).

This all works great until the user presses the shift key. When the shift key is pressed, GetNextItem does return the preceeding group. But when SetFocusedItem is called, the routine sets the focus to the first control with a tab stop instead of the last control with a tab stop.

The code should account for the shift key and set focus to the last control that has a tab stop instead of the first control. Not doing so keeps the forward and backward tabbing from being consistent.
The result is that the user can tab from the last control in a group to the header of the next group and then shift-tab and instead of ending up with focus on the last control again, ends up with focus on a different control.
 
Is this a bug? If not, what is the reasoning? I thought forward and backward tabbing navigation should be such that the exact same "path" is taken when backing up as was taken when going forward.



Replies:
Posted By: mgampi
Date Posted: 18 August 2008 at 5:18pm
Hi;
Did you ever solve this?


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



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