Recent

Author Topic: VirtualTreeView 4.8.6 released  (Read 75424 times)

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Re: VirtualTreeView 4.8.6 released
« Reply #15 on: February 27, 2010, 05:07:14 pm »
@hop111
Quote
After patching compiling not work.

I don't have a 64bit so i can't test. I even did not patched in my local copy because the program i use to apply patches are not working with it.


@nicolagorlandi
Quote
I tried to compile under Wince and in DelphiCompat.pas unit some inc isn't found

I did not tested with wince. You can try to copy the win32 folder found in the include folder and rename it to wince

iPasha

  • Newbie
  • Posts: 3
Re: VirtualTreeView 4.8.6 released
« Reply #16 on: March 17, 2010, 02:08:36 pm »
Hi, folks!

I wanted to port one my delphi project with Virtualtreeeview to Lazarus.
There were not problems compiling new port of Virtual treeview package before build 24055 of Lazarus and fpc 2.4.1 from daily snapshot. Now I've got one.

C:\Development\Lazarus\components\virtualtreeview\VirtualTrees.pas(15249,36) Error: Call by var for arg no. 1 has to match exactly: Got "TLMMouse" expected "TLMContextMenu"

After some investigation I found an error. Near line 503

Code: [Select]
  TLMContextMenu = TLMMouse;

Commenting this line allow you to compile package without any errors
Hope this helps

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Re: VirtualTreeView 4.8.6 released
« Reply #17 on: March 17, 2010, 07:25:50 pm »
Quote
Commenting this line allow you to compile package without any errors

Thanks. I 'll take a look.

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: VirtualTreeView 4.8.6 released
« Reply #18 on: March 23, 2010, 12:13:16 pm »
What about errors on ubuntu 64bit? I can be a tester if you want. Regards

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Re: VirtualTreeView 4.8.6 released
« Reply #19 on: March 23, 2010, 07:31:47 pm »
I applied a patch in trunk to fix compilation under 64bit. You can test.

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: VirtualTreeView 4.8.6 released
« Reply #20 on: April 25, 2010, 05:57:41 pm »
Forgive me for being late. I downloaded VirtualTree from:
https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/components/virtualtreeview-new/trunk/
This files have this fix? When I try install package virtualtreeview_package.lpk I have this error:
VirtualTrees.pas(10074,10) Error: Illegal type conversion: "<record type>" to "<record type>"

Exaclty in line:
if TLMTimer(Message).TimerID = HeaderTimer then...

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Re: VirtualTreeView 4.8.6 released
« Reply #21 on: April 25, 2010, 11:26:08 pm »
No idea how to fix that. Can someone propose a patch?

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2583
Re: VirtualTreeView 4.8.6 released
« Reply #22 on: April 26, 2010, 08:44:01 am »
IIRC you get this message when you cast a smaller size record to a larger size record.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: VirtualTreeView 4.8.6 released
« Reply #23 on: May 19, 2010, 12:39:03 pm »
Forgive me for being late. I downloaded VirtualTree from:
https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/components/virtualtreeview-new/trunk/
This files have this fix? When I try install package virtualtreeview_package.lpk I have this error:
VirtualTrees.pas(10074,10) Error: Illegal type conversion: "<record type>" to "<record type>"

Exaclty in line:
if TLMTimer(Message).TimerID = HeaderTimer then...


I got the same error when I tried to install VirtualTreeView after I updated Lazarus. Any ideas how to fix this.
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

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2583
Re: VirtualTreeView 4.8.6 released
« Reply #24 on: May 19, 2010, 09:33:06 pm »
use TLMTimer as type for the Message parameter
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: VirtualTreeView 4.8.6 released
« Reply #25 on: May 20, 2010, 03:51:09 pm »
use TLMTimer as type for the Message parameter

The error I got is the following
Code: [Select]
Error: Call by var for arg no. 1 has to match exactly: Got "TLMMouse" expected "TLMContextMenu"


and it is due to the following line of code in the file VirtualTrees.pas
Code: [Select]
 if not (tsPopupMenuShown in FStates) then
    inherited WMContextMenu(Message);

Where exactly should I change the "Message" parameter?


« Last Edit: May 20, 2010, 05:35:42 pm by 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

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1927
Re: VirtualTreeView 4.8.6 released
« Reply #26 on: May 20, 2010, 04:32:35 pm »
Comment line 494 of VirtualTrees.pas

//TLMContextMenu = TLMMouse;


JD

  • Hero Member
  • *****
  • Posts: 1848
Re: VirtualTreeView 4.8.6 released
« Reply #27 on: May 21, 2010, 12:18:08 pm »
Comment line 494 of VirtualTrees.pas

//TLMContextMenu = TLMMouse;


Spot on! It worked! Thanks a million.
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

Hansaplast

  • Hero Member
  • *****
  • Posts: 674
  • Tweaking4All.com
    • Tweaking4All
Re: VirtualTreeView 4.8.6 released
« Reply #28 on: January 14, 2011, 05:54:02 am »
Tried installing the latest version but it seems to be missing "vtgraphicsi.inc" (searching the archive, I did find it for several other widgetsets, but not for Carbon).

Tried latest stable and latest version from http://wiki.lazarus.freepascal.org/VirtualTreeview
v4.8.6-R1. Picked up lclextensions from svn. Lazarus 0.9.31, build 2011-01-08, MacOS X v10.6.6, XCode 3.2.5.

Did I just try incomplete versions or is this (because it was not tested on Carbon) simply a bug?
I'd love to see VirtualTreeView working on Carbon :)

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: VirtualTreeView 4.8.6 released
« Reply #29 on: January 14, 2011, 04:20:59 pm »
Did I just try incomplete versions or is this (because it was not tested on Carbon) simply a bug?

File a bug report under Lazarus CCR in Mantis.

It was probably never tested on Carbon. Cross-platform frameworks are a sweet idea, but in practice it's still necessary to actually test Lazarus packages on at least the 3 major widgetsets (Win32, Carbon, GTK2). Otherwise, the package is only cross-platform in theory.

Thanks.

-Phil

 

TinyPortal © 2005-2018