Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Task Panel
  New Posts New Posts RSS Feed - Tabbing problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Tabbing problem

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

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 867
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: Tabbing problem
    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.
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: 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
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.141 seconds.