[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Problem with TabFocus Moevemet

Hi,

TAB focus is defined by the order you *create* the controls not how they
are shown. In which order do you create them?

To change Taborder you could use Composite#setTabList(Control[]) or add
a TraverseListener on you controls and send the focus manually from
control to control.

Tom

Varun Singla schrieb:
> Hi everyone;
>   I am facing a problem with the movement of the focus when I use the
> TAB key..
> 
> I have created a dialog-box, with compnonets like Text-box, Browse
> Button, Radio-Button, and OK-CANCEL button..
> 
> Suppose these components are in the order of x1 x2, x3, x4, x5, x6.
> Now when I start pressing TAB, the focus start shifting in wrong manner
> as x1, x2, x5, x6, x3, x4, x1, x2....
> 
> I am not able to understand the reason for this wrong movement... Can
> anyone tell how I can reconigure this tab-movement, without changing the
> UI of my dialog-box
> 
> Please help, as this issue is blocking my work, and I need to resolve it
> asap
> 
> Thanks in Advance
> Varun
>