<?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="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Clomosy | Forum : Kod tekrarları hk.</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : Kod tekrarları hk.]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 16:13:20 +0000</pubDate>
  <lastBuildDate>Thu, 11 Jul 2024 10:20:27 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.clomosy.com.tr/RSS_post_feed.asp?TID=637</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Clomosy | Forum]]></title>
   <url>https://forum.clomosy.com.tr/forum_images/logo.png</url>
   <link>https://forum.clomosy.com.tr/</link>
  </image>
  <item>
   <title><![CDATA[Kod tekrarları hk. : Merhaba Seyit,Bahsetmi&#351; oldu&#287;un...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=637&amp;PID=946#946</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=132">Atiker01</a><br /><strong>Konu:</strong> 637<br /><strong>Gönderim Zamanı:</strong> 11&nbsp;Temmuz&nbsp;2024 Saat 10:20<br /><br />Merhaba Seyit,<div><br></div><div>Bahsetmiş olduğun uygulama üzerinde kod tekrarını önlemek için bir procedure veya fonksiyon oluşturarak tekrarı önleyebilirsin ya da <i>setupComponent </i>yerine&nbsp;<i>clProSettings&nbsp;</i>özelliğini kullanarak yapabilirsin. Aşağıda her iki kullanım mevcuttur.</div><div><br></div><div>Örnek kullanım 1:</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>Var&nbsp; &nbsp;</div><div>&nbsp; &nbsp;MyForm:TclForm;</div><div>&nbsp; &nbsp;showFileBtn,updateFileBtn : TClProButton;</div><div>&nbsp;</div><div>&nbsp;void componentSettings(Tbutton: TclProButton);</div><div>{</div><div>&nbsp;clComponent.SetupComponent(Tbutton,'{"Align" : "Center","BorderColor":"#652020","RoundHeight":10,</div><div>&nbsp; "RoundWidth":10,"Width" :150,"BorderWidth":2}');</div><div>}</div><div><br></div><div>&nbsp;</div><div>&nbsp;{</div><div>&nbsp; MyForm = TclForm.Create(Self);</div><div>&nbsp; showFileBtn = MyForm.AddNewProButton(MyForm,'showFileBtn','Dosya içeriğini görüntüle');</div><div>&nbsp; componentSettings(showFileBtn);</div><div>&nbsp; updateFileBtn = MyForm.AddNewProButton(MyForm,'updateFileBtn','Dosya içeriğini güncelle');</div><div>&nbsp; componentSettings(updateFileBtn);</div><div>&nbsp; updateFileBtn.Margins.Left = 500;</div><div>&nbsp; MyForm.Run;</div><div>&nbsp;</div><div>&nbsp;}</div></div><div></pre></td></tr></table></div><div><br></div><div><div>Örnek kullanım 2:</div><div><table width="99%"><tr><td><pre class="BBcode">&nbsp;</div><div><div>&nbsp;Var&nbsp; &nbsp;</div><div>&nbsp; &nbsp;MyForm:TclForm;</div><div>&nbsp; &nbsp;showFileBtn,updateFileBtn : TClProButton;</div><div>&nbsp;</div><div>&nbsp;{</div><div>&nbsp; MyForm = TclForm.Create(Self);</div><div>&nbsp; showFileBtn = MyForm.AddNewProButton(MyForm,'showFileBtn','Dosya içeriğini görüntüle');</div><div>&nbsp; showFileBtn.Align = alCenter;</div><div>&nbsp; showFileBtn.Width = 150;</div><div>&nbsp; showFileBtn.clProSettings.BorderColor = clAlphaColor.clHexToColor('#652020');</div><div>&nbsp; showFileBtn.clProSettings.RoundHeight = 10;</div><div>&nbsp; showFileBtn.clProSettings.RoundWidth = 10;</div><div>&nbsp; showFileBtn.clProSettings.BorderWidth = 2;</div><div>&nbsp; showFileBtn.SetclProSettings(showFileBtn.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; updateFileBtn = MyForm.AddNewProButton(MyForm,'updateFileBtn','Dosya içeriğini güncelle');</div><div>&nbsp; updateFileBtn.Align = alCenter;</div><div>&nbsp; updateFileBtn.Width = 150;</div><div>&nbsp; updateFileBtn.Margins.Left = 500;</div><div>&nbsp; updateFileBtn.SetclProSettings(showFileBtn.clProSettings);</div><div>&nbsp; MyForm.Run;</div><div>&nbsp;</div><div>&nbsp;}</div></div><div></pre></td></tr></table></div></div><div><br></div><div>Bunun dışında kod tekrarı yaşadığın verileri bir string değişkenine atayarak da kullanımını sağlayabilirsin.</div><div><br></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Thu, 11 Jul 2024 10:20:27 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=637&amp;PID=946#946</guid>
  </item> 
  <item>
   <title><![CDATA[Kod tekrarları hk. :  Resimde g&#246;r&#252;ld&#252;&#287;&#252; gibi tasar&#305;m...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=637&amp;PID=936#936</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=186">Seyit</a><br /><strong>Konu:</strong> 637<br /><strong>Gönderim Zamanı:</strong> 10&nbsp;Temmuz&nbsp;2024 Saat 17:53<br /><br /><img src="uploads/186/kod_tekrar_2024-07-10_17-46-27.png" height="565" width="1049" border="0" /><div><br></div><div>Resimde görüldüğü gibi tasarım yaparken bazı komponentlere aynı özellikleri giriyorum ve bu da kod tekrarları oluşturmaya başladı. Ayrıca sonradan özelliklerin değerlerini değiştirmeye çalıştığımda teker teker değiştirmek zorunda kalıyorum. Resimde tekrar eden özellikleri bir fonksiyonda tanımlasak sonra da o fonksiyonu resimde görüldüğü gibi SetupComponent içerisinde çağırabilir miyiz?</div>]]>
   </description>
   <pubDate>Wed, 10 Jul 2024 17:53:27 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=637&amp;PID=936#936</guid>
  </item> 
 </channel>
</rss>