Recent

Author Topic: Seems TreeView programmatic selection now fires OnClick  (Read 358 times)

Alextp

  • Hero Member
  • *****
  • Posts: 1272
    • UVviewsoft
Seems TreeView programmatic selection now fires OnClick
« on: January 25, 2021, 06:11:01 pm »
Subj, am I right? Maybe it's new behaviour of Lazarus trunk 2.1?

Alextp

  • Hero Member
  • *****
  • Posts: 1272
    • UVviewsoft
Re: Seems TreeView programmatic selection now fires OnClick
« Reply #1 on: January 25, 2021, 08:01:32 pm »
I mean the deletion of a TreeNode which was selected before. It must fire OnClick?

jamie

  • Hero Member
  • *****
  • Posts: 4348
Re: Seems TreeView programmatic selection now fires OnClick
« Reply #2 on: January 29, 2021, 12:13:33 am »
it does not happen here ?

I dropped a TTreeView on the form, added a Parent and a bunch of children nodes.

Placed a button on the form and when run, I select one of the children nodes so that it's selected and then depress my button which looks for the selected node in the list, it finds it, and then deletes it.. I get no onclick trigger, only when I actually click on it.

 Maybe its a widget problem ? I did this test in windows
The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018