VirtualTree 4.8.6 compile error, Laz 0.9.29 lazarus / 31-LCL ---------------------------------------------------------------------- cody · 2010-05-21 08:23 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 · 2010-05-21 10:21 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!