An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160127/24a663eb/attachment.html>
Mailing lists / lazarus / 2016-01
Treeview example(s) needed
8 messages · 4 people · –
- MMattias Gaertner 3
- JJoe Shepherd 2
- MMarc Santhoff 2
- VVincent Snijders 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Joe Shepherd wroteObvioiusly I'm missing a lot but I cannot find any example to dispel the fog. Anyone got one?
Not really. Some information can be found there:
http://wiki.lazarus.freepascal.org/XML_Tutorial#Populating_a_TreeView_with_XML
But I cannot say if that helps you. The main page in the wiki is this one:
http://wiki.lazarus.freepascal.org/VirtualTreeview
and it shows the way to get a help file:
http://wiki.lazarus.freepascal.org/VirtualTreeview#Help
Have fun,
Marc
An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/laz…
2016-01-27 6:01 GMT+01:00 Joe Shepherd :
Show quoted text 7 lines
The lazarus source contains a treeview example:
http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/examples/treeview/?root=lazarus
Vincent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160127/154bced2/attachment-0001.html>
Not really. Some information can be found there:…
Show quoted text 13 lines
VirtualTreeView TTreeView
Mattias
An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/laz…
Show quoted text 8 lines
Clicking on nodes should not create AV, unless you have some more code than just the above 5 lines.
The method GetLevel is not called by the LCL, so I guess you use it somewhere.
Use the debugger to create a backtrace of the AV to find out what causes the AV.
Mattias
On Wed, 27 Jan 2016 09:16:12 +0100 VirtualTreeView TTreeView Mattias
Mattias Gaertner wrote 9 lines
Oops, I see. At least I've learned something today.
Marc
2016-01-27 6:01 GMT+01:00 Joe Shepherd : The lazarus source contains a treeview example:…
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160128/8cd1d10b/attachment-0001.html>
Thanks, but that's hardly the way (with standalone buttons) anyone would use a treeview.
It demonstrates adding, deleting and selecting nodes.
Surely the TV's own events (onClick, onChange...) are preferable?
Do you mean you search general examples/documentation for the TV's events like? Or do you need some help with specific events?
Apart from some terse words about lack of information on StackExchange, I see nothing on-line about them
Several examples use TTreeView. Use 'Find in Files' to search for 'TTreeView' in the 'lazarus/examples' directory.
For instance xmlreader/testxmlreder.lpi
Mattias
