![]() |
Tabbing problem |
Post Reply ![]() |
Author | |
rdhd ![]() Senior Member ![]() ![]() Joined: 13 August 2007 Location: United States Status: Offline Points: 871 |
![]() ![]() ![]() ![]() ![]() 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.
|
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1198 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |