Print Page | Close Window

invalid tabbing choice

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=21671
Printed Date: 28 April 2024 at 7:38am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: invalid tabbing choice
Posted By: rdhd
Subject: invalid tabbing choice
Date Posted: 24 May 2013 at 12:40pm
Set up a task panel with a group. Add a couple of dialogs to the group. Disable all the controls in the first dialog. Set focus on the group header. Hit the tab button.

CXTPTaskPanel::SetFocusedItem calls ::SetFous as the end of the routine on the dialog that has all the disabled items. That dialog is returned from the m_pItemFocused->GetControlHandle() call.

I see no code in the taskpanel processing that ensures the handle returned is valid for focus. In this case it obviously is not as there are no enabled and visible controls on the dialog I inserted.

Can CodeJock please fix this problem?



Replies:
Posted By: ilya
Date Posted: 31 May 2013 at 1:49pm
Do you mean to check if the control is disabled and process Tab key for the next control?


Posted By: rdhd
Date Posted: 01 June 2013 at 4:43pm
ilya

In my case the first inserted dialog has no visible and enabled control. So ideally the tabbing code would move to the first enabled control in the next dialog in the group. If no controls are valid for tabbing it would move on until it either found a control in a dialog in the group or move to the next group header. Currently the code I stepped into simply obtained the first dialog and set focus on it. Since no control was enabled on the dialog, focus was completely lost.

I am not where I can test this but I also believe shift-tab is not very robust. If I am on a task panel header and there is a group with dialogs above/preceding the one with focus and I shift-tab, ideally the focus would be put on the last control with a tab stop in the last dialog in the preceding group. I think CJ just gets the first dialog in the preceding group and sets focus on it.

Basically the task panel should behave like one big dialog with the group headers treated as just another control. Tabbing should progress just like on a dialog and that includes cycling from start to end to start with shift tab reversing the procession.


Posted By: ilya
Date Posted: 03 June 2013 at 8:31pm
Created a ticket in the internal tracking system for this


Posted By: FSauer
Date Posted: 07 June 2013 at 4:05am
Hi,
please also take care, that items which aren't expandable, shouldn't get focus and as result be expanded!

Best Regards,
Fabian



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