Recent

Author Topic: VirtualTreeView: new home, new release  (Read 15078 times)

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
VirtualTreeView: new home, new release
« on: June 02, 2016, 05:54:06 pm »
The LCL port of VirtualTreeView component has a new home: https://github.com/blikblum/VirtualTreeView-Lazarus

It's now a direct fork of Delphi repository making easier to keep in sync

Two versions are released
- 4.8.7
- 5.5.3

Major changes:
- Uses native resources instead of Lazarus resources: smaller binary
- Fix reported bugs: remaining bugs also affects original code or is a side effect of bugs in other parts of LCL

Remarks:
- The users of 4.x must be warned that 5.x has breaking changes. Search for VTMajorVersion directives at the 5.x version of the demos to some of the incompatibilities
- Tested in windows with fpc 2.6.4, fpc 3.0 and fpc trunk
- Under linux the test was fairly basic. Only gtk2 with fpc 2.6.4, compiled and run advanced demo

Downloads at https://github.com/blikblum/VirtualTreeView-Lazarus/releases

Bugs should be reported in github although i will still monitor mantis

Thaddy

  • Hero Member
  • *****
  • Posts: 14205
  • Probably until I exterminate Putin.
Re: VirtualTreeView: new home, new release
« Reply #1 on: June 02, 2016, 06:11:53 pm »
Very good news! Tnx!
Specialize a type, not a var.

wp

  • Hero Member
  • *****
  • Posts: 11857
Re: VirtualTreeView: new home, new release
« Reply #2 on: June 02, 2016, 06:50:27 pm »
If course you can store your code wherever you want. But I fear the situation will be very confusing to users. We already had the dead "virtualtreeview" folder in ccr next to your "virtualtreeview-new", and now there will be another one on your git site. "virtualtreeview-new" will be dead as well I fear...

Please upload a note to your ccr repository linking to the new site. And I think also that there are several wiki articles covering VTV, they should be updated as well.

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: VirtualTreeView: new home, new release
« Reply #3 on: June 02, 2016, 09:02:40 pm »
@Luiz Americo Great work! Thanks a lot for keeping VTV alive.

JD
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

zeljko

  • Hero Member
  • *****
  • Posts: 1594
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: VirtualTreeView: new home, new release
« Reply #4 on: June 02, 2016, 09:52:11 pm »
Anyone converted some project with VTV 4.XX to this one ? Any problems with it ?

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Re: VirtualTreeView: new home, new release
« Reply #5 on: June 03, 2016, 12:03:47 am »
Quote
But I fear the situation will be very confusing to users. We already had the dead "virtualtreeview" folder in ccr next to your "virtualtreeview-new", and now there will be another one on your git site. "virtualtreeview-new" will be dead as well I fear...

I'll add a note at old repository code so anyone using will notice

The code will be kept there to maintain the development history

About the "virtualtreeview" folder at Lazarus-ccr, i'm not maintainer. The maintainer should decide if delete or not.

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Re: VirtualTreeView: new home, new release
« Reply #6 on: June 03, 2016, 12:08:14 am »
Quote
Anyone converted some project with VTV 4.XX to this one ? Any problems with it ?

I also updated also the 4.8 version. If you don't need the new features i recommend keep it.

For myself, i still use 4.8 so, as far as i can tell is well tested

OTOH, the example projects just compiled and worked fine with 5.5 version.

The problems were related to change in HeaderClick and DoGetChildren signatures. In the 5.5 demos i added the necessary defines so you can see what needs to change to upgrade


wp

  • Hero Member
  • *****
  • Posts: 11857
Re: VirtualTreeView: new home, new release
« Reply #7 on: June 03, 2016, 12:28:25 am »
I'll add a note at old repository code so anyone using will notice
Thanks.

balazsszekely

  • Guest
Re: VirtualTreeView: new home, new release
« Reply #8 on: June 03, 2016, 06:22:20 am »
Quote
@LuizAmérico
For myself, i still use 4.8 so, as far as i can tell is well tested
AFAIK the 4.8.7 is the only version which works under every major widgetset: win32/64, osx, qt, gtk2.

zeljko

  • Hero Member
  • *****
  • Posts: 1594
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: VirtualTreeView: new home, new release
« Reply #9 on: June 03, 2016, 08:34:12 am »
Thanks Luiz an GetMem....I'll stay with 4x which indeed works ok on all major platforms

RAW

  • Hero Member
  • *****
  • Posts: 868
Re: VirtualTreeView: new home, new release
« Reply #10 on: June 05, 2016, 05:12:56 pm »
Is this possible:
I need only 2 different sized images per node (row) and a background image.. everything else should be visually disabled like a "bsNone-Form" for example.

The first image should work like a ON/OFF-Button (small image)
The second image must be created at runtime and has always the same height, but the width depends on what the user needs...

I thought a VirtualTreeView will be better and faster than me using a dynamic array.. ( array of array[0..1] of TImage ).


I just downloaded version 4.8.7 and 5.5.3, but I've never used this component ...
Would be damn nice if anybody could give me a hint...  :)
Windows 7 Pro (x64 Sp1) & Windows XP Pro (x86 Sp3).

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Re: VirtualTreeView: new home, new release
« Reply #11 on: June 05, 2016, 06:09:38 pm »
Quote
I just downloaded version 4.8.7 and 5.5.3, but I've never used this component ...

I'm sure VirtualTreeView can handle that.

But this component has a steep learning curve.

Your best bet is reading the docs https://github.com/Virtual-TreeView/Virtual-TreeView/tree/master/Help although a bit outdated and looking at the demos


RAW

  • Hero Member
  • *****
  • Posts: 868
Re: VirtualTreeView: new home, new release
« Reply #12 on: June 05, 2016, 07:07:28 pm »
Quote
I'm sure VirtualTreeView can handle that.
Sounds very good, then I'll try it...

Quote
But this component has a steep learning curve.
No problem at all... I'll take my time...
Thanks for the link and the tip...

This shouldn't be a question for showing me some code, I just wanted to know if this is possible.
Of course I can find out for myself how it's working...

Thanks again...
Windows 7 Pro (x64 Sp1) & Windows XP Pro (x86 Sp3).

MISV

  • Hero Member
  • *****
  • Posts: 783
Re: VirtualTreeView: new home, new release
« Reply #13 on: February 04, 2018, 12:23:10 am »
For what it is worth:

Virtual Treeview 4.8.7.4 uding Lazarus 1.9 trunk with Cocoa trunk gives "Cannot find FakeActiveX used by VirtualTrees" when compiling a program of mine using VirtualTreeView.

Note: The version 5.x series for Lazarus does not seem to suffer from this problem.

But just a heads up for Mac users.
« Last Edit: February 04, 2018, 02:08:51 am by MISV »

MISV

  • Hero Member
  • *****
  • Posts: 783
Re: VirtualTreeView: new home, new release
« Reply #14 on: July 22, 2018, 11:11:21 am »
Here is a demo project which demonstrates multiple issues when having a visible virtual treeview on Lazarus Mac/Cocoa (using fpcupdeluxe "trunk" which includes newest virtual treeview)

I first reported the issue here: https://bugs.freepascal.org/view.php?id=34002

And together with Lazarus developers narrowed it down to be an issue with virtualtreeview and lazarus/cocoa.

The attached demo project demonstrates:

Toolbuttons becoming invisible until clicked
TPageControl tabsheets misdrawn until clicked
TEdit looking very weird with black background until clicked
Some captions/labels etc. are drawn upside down some places
All only when the two virtual treeviews are set to visible in the project.

...

To see all issues simply

run project
doubleclick window title bar (minimizes to dock)
open from mac dock.
« Last Edit: July 22, 2018, 11:14:12 am by MISV »

 

TinyPortal © 2005-2018