Re: [Lazarus] TTreenode.data

2013-09-12 Thread Juha Manninen
On Fri, Sep 13, 2013 at 8:48 AM, Richard Mace wrote: > And I am now getting an exception when my app run? Use debugger to see what goes wrong. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/ma

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 ' + IntToStr(PtrInt(N

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

2013-09-12 Thread wkitty42
On Thursday, September 12, 2013 11:36 AM, Jürgen Hestermann 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 ever reach the value -

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

2013-09-12 Thread Frederic Da Vitoria
2013/9/12 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: > -

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. telemetry

[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 Lazarus@lists.lazarus.f

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: - fu

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 wrote: Lazarus 1.1 r42442M FPC 2.6.2 i386-linux-gtk 2 When opening a package, the window remains behind the Lazarus.

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

2013-09-12 Thread Frederic Da Vitoria
2013/9/12 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 AbsoluteI

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 signe

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

2013-09-12 Thread Frederic Da Vitoria
2013/9/11 Jürgen Hestermann > On > http://wiki.freepascal.org/**VirtualTreeview_Example_for_**Lazarus > there is the following example procedure: > > --**-- > procedure TForm1.Button1Click(