[Lazarus] TTreeView.OnItemClicked
Mattias Gaertner
nc-gaertnma at netcologne.de
Sun Apr 24 01:19:03 CEST 2011
On Sun, 24 Apr 2011 01:53:17 +0300
Juha Manninen <juha.manninen62 at gmail.com> 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
More information about the Lazarus
mailing list