I have some code defined thusly:
and the Tab key allows me to change the focus from the tab control
to the controls on the active hTabDlg(#) and back to the tab control.
I have a third party grid control on the first tab which is
exhibiting strange behavior under this set up with combobox cells. I
hope they are able to resolve it soon (the dropdown box leaves gray
filled boxes behind instead of restoring the background). In
testing for the source of the problem, I discovered that if I changed
the hTabDlg(#) dialogs to be children of hTab (versus hDlg), the combobox
cells worked again as expected.
I then experimented with adding the WS_EX_CONTROLPARENT extended style
to the tab control (hTab) and the tab key allows me to change the focus
from the tab control to the control(s) on the active hTabDlg(#). But,
once the focus is in the child dialog, the tab key will not completely
cycle the focus back to the tab control. Ie., it stops shifting focus
at the last control on the child dialog.
Is there any way to get the tab key to cycle completely if the child
dialogs (hTabDlg#) are children of the tab control (hTab)?
------------------
Bernard Ertl
Code:
DIALOG NEW 0, "",,, 300, 225, _ %WS_SIZEBOX OR %WS_MINIMIZEBOX OR %WS_MAXIMIZEBOX OR %WS_CAPTION OR _ %WS_SYSMENU, %WS_EX_CONTROLPARENT TO hDlg CONTROL ADD "SysTabControl32", hDlg, %ID_TAB, "", 10, 10, 280, 180, _ %WS_CHILD OR %WS_VISIBLE OR %WS_TABSTOP hTab = GetDlgItem( hDlg, %ID_TAB) FOR i=1 TO <#tabs> DIALOG NEW hDlg, "", 20, 35, 255, 140, %DS_CONTROL OR %WS_CHILD TO hTabDlg(i) NEXT
to the controls on the active hTabDlg(#) and back to the tab control.
I have a third party grid control on the first tab which is
exhibiting strange behavior under this set up with combobox cells. I
hope they are able to resolve it soon (the dropdown box leaves gray
filled boxes behind instead of restoring the background). In
testing for the source of the problem, I discovered that if I changed
the hTabDlg(#) dialogs to be children of hTab (versus hDlg), the combobox
cells worked again as expected.
I then experimented with adding the WS_EX_CONTROLPARENT extended style
to the tab control (hTab) and the tab key allows me to change the focus
from the tab control to the control(s) on the active hTabDlg(#). But,
once the focus is in the child dialog, the tab key will not completely
cycle the focus back to the tab control. Ie., it stops shifting focus
at the last control on the child dialog.
Is there any way to get the tab key to cycle completely if the child
dialogs (hTabDlg#) are children of the tab control (hTab)?
------------------
Bernard Ertl
Comment