blikblum/VirtualTreeView-Lazarus

Updating repo?

Opened this issue · 23 comments

Are you going to update this repo with the changes of Virtual-TreeView/Virtual-TreeView?

Maybe it's a good idea to make Virtual-TreeView/Virtual-TreeView lazarus compatible. They are
willing to accept changes. See Issues of Virtual-TreeView/Virtual-TreeView.

The fpc compiler does not support the syntax used by current Delphi version.

It's possible but it will need to remove some features

Isn't there a common syntax for Delphi and Lazarus? Do you have sample of this Delphi-only syntax?

The generic methods GetNodeData etc

Don't they work in fpc trunk? If not, they maybe can IFDEFed out for fpc .

No. Trunk does not work

Okay, I see. You reported it in 2011 already :-(

After two years, any chance to see some updates in this repo? Is it impossible or do you need any help? Thank you very much.

The goal should be to update JAM-Software/Virtual-TreeView to make it work with Lazarus. But i do not have the time to do this. So help is welcome here.

Unfortunately i know how to do but also do not have time.

Could you at least make a new official patch release containing all the Mac fixes with e.g. column drawing. The problem is Lazarus team is trying to ship their own Lazarus Treeview control, but as far as I know they do not contain any of the Mac paint glitches and column draw fixes.... It is a bit of a mess.... (And yes, they also seem to be ditching compability...)

I will comment as testing the new download:

The lcl-extensions need the "cocoa" folder in "include" folder. Otherwise you get a compilation error. I can try email those that have been working.

I believe it correspons to this entry:
#8 (comment)

VirtualTrees.pas line 6082 fix
if Tree Is TCustomVirtualDrawTree and Assigned(Node) then
to
if (Tree Is TCustomVirtualDrawTree) and (Assigned(Node)) then
otherwise you get error: Operator is not overloaded: Class of TCustomVirtualDraw and Boolean

VirtualTrees.pas line 6082 fix

What compiler are you using?

Here with fpc 3.2.0 windows 32 bit it compiles fine

  • Version 2.1.0
  • Date: 2020-09-13
  • FPC Version: 3.3.1
  • SVN Revision: 63882
  • X86-64-darwin-cocoa

The lcl-extensions need the "cocoa" folder in "include" folder. Otherwise you get a compilation error. I can try email those that have been working.

I updated lclextensions file

otherwise you get error: Operator is not overloaded: Class of TCustomVirtualDraw and Boolean

This seems to be a bug in fpc trunc. I fixed nonetheless and updated the release

Great!

One problem though while testing the new build... :(

It seems column borders are no longer drawn.

This has worked in an earlier build. (I think I have a copy of that build)

Not sure if related to:
#15

Or maybe emergence of something related to:
#14

Let me know if you need me to test anything?

What OS?

I can only test on windows or linux

(Mac, Cocoa) will report back when I know more (but if you aready have ideas now for what I can try let me know)

For what it is worth, vtbasic demo also shows without column borders

For now I have posted here
https://forum.lazarus.freepascal.org/index.php/topic,32856.msg378680.html#msg378680

And also references in the LCL Mac Cocoa forum, so if anyone else can duplicate the problem as well, maybe they can share some insight.

Created #20 about the data columns border