On Sun, 24 Apr 2011 01:53:17 +0300
Juha Manninen <[email protected]> wrote:

> 19059: find-in-files unexpected jump to source
> and
> 19142: TTreeView can't tell if an item was clicked, or if expansion '+' or
> background was clicked instead

OnClick is for the whole control.
OnMouseDown/Up is for more details.

 
> Is it OK to implement a new event OnItemClick or OnNodeClick for TTreeView?
> It would be triggered only a node is clicked, not the '+' or background.

Often the background should be included in the trigger area.
And sometimes - as for example in the find in files dialog - you need
to distinguish between single and multi click.
All this can be easily done with OnMouseDown/Up.


Mattias

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to