[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-swt-dev] SWT Combo doesn't have a focus control
|
Here is a simple testcase:
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.events.FocusListener;
import org.eclipse.swt.events.FocusEvent;
import org.eclipse.swt.SWT;
public class TestComboFocus implements FocusListener
{
Public TestComboFocus(Composite parent)
{
Combo combo = new Combo(parent, SWT.DROP_DOWN);
combo.addFocusListener(this);
}
public void focusGained(FocusEvent e)
{
System.out.println("Combo is in focus");
}
public void focusLost(FocusEvent e)
{
System.out.println("Combo is lost focus");
}
}
These methods focusGained(), focusLost() never called when the cursor is in
or out of Combo
text box.
Thanks in advance.
----- Original Message -----
From: "David Whiteman" <dlwhiteman@xxxxxxxxxxxxxxx>
To: <platform-swt-dev@xxxxxxxxxxx>
Sent: Monday, April 28, 2003 8:06 AM
Subject: Re: [platform-swt-dev] SWT Combo doesn't have a focus control
> Sunday, April 27, 2003, 3:21:30 AM, Cuong MacroNT wrote:
>
> > I added addFocusListener() on combo but it never call gainFocus() or
loseFocus()
>
> Perhaps you should write a simple testcase and post it along with a
> Bugzilla report, indicating the SWT version and UI platform.
>
> David
>
> --
> Regards,
> David
> mailto:dlwhiteman@xxxxxxxxxxxxxxx
>
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>