[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] How to check temporary focus lost in SWT controls

Hi Remy,

I attached a FocusListener to the control. But I want a code block to be
executed when the control loses it's focus permanently. I mean to say that
my code block should not be executed when the user shifts between
dialogs(windows) which is causing a temporary focus lost.

Thanks
Arun


Remy Chi Jian Suen wrote:
> 
> Can't you just attach a FocusListener to it and listen to the
> focusLost(FocusEvent) method or am I missing something here?
> 
> Remy
> 
> On Wed, Jul 9, 2008 at 10:41 AM, arunkumarsimhadri <arunsimha@xxxxxx>
> wrote:
>>
>> Hi,
>>
>> I want to track whether a SWT.Text control lost it's focus
>> Temporarly/Permanently.
>>
>> Is there a way to check the above using SWT controls & Events.
>>
>> Please help me
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-check-temporary-focus-lost-in-SWT-controls-tp18362654p18362654.html
>> Sent from the Eclipse Platform - swt mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> platform-swt-dev mailing list
>> platform-swt-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>>
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-check-temporary-focus-lost-in-SWT-controls-tp18362654p18376195.html
Sent from the Eclipse Platform - swt mailing list archive at Nabble.com.