Hi, this is a how to question, really:
I've got a TabSet and two tabs open.
On tab1, I have some widgets and above it a canvas containing other widgets. This is like a modal window, but not using the standard Window and isModal(true) feature for this, because when the popup is shown on tab1, the user still can navigate to tab2 and do stuff there.
I would like to limit the tab key (to control focus) use to the widgets in that modal popup. When the user goes to tab2, he can use the tab key as normal there.
I'm not sure how to achieve this. I can set focus on the popup onDraw, but somehow I would need to know that when the FocusChangedEvent stops at one of the children of the popup, it should set the focus back to the first widget to the first child.
I now have the problem where pressing the tab key lots of times, puts focus on the widget under the popup.
We do have a "modal mask" canvas which catches the mouse clicks on all things not from the popup.
Can you suggest a way to do this?
TIA
I've got a TabSet and two tabs open.
On tab1, I have some widgets and above it a canvas containing other widgets. This is like a modal window, but not using the standard Window and isModal(true) feature for this, because when the popup is shown on tab1, the user still can navigate to tab2 and do stuff there.
I would like to limit the tab key (to control focus) use to the widgets in that modal popup. When the user goes to tab2, he can use the tab key as normal there.
I'm not sure how to achieve this. I can set focus on the popup onDraw, but somehow I would need to know that when the FocusChangedEvent stops at one of the children of the popup, it should set the focus back to the first widget to the first child.
I now have the problem where pressing the tab key lots of times, puts focus on the widget under the popup.
We do have a "modal mask" canvas which catches the mouse clicks on all things not from the popup.
Can you suggest a way to do this?
TIA
Comment