Forum > Packages and Libraries
Unresponsive hints of TVirtualDrawTree + error in demo
El Salvador:
--- Quote ---I have no hope for it getting fixed, because
1) It's not a part of the LCL, and VDT is not widely used
2) The package doesn't seem to be maintained and synced to the original one (v5 is more than 10 years old, the latest is v8)
--- End quote ---
There is also a (very experimental) attempt to port version 8 to Lazarus: https://github.com/salvadorbs/VirtualTreeView-Lazarus
wp:
You posted your bug report to the forum of the original Lazarus port, but mentioned the version which comes with Lazarus - and this confused blikblum, the original author... Edit your report and remove the "Laz" prefix so that it becomes clear that you are referring to blikblum version.
The version which is distributed along with Lazarus (TLazVirtualDrawTree, TLazVirtualStringTree) is a fork of blikblum's v5 since it is needed by OPM; the renaming was done to still allow users to install another VTV version.
trexet:
Going further:
Without toFullRowSelect, FCurrentHotNode is nullified most of the times, so Application.HideHint is being constantly triggered. Solved by using separate FCurrentHintNode to track which node triggered a hint.
Issues 1 and 2 fixed, now for 3. When scrolling, mouse stays in same position. Mouse must leave FLastHintRect to reshow a hint, so we should reset it on scroll in the TBaseVirtualTree.CMMouseWheel():
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- // Mouse stays in same position, so reset area which the mouse must leave to reshow a hint if ShowHint and (ScrollAmount <> 0) then FLastHintRect := Rect(0, 0, 0, 0);Works fine, although, the mouse still need to be moved a bit to trigger the CMHintShow.
Testing the demos - all OK
So, everything I've been complaining about is fixed + added system-drawn text hints to VDT
--- Quote from: wp on June 27, 2024, 12:22:58 pm ---You posted your bug report to the forum of the original Lazarus port, but mentioned the version which comes with Lazarus - and this confused blikblum, the original author... Edit your report and remove the "Laz" prefix so that it becomes clear that you are referring to blikblum version.
--- End quote ---
Now I'm confused too. Should I send a patch to both blikblum's version on Github and Lazarus repo on Gitlab?
wp:
--- Quote from: trexet on June 27, 2024, 12:50:33 pm ---Now I'm confused too. Should I send a patch to both blikblum's version on Github and Lazarus repo on Gitlab?
--- End quote ---
Send the patch to the blikblum repo, the Laz team later can adjust its LazVTV fork once your patch has been accepted by blikblum.
trexet:
OK, PR created: https://github.com/blikblum/VirtualTreeView-Lazarus/pull/33
What about fixing the empty Hint field in the DrawTreeDemo of vst_advanced demo? Should I make a PR in the Lazarus gitlab repo?
Navigation
[0] Message Index
[#] Next page
[*] Previous page