Skip to main content

[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 Danail,

Thanks for the solution . I think the Shell Listener concept will work out
for me.

Thanks,
Arun



Danail Nachev-3 wrote:
> 
> The underlying OS doesn't distinguish between lost focus in the same
> dialog or between dialogs. There is always a control which lose the
> focus and one which receives the focus.
> 
> You can use Shell listener to detect the focus events due to shell
> activation/deactivation.
> 
> Hope this helps,
> --
> Danail Nachev
> Senior Software Engineer/Development Tools
> ProSyst Labs EOOD
> -------------------------------------------------
> stay in touch with your product.
> -------------------------------------------------
> 
> arunkumarsimhadri wrote:
>> 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
>>>
>>>
>> 
> _______________________________________________
> 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-tp18362654p18376852.html
Sent from the Eclipse Platform - swt mailing list archive at Nabble.com.



Back to the top