www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - how to add focuslistener to tree?

reply yidabu <yidabu.spam gmail.com> writes:
I want to add focuslistener to each tree node so that we focus gets lost from
particular tree node I want to validate information associated with it.

Any alternative solution to this other than focuslistener...??

Thanx..

-- 
yidabu <yidabu.spam gmail.com>
http://www.dsource.org/projects/dwin

D -(D Chinese):
http://www.d-programming-language-china.org/
http://bbs.d-programming-language-china.org/
http://dwin.d-programming-language-china.org/
http://scite4d.d-programming-language-china.org/
Nov 02 2008
parent Frank Benoit <keinfarbton googlemail.com> writes:
yidabu schrieb:
 I want to add focuslistener to each tree node so that we focus gets
 lost from particular tree node I want to validate information
 associated with it.

You can add the focuslistener to the Tree itself. I think, if called, you can query the still selected node and validate your information. If that does not help, perhaps you can find an answer in the SWT newsgroup on eclipse.org
Nov 03 2008