<?xml version="1.0" encoding="iso-8859-9" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwizguide.com/rss_namespace/">
 <channel>
  <title>Datakent Forum : TreeView ile kendi ağaç yapınızı nasıl oluşturursu</title>
  <link>http://forum.datakent.com/</link>
  <description>XML içerik linki; Datakent Forum : Borland Delphi : TreeView ile kendi ağaç yapınızı nasıl oluşturursu</description>
  <pubDate>Fri, 01 May 2026 05:47:21 +0000</pubDate>
  <lastBuildDate>Mon, 06 Dec 2010 11:00:24 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.54</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.datakent.com/RSS_post_feed.asp?TID=2013</WebWizForums:feedURL>
  <image>
   <title>Datakent Forum</title>
   <url>http://forum.datakent.com/forum_images/datakent.com_forums.png</url>
   <link>http://forum.datakent.com/</link>
  </image>
  <item>
   <title>TreeView ile kendi ağaç yapınızı nasıl oluşturursu : G&#252;zel payla&#351;&#305;m </title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=2013&amp;PID=4434#4434</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=3122" rel="nofollow">turknetyazilim</a><br /><strong>Konu:</strong> 2013<br /><strong>Gönderim Zamanı:</strong> 06.Aralik.2010 Saat 11:00<br /><br /><P>Güzel paylaşım </P>]]>
   </description>
   <pubDate>Mon, 06 Dec 2010 11:00:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=2013&amp;PID=4434#4434</guid>
  </item> 
  <item>
   <title>TreeView ile kendi ağaç yapınızı nasıl oluşturursu : (*By MTsonsuza kayan a&#287;a&#231; liste...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=2013&amp;PID=4426#4426</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=1" rel="nofollow">murat turan</a><br /><strong>Konu:</strong> 2013<br /><strong>Gönderim Zamanı:</strong> 02.Aralik.2010 Saat 09:56<br /><br /><P>(*<BR>By MT<BR>sonsuza kayan ağaç liste yapısı<BR>TreeView ile kendi ağaç yapınızı nasıl oluşturursunuz?<BR>SRID -1 olanlar master kayıt.<BR>ve kayıtlar nesneye eklenirken kayıtların ID si nesnenin ImageIndex özeliğine yazılıyor.<BR>nesneye Object tipinde bir tür de eklenebiliyor fakat listede resim kullanmayacaksanız<BR>ImageIndex özelliğini Tag gibi kullanabilirsiniz.</P><DIV>alanlar:<BR>MRID&nbsp;&nbsp;&nbsp; INT<BR>SRID&nbsp;&nbsp;&nbsp; INT&nbsp;&nbsp; <BR>VLE&nbsp;&nbsp;&nbsp;&nbsp; STRING</DIV><P>ana kayıtları için bir query: <BR>Name: sql_tree<BR>SQL.Text: Select * From ttree Where SRID = -1</P><P>kayıt kontrol için bir query:<BR>Name: sql_tree_cnt<BR>SQL.Text : Select Count(MRID) AS RCX From ttree Where SRID = :ID<BR>*)</P><P>procedure TForm4.Button1Click(Sender: TObject);<BR>&nbsp; procedure AddSubTree(var _master:TTreeNode;ID:Integer);<BR>&nbsp; var<BR>&nbsp;&nbsp; rcx:Integer;<BR>&nbsp;&nbsp; tnx:TTreeNode;<BR>&nbsp; begin<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sql_tree_cnt.Close;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sql_tree_cnt.Params.ParamByName('ID').AsInteger := ID;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sql_tree_cnt.Open;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rcx := sql_tree_cntRCX.Value;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sql_tree_cnt.Close;</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if rcx&nbsp; &gt; 0 then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; begin</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; with TQuery.Create(nil) do<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; begin<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DatabaseName := 'C:\tmp';<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SQL.Text :='Select MRID, VLE From ttree Where SRID = ' + IntToStr(ID);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Open;</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; while not (Eof) do<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; begin<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tnx := TreeView1.Items.AddChild(_master, Fields.FieldByNumber(2).AsString);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tnx.ImageIndex := Fields.FieldByNumber(1).AsInteger;</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AddSubTree(tnx, Fields.FieldByNumber(1).AsInteger);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Close;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Free;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end;</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end;<BR>&nbsp; end;<BR>var<BR>&nbsp;tmx:TTreeNode;<BR>begin<BR>&nbsp;TreeView1.Items.Clear;</P><P>&nbsp;sql_tree.Open;<BR>&nbsp;if sql_tree.RecordCount &gt; 0 then<BR>&nbsp;begin<BR>&nbsp; while not (sql_tree.Eof) do<BR>&nbsp; begin<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tmx := TreeView1.Items.Add(nil, sql_treeVLE.Value);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tmx.ImageIndex := sql_treeMRID.Value;</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AddSubTree(tmx, sql_treeMRID.Value);<BR>&nbsp;&nbsp;&nbsp;&nbsp; sql_tree.Next;<BR>&nbsp; end;<BR>&nbsp;end;<BR>&nbsp;sql_tree.Close;</P><P>end;</P><P>procedure TForm4.TreeView1Click(Sender: TObject);<BR>begin<BR>&nbsp;lblText.Caption := TreeView1.Selected.Text;<BR>&nbsp;lblID.Caption&nbsp;&nbsp; := IntToStr( TreeView1.Selected.ImageIndex );<BR>end;</P><DIV></DIV><DIV></DIV><DIV></DIV>örnek görüntüler:<DIV><img src="http://forum.datakent.com/images/TTreeView_Ornek_1.JPG" height="386" width="271" border="0" /></DIV><DIV>&nbsp;</DIV><DIV><img src="http://forum.datakent.com/images/TTreeView_Ornek_2.JPG" height="313" width="328" border="0" /></DIV><span style="font-size:10px"><br /><br />Düzenleyen murat turan - 02.Aralik.2010 Saat 10:01</span>]]>
   </description>
   <pubDate>Thu, 02 Dec 2010 09:56:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=2013&amp;PID=4426#4426</guid>
  </item> 
 </channel>
</rss>