3

I just tried to use the event OnHeaderDblClick of the VirtualStringTree Component (Version 4.8.7) Is it possible, that this event is not working?

Or is there some option that I need to set to get it to work?

Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
Michael Küller
  • 3,982
  • 4
  • 22
  • 42
  • The event works OK for me, but I'm using VT 5.0 BTW AFAIK you don't have to set any options for it to work... – ain Oct 25 '11 at 12:19
  • is 5.0 released yet? When I look into VirtualTrees.pas the function DoHeaderDblClick is nowhere being called. Is that different in 5.0? – Michael Küller Oct 25 '11 at 12:26
  • I'm not sure it is officially released, I pulled from SVN few months ago. The `DoHeaderDblClick` is called from `TVirtualTreeColumns.HandleClick` in 5.0. – ain Oct 25 '11 at 13:42
  • Check that you have set `coAllowClick` option in the `TVirtualTreeColumn.Options`. – TLama Oct 25 '11 at 13:58
  • I checked coAllowClick, but it is already enabled – Michael Küller Oct 25 '11 at 14:06

1 Answers1

4

You're right, it cannot work. Mike forgot to call the TBaseVirtualTree.DoHeaderDblClick what fires the OnHeaderDblClick in VirtualTreeView version 4.8.7.

It is fixed in VirtualTreeView version 5.0.0 as ain mentioned in TVirtualTreeColumns.HandleClick method.

Community
  • 1
  • 1
TLama
  • 75,147
  • 17
  • 214
  • 392