[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Text selection when clicking a widget

Zsolt Koppany wrote:
Hi,

Hi,


the standard MS-Windows Text widget (entry box) selects the whole context when the user clicks in it. How can I do the same with the SWT Text widget?

You can add a SelectionListener to the Text widget and then call selectAll() in the widgetSelected method.



I think users expect the same behaviour from SWT plugin widgets like the standard widgets.

Zsolt

Peter