Recent

Author Topic: VirtualTree 4.8.6 compile error, Laz 0.9.29  (Read 3981 times)

cody

  • New member
  • *
  • Posts: 9
VirtualTree 4.8.6 compile error, Laz 0.9.29
« on: May 21, 2010, 10:23:53 am »
Lazarus Version: #0.9.29
FPC: 2.5.1
SVN: 25556
win32

Machine: Windows Vista, Service Pack 2.

Package was not compiled and installed unless I commented out the following lines in procedure
TBaseVirtualTree.WMContextMenu, VirtualTrees unit,  (at line ~ 15240):

Code: [Select]
procedure TBaseVirtualTree.WMContextMenu(var Message: TLMContextMenu);

// This method is called when a popup menu is about to be displayed.
// We have to cancel some pending states here to avoid interferences.

begin
  {$ifdef DEBUG_VTV}Logger.EnterMethod([lcMessages],'WMContextMenu');{$endif}
  DoStateChange([], [tsClearPending, tsEditPending, tsOLEDragPending, tsVCLDragPending]);

  //if not (tsPopupMenuShown in FStates) then
    //inherited WMContextMenu(Message);
  {$ifdef DEBUG_VTV}Logger.ExitMethod([lcMessages],'WMContextMenu');{$endif}
end; 

Commented out:
Code: [Select]
//if not (tsPopupMenuShown in FStates) then
    //inherited WMContextMenu(Message);

Please anyone, How critical is this? How it can be fixed?

Thanks




JD

  • Hero Member
  • *****
  • Posts: 1848
Re: VirtualTree 4.8.6 compile error, Laz 0.9.29
« Reply #1 on: May 21, 2010, 12:21:13 pm »
I had the same problem & I was advised to do the following


Comment out the following line of VirtualTrees.pas
Code: [Select]
  TLMContextMenu = TLMMouse;

After I did that, it worked!  :D
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

 

TinyPortal © 2005-2018