Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-03

TVirtualStringView (new trunk) and issues with items display

7 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

ik

Hello,

I have created the demo of
TVirtualStringView<https://github.com/ik5/TVirtualTreeView-examples/tree/master/src/demo1>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 ?

Thanks,

Ido

LINESIP - Opening the source for communication
http://www.linesip.com
http://www.linesip.co.il
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110325/c2857d60/attachment.html>

Reply by email

Peter Williams
to ik

Hi Ido,

From:
Date: Fri, 25 Mar 2011 21:49:02 +0200
To:
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.
Show quoted text 5 lines
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

Show quoted text 6 lines
Thanks, Ido LINESIP - Opening the source for communication http://www.linesip.com http://www.linesip.co.il

Reply by email

ik
to Peter Williams

2011/3/25 Peter Williams

Show quoted text 135 lines
Hi Ido, ------------------------------ From: Date: Fri, 25 Mar 2011 21:49:02 +0200 To: Subject: [Lazarus] TVirtualStringView (new trunk) and issues with items display >Hello, >I have created the demo of TVirtualStringView<https://github.com/ik5/TVirtualTreeView-examples/tree/master/src/demo1>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???

There are two versions of Treeview for one is old, and require few changes to the package and source, and the other marked as "new trunk". You should use the new trank.

The one you use, you need another unit called VirtualTrees, and edit the source code to add the ability to see the editing item on the list (making the TEdit visible by size).

Best Regards, Peter / pew

Ido

Show quoted text 23 lines
>Thanks, >Ido >LINESIP - Opening the source for communication >http://www.linesip.com <http://www.linesip.com> >http://www.linesip.co.il <http://www.linesip.co.il> -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110325/667de9db/attachment.html>

Reply by email

Peter Williams
to ik

Hi Ido,

From:
Date: Fri, 25 Mar 2011 22:26:47 +0200
Subject: Re: [Lazarus] TVirtualStringView (new trunk) and issues with items display To:
CC:

2011/3/25 Peter Williams

Hi Ido,

From:
Date: Fri, 25 Mar 2011 21:49:02 +0200
To:

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.
Show quoted text 5 lines
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:

[snip]
/home/peter/Public/Lazarus_source_code/VirtualTreeView/VirtualTrees.pas(2481,56) Error: Identifier not found "TLMContextMenu" [snip]

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

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

There are two versions of Treeview for one is old, and require few changes to the package and source, and the other marked as "new trunk". You should use the new trank. [trunk]

I am using the new trunk version.

The one you use, you need another unit called VirtualTrees, and edit the source code to add the ability to see the editing item on the list (making the TEdit visible by size).

The error above is in the VirtualTrees unit. I don't understand what else you are referring to. I am trying to help you find you error, but I cannot get it to compile.

Best Regards, Peter / pew
Ido
Thanks, Ido
LINESIP - Opening the source for communication http://www.linesip.com http://www.linesip.co.il

Reply by email

Luiz Americo Pereira Camara
to ik: I have created the demo of TVirtualStringView<https://github.com/ik5/TVirtualTreeView-exam…
ik wrote 8 lines
Hello, I have created the demo of TVirtualStringView <https://github.com/ik5/TVirtualTreeView-examples/tree/master/src/demo1> 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.

You should use the 4.8.7 version:
http://forum.lazarus.freepascal.org/index.php?topic=12172.0;topicseen

It's know to run properly in lazarus 0.9.30+.

If you find some bug please report

Luiz

Reply by email

Hans-Peter Diettrich
to ik: I have created the demo of TVirtualStringView<https://github.com/ik5/TVirtualTreeView-exam…
I have created the demo of TVirtualStringView <https://github.com/ik5/TVirtualTreeView-examples/tree/master/src/demo1> 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.

I remember exactly that behaviour with Delphi, too. There seems to be a bug in the code, that may be fixed in a newer version.

DoDi

Reply by email