[Lazarus] TVirtualStringView (new trunk) and issues with items display

Peter Williams pewilliams2010 at live.com
Fri Mar 25 21:19:00 CET 2011


Hi Ido,

From: idokan at gmail.com
Date: Fri, 25 Mar 2011 21:49:02 +0200
To: lazarus at lists.lazarus.freepascal.org
Subject: [Lazarus] TVirtualStringView (new trunk) and issues with items	display

>Hello,

>I have created the demo of TVirtualStringView from the wiki (with few changes), and when I compile it, it just display the first char of the caption of each item, rather then the whole string.



>By Using gdb, I found out that on the TVirtualStringView side, the FOnGetText(Self, Node, Column, TextType, Text); line (VirtualTres.pas, line 31376) have only one char, while on the original code it does have the full string.



>I tried to convert the string (It's only ascii a-z0-9) to UTF-8 thinking that's the problem, but it is not.

>I'm using Lazarus 0.9.31 r30000M FPC 2.5.1 x86_64-linux-gtk 2

>Is there a bug in the new component, or am I doing something wrong ?




I just tried to install VirtualTreeView for the first time and I get these warnings and 1 error:

/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(344,10) Warning: Function result does not seem to be set
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(307,29) Hint: Parameter "hwnd" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(307,40) Hint: Parameter "pDropTarget" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(350,10) Warning: Function result does not seem to be set
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(309,27) Hint: Parameter "hwnd" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(356,10) Warning: Function result does not seem to be set
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(311,23) Hint: Parameter "pDataObj" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(311,45) Hint: Parameter "pDropSource" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(311,70) Hint: Parameter "dwOKEffects" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(311,89) Hint: Parameter "pdwEffect" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(363,10) Warning: Function result does not seem to be set
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(313,26) Hint: Parameter "pvReserved" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(317,30) Hint: Parameter "_para1" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(381,10) Warning: Function result does not seem to be set
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(319,28) Hint: Parameter "pDataObj" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(387,10) Warning: Function result does not seem to be set
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(321,32) Hint: Parameter "ppDataObj" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(393,10) Warning: Function result does not seem to be set
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(399,10) Warning: Function result does not seem to be set
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(325,34) Hint: Parameter "pDataObj" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(405,10) Warning: Function result does not seem to be set
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(327,34) Hint: Parameter "hGlobal" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(327,51) Hint: Parameter "fDeleteOnRelease" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(327,77) Hint: Parameter "stm" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(412,10) Warning: Function result does not seem to be set
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(329,35) Hint: Parameter "_para1" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(329,50) Hint: Parameter "_para2" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(329,67) Hint: Parameter "_para3" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(329,86) Hint: Parameter "_para4" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/dummyactivex.inc(329,102) Hint: Parameter "_para5" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/gtk2/virtualpanningwindow.pas(21,21) Hint: Parameter "OwnerHandle" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/gtk2/virtualpanningwindow.pas(21,49) Hint: Parameter "Position" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/gtk2/virtualpanningwindow.pas(23,20) Hint: Parameter "ClipRegion" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/units/gtk2/virtualpanningwindow.pas(17,5) Note: Private field "TVirtualPanningWindow.FOwnerHandle" is never used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/include/intf/gtk2/vtgraphicsi.inc(17,3) Hint: Local absolutevar "SrcDC" is not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/include/intf/gtk2/vtgraphicsi.inc(19,3) Note: Local variable "SrcContext" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/VTGraphics.pas(21,22) Hint: Value parameter "Source" is assigned but never used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/VTGraphics.pas(23,28) Hint: Parameter "Bits" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/VTGraphics.pas(23,43) Hint: Parameter "Width" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/VTGraphics.pas(23,50) Hint: Parameter "Height" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/VTGraphics.pas(23,58) Hint: Parameter "Row" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/VTGraphics.pas(25,34) Hint: Parameter "Bitmap" not used
/home/peter/Public/Lazarus_source_code/VirtualTreeView/include/intf/gtk2/vtgraphicsi.inc(2,26) Hint: Unit "gtk2proc" not used in VTGraphics
/home/peter/Public/Lazarus_source_code/VirtualTreeView/VirtualTrees.pas(2481,56) Error: Identifier not found "TLMContextMenu"
/home/peter/Public/Lazarus_source_code/VirtualTreeView/VirtualTrees.pas(2458,15) Warning: An inherited method is hidden by "TBaseVirtualTree.SetVisible(PVirtualNode,Boolean);"
/home/peter/Public/Lazarus_source_code/VirtualTreeView/VirtualTrees.pas(2674,15) Warning: An inherited method is hidden by "TBaseVirtualTree.FontChanged(TObject);"
/home/peter/Public/Lazarus_source_code/VirtualTreeView/VirtualTrees.pas(3867,1) Fatal: There were 1 errors compiling module, stopping

VirtualTrees - line 2481
    procedure WMContextMenu(var Message: TLMContextMenu); message LM_CONTEXTMENU;

                                                                              ^^^^^^^^^^^
How did you get VirtualTrees.pas to compile???

Best Regards,
Peter / pew

>Thanks,

>Ido
>LINESIP - Opening the source for communication
>http://www.linesip.com
>http://www.linesip.co.il







--
_______________________________________________
Lazarus mailing list
Lazarus at lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110326/72a90ecc/attachment-0003.html>


More information about the Lazarus mailing list