Re: [Lazarus] TTreenode.data

2013-09-12 Thread Mattias Gaertner
On Thu, 12 Sep 2013 06:39:55 +0100 Richard Mace richard.m...@gmail.com wrote: [...] procedure TfrmMain.tvMainSelectionChanged(Sender: TObject); begin Sender is the tvMain. if Assigned(TTreeNode(Sender).Data) then ShowMessage('Node ' + IntToStr(TUser(TTreeNode(Sender).Data).Id));

Re: [Lazarus] VirtualTreeView, Absoluteindex example on freepascal.org

2013-09-12 Thread Frederic Da Vitoria
2013/9/11 Jürgen Hestermann juergen.hesterm...@gmx.de On http://wiki.freepascal.org/**VirtualTreeview_Example_for_**Lazarushttp://wiki.freepascal.org/VirtualTreeview_Example_for_Lazarus there is the following example procedure: --**-- procedure

Re: [Lazarus] VirtualTreeView, Absoluteindex example on freepascal.org

2013-09-12 Thread Jürgen Hestermann
Am 2013-09-12 14:50, schrieb Frederic Da Vitoria: Can someone explain what the line if VST.AbsoluteIndex(XNode) -1 then actually means? I didn't look at the code, but usually index = -1 means that the item was not found. So maybe AbsoluteIndex's result should actually be

Re: [Lazarus] VirtualTreeView, Absoluteindex example on freepascal.org

2013-09-12 Thread Frederic Da Vitoria
2013/9/12 Jürgen Hestermann juergen.hesterm...@gmx.de Am 2013-09-12 14:50, schrieb Frederic Da Vitoria: Can someone explain what the line if VST.AbsoluteIndex(XNode) -1 then actually means? I didn't look at the code, but usually index = -1 means that the item was not found. So

Re: [Lazarus] bug in open package file

2013-09-12 Thread Junior
@Mattias The bug came back again. Em 24-08-2013 19:40, Junior escreveu: test ok. Em 24-08-2013 15:50, Mattias Gaertner escreveu: On Fri, 23 Aug 2013 07:14:02 -0300 Junior lazarus.li...@gmail.com wrote: Lazarus 1.1 r42442M FPC 2.6.2 i386-linux-gtk 2 When opening a package, the window

Re: [Lazarus] VirtualTreeView, Absoluteindex example on freepascal.org

2013-09-12 Thread Jürgen Hestermann
Am 2013-09-12 17:51, schrieb Frederic Da Vitoria: My remarks only come from my memories of how VirtualTreeView worked with Delphi 6. The code has obviously much changed since. Are you sure? The function is quite simple: -

[Lazarus] Help needed for issue #20311: IDE always tailors Target processor options for Intel CPUs

2013-09-12 Thread Juha Manninen
I don't know which processor types are available for each CPU family. I would need help filling the selection lists. Please see details in : http://bugs.freepascal.org/view.php?id=20311 Regards, Juha -- ___ Lazarus mailing list

Re: [Lazarus] Help needed for issue #20311: IDE always tailors Target processor options for Intel CPUs

2013-09-12 Thread Mark Morgan Lloyd
Juha Manninen wrote: I don't know which processor types are available for each CPU family. I would need help filling the selection lists. Please see details in : http://bugs.freepascal.org/view.php?id=20311 What do you need for this: fpc -i output? -- Mark Morgan Lloyd markMLl .AT.

Re: [Lazarus] VirtualTreeView, Absoluteindex example on freepascal.org

2013-09-12 Thread Frederic Da Vitoria
2013/9/12 Jürgen Hestermann juergen.hesterm...@gmx.de Am 2013-09-12 17:51, schrieb Frederic Da Vitoria: My remarks only come from my memories of how VirtualTreeView worked with Delphi 6. The code has obviously much changed since. Are you sure? The function is quite simple:

Re: [Lazarus] VirtualTreeView, Absoluteindex example on freepascal.org

2013-09-12 Thread wkitty42
On Thursday, September 12, 2013 11:36 AM, Jürgen Hestermann juergen.hesterm...@gmx.de wrote: I didn't look at the code, but usually index = -1 means that the item was not found. So maybe AbsoluteIndex's result should actually be signed? And how would it

Re: [Lazarus] TTreenode.data

2013-09-12 Thread Richard Mace
OK, I now have this code: with tvMain.Items.AddChildObject(tvMain.Selected,IntToStr(fUserList.Items[I].Id),Pointer(fUserList.Items[I].Id)) do and this: procedure TfrmMain.tvMainChange(Sender: TObject; Node: TTreeNode); begin if Assigned(Node.Data) then ShowMessage('Node ' +