<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.mediamonkey.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Sample_TreeList_listview_script</id>
	<title>Sample TreeList listview script - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.mediamonkey.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Sample_TreeList_listview_script"/>
	<link rel="alternate" type="text/html" href="https://www.mediamonkey.com/wiki/index.php?title=Sample_TreeList_listview_script&amp;action=history"/>
	<updated>2026-05-03T15:45:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.4</generator>
	<entry>
		<id>https://www.mediamonkey.com/wiki/index.php?title=Sample_TreeList_listview_script&amp;diff=4764&amp;oldid=prev</id>
		<title>Jiri at 22:36, 2 January 2009</title>
		<link rel="alternate" type="text/html" href="https://www.mediamonkey.com/wiki/index.php?title=Sample_TreeList_listview_script&amp;diff=4764&amp;oldid=prev"/>
		<updated>2009-01-02T22:36:15Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
&amp;#039; This scripts shows how to use SDBUITreeList control to show and control a grid-like list of items. &lt;br /&gt;
&lt;br /&gt;
Dim lbl, VT&lt;br /&gt;
&lt;br /&gt;
Sub OnStartUp()&lt;br /&gt;
  Dim Form&lt;br /&gt;
&lt;br /&gt;
  Set Form = SDB.UI.NewForm&lt;br /&gt;
  Form.Common.SetRect 100, 100, 500, 440&lt;br /&gt;
  Form.BorderStyle = 3&lt;br /&gt;
  Form.FormPosition = 4&lt;br /&gt;
  Form.StayOnTop = True&lt;br /&gt;
  Form.Caption = &amp;quot;Test&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  Set lbl = SDB.UI.NewLabel(Form)&lt;br /&gt;
  lbl.Common.SetRect 10, 10, 400, 15&lt;br /&gt;
&lt;br /&gt;
  Set VT = SDB.UI.NewTreeList(Form)&lt;br /&gt;
  VT.Common.SetRect 10, 30, 400, 300&lt;br /&gt;
  VT.HeaderVisible = true&lt;br /&gt;
  VT.HeaderAddColumn &amp;quot;Title&amp;quot;&lt;br /&gt;
  VT.HeaderAddColumn &amp;quot;Column 2&amp;quot;&lt;br /&gt;
  VT.HeaderAddColumn &amp;quot;Column 3&amp;quot;&lt;br /&gt;
  VT.HeaderColumnWidth(0) = 150&lt;br /&gt;
  VT.HeaderColumnWidth(1) = 120&lt;br /&gt;
  VT.HeaderColumnWidth(2) = 120&lt;br /&gt;
  VT.RootNodeCount = 10&lt;br /&gt;
  VT.ShowTreeLines = false&lt;br /&gt;
  VT.Indent = 0&lt;br /&gt;
  VT.FullRowSelect = true&lt;br /&gt;
  VT.ExtendedFocus = true&lt;br /&gt;
  VT.MultiSelect = true&lt;br /&gt;
  VT.GridExtensions = true&lt;br /&gt;
  VT.ShowRoot = false&lt;br /&gt;
  Script.RegisterEvent VT, &amp;quot;OnFocusChanged&amp;quot;, &amp;quot;VTFocusChanged&amp;quot;&lt;br /&gt;
  Script.RegisterEvent VT, &amp;quot;OnGetText&amp;quot;, &amp;quot;VTGetText&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  Form.Common.Visible = True&lt;br /&gt;
&lt;br /&gt;
  SDB.Objects(&amp;quot;Form&amp;quot;) = Form&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
Sub VTFocusChanged( Node, Column)&lt;br /&gt;
  lbl.Caption = Node.Index &amp;amp; &amp;quot; - &amp;quot; &amp;amp; Column&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
Function VTGetText( Node, Column)&lt;br /&gt;
  If Column=0 Then&lt;br /&gt;
    VTGetText = &amp;quot;Node index: &amp;quot; &amp;amp; node.index&lt;br /&gt;
  Else&lt;br /&gt;
    VTGetText = &amp;quot;Column &amp;quot; &amp;amp; Column&lt;br /&gt;
  End If&lt;br /&gt;
End Function&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jiri</name></author>
	</entry>
</feed>