tabsequence across tabpanels

On my form I’ve got 2 tabpanels. The first one works as expected: the user can tab into this panel and at the end of that form, the tabsequence continues at the parent form. The second tabpanel I can tab into, but I cannot tab out of this tabpanel.
I dont understand why not. Both tabpanels have the same properties. When I move a form from the first tabpanel to the second, tabbing works as expected, reverse when I move a tabform from the second tabpanel to the first I cannot tab out of it.
So it would seem to be a problem of the tabform. But comparing those forms I cannot find the problem. All properties seem to be the same.
Any ideas on what the problem can be?

Hi Jos,

I just tried this with two simple forms and straightforward tabpanels. Are there any commands in your code that set the focus to a specific element. I also tried adding text area elements but that didn’t give any problems either so it must be one of the elements. Save a copy and delete them one by one :wink:

Hi Omar,

I’ve been able to narrow the problem down.
On the form there are 2 edit fields. The second field is only enabled when the first field has a value. It seems that this is causing my problem, when the field is enable it works correctly. Also when the field is disabled AND not in the tabsequence it also works correctly. Hiding the field has the same result.
So it seems that there is a problem with the tab sequence in relation to disabled/hidden fields.

Ok, interesting. It must be a runtime enable/disable problem because I am not able to reproduce it by just setting enable at designtime. As a workaround you could try setting tabSeq to -2 when disabling the text field and set it back to 0 or it’s original value when it is enabled?

seems promising. It seems to remove some styling when i call recreateUI, but I think I can workaround that.
Thx