<?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 : Buton üzerinden parametreli fonksiyon çağırmak</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : Buton üzerinden parametreli fonksiyon çağırmak]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 14:39:06 +0000</pubDate>
  <lastBuildDate>Tue, 11 Jun 2024 17:52:28 +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=609</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[Buton üzerinden parametreli fonksiyon çağırmak : Olumlu, te&#351;ekk&#252;rler. ]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=609&amp;PID=879#879</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=162">merenefe</a><br /><strong>Konu:</strong> 609<br /><strong>Gönderim Zamanı:</strong> 11&nbsp;Haziran&nbsp;2024 Saat 17:52<br /><br />Olumlu, teşekkürler.]]>
   </description>
   <pubDate>Tue, 11 Jun 2024 17:52:28 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=609&amp;PID=879#879</guid>
  </item> 
  <item>
   <title><![CDATA[Buton üzerinden parametreli fonksiyon çağırmak : Merhaba Eren,A&#351;a&#287;&#305;daki &#246;rnekte...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=609&amp;PID=867#867</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=132">Atiker01</a><br /><strong>Konu:</strong> 609<br /><strong>Gönderim Zamanı:</strong> 11&nbsp;Haziran&nbsp;2024 Saat 11:26<br /><br />Merhaba Eren,<div><br></div><div>Aşağıdaki örnekte yer alan kodlamada butonlar dinamik oluşturuluyor. Butonların hint özelliğinin içerisine butonların id'si yazılıyor. Butonlara tek bir click void atanıyor. Void içerisinde hint değerine bakılarak hangi butonun tıklandığı belirleniyor.</div><div><br></div><div><div>Var&nbsp;&nbsp;</div><div>&nbsp;MyForm:TclForm;</div><div>&nbsp;testPanel : TclProPanel;</div><div>&nbsp;testBtn : TClProButton;</div><div>&nbsp;i : Integer;</div><div><br></div><div>&nbsp;void BtnOnClick;&nbsp;</div><div>&nbsp;var</div><div>&nbsp; &nbsp;clickedBtn:TClProButton;</div><div>&nbsp;{</div><div>&nbsp;clickedBtn = TClProButton(Myform.Clsender);&nbsp;</div><div>&nbsp;ShowMessage(clickedBtn.Caption); //TClProButton(Myform.Clsender).Caption</div><div>&nbsp;ShowMessage(clickedBtn.Hint);</div><div>&nbsp;clickedBtn.Caption = '+++';</div><div><br></div><div>&nbsp;}</div><div><br></div><div>{</div><div>&nbsp;MyForm=TclForm.Create(self);</div><div>&nbsp;testPanel=MyForm.AddNewProPanel(MyForm,'testPanel');</div><div>&nbsp;clComponent.SetupComponent(testPanel,'{"Align" : "Center","Width" :200,&nbsp;</div><div>"Height":300,"RoundHeight":10,"RoundWidth":10,"BorderColor":"#3a32a8","BorderWidth":2}');</div><div><br></div><div>&nbsp;for (i = 0 to 4)</div><div>&nbsp;{</div><div>&nbsp;testBtn = MyForm.AddNewProButton(testPanel,'testBtn'+IntToStr(i+1),'');</div><div>clComponent.SetupComponent(testBtn,'{"caption":"testBtn'+IntToStr(i+1)+'","Align" : "Top","MarginTop":5,"MarginLeft":5,"MarginRight":5,</div><div>&nbsp;"Height":50}');</div><div>MyForm.SetImage(testBtn,'<a href="https://clomosy.com/demos/foodIn&#102;ormati&#111;nBox.png" target="_blank" rel="nofollow">https://clomosy.com/demos/foodInformationBox.png</a>');&nbsp;</div><div><br></div><div>&nbsp;testBtn.Hint = 'Document '+IntToStr(i);</div><div>&nbsp;MyForm.AddNewEvent(testBtn,tbeOnClick,'BtnOnClick');</div><div>&nbsp;}</div><div><br></div><div>&nbsp;MyForm.Run;</div><div>}</div></div><div><br></div><div>iyi çalışmalar.</div>]]>
   </description>
   <pubDate>Tue, 11 Jun 2024 11:26:07 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=609&amp;PID=867#867</guid>
  </item> 
  <item>
   <title><![CDATA[Buton üzerinden parametreli fonksiyon çağırmak : &#304;yi g&#252;nler,A&#351;a&#287;&#305;daki kod &#246;rneklerinde...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=609&amp;PID=862#862</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=162">merenefe</a><br /><strong>Konu:</strong> 609<br /><strong>Gönderim Zamanı:</strong> 09&nbsp;Haziran&nbsp;2024 Saat 19:34<br /><br />İyi günler,<div><br></div><div>Aşağıdaki kod örneklerinde de görüldüğü üzere veritabanımdan gelen kullanıcıların her birisi için bir buton oluşturdum ve id değerlerine göre ilgili fonksiyona parametre göndererek işlem yapmak istiyorum. Fakat buton'un event kodlarında fonksiyon çalıştırabilirken parametreli fonksiyonu nasıl çalıştırabileceğimi (veya böyle bir özellik mevcut mu?) bilmiyorum. Bu durum için ,alternatif bir yol da mevcut ise, çözümünüzü bekliyorum.&nbsp;</div><div><br></div><div><div><font face="Times New Roman, Times, serif" size="3">void TestFunc(idTest : Integer){</font></div><div><font face="Times New Roman, Times, serif" size="3">&nbsp; ShowMessage(idTest);</font></div><div><font face="Times New Roman, Times, serif" size="3">}</font></div><div><font face="Times New Roman, Times, serif" size="3"><br></font></div><div><font face="Times New Roman, Times, serif" size="3">void GetUsernamesToListView</font></div><div><font face="Times New Roman, Times, serif" size="3">{</font></div><div><font face="Times New Roman, Times, serif" size="3">&nbsp; try</font></div><div><font face="Times New Roman, Times, serif" size="3">&nbsp; &nbsp; selectQuery.SQL.Text = 'SELECT id,username from users';</font></div><div><font face="Times New Roman, Times, serif" size="3">&nbsp; &nbsp; selectQuery.Open;</font></div><div><font face="Times New Roman, Times, serif" size="3">&nbsp; &nbsp; if (selectQuery.Found)</font></div><div><font face="Times New Roman, Times, serif" size="3">&nbsp; &nbsp; {</font></div><div><font face="Times New Roman, Times, serif" size="3">&nbsp; &nbsp; &nbsp; &nbsp;while (not selectQuery.Eof)</font></div><div><font face="Times New Roman, Times, serif" size="3">&nbsp; &nbsp; &nbsp; &nbsp;{</font></div><div><font face="Times New Roman, Times, serif" size="3">&nbsp; &nbsp; &nbsp; &nbsp;btnUser = MyForm.AddNewButton(vertScrollBox,'btnUser'+selectQuery.FieldByName('id').AsString, selectQuery.FieldByName('username').AsString);</font></div><div><font face="Times New Roman, Times, serif" size="3">&nbsp; &nbsp; &nbsp; &nbsp;MyForm.AddNewEvent(btnUser,tbeOnClick,'TestFunc(4)');</font></div><div><font face="Times New Roman, Times, serif" size="3">&nbsp; &nbsp; &nbsp; &nbsp;btnUser.Align = alMostTop;</font></div><div><font face="Times New Roman, Times, serif" size="3">&nbsp; &nbsp; &nbsp; selectQuery.Next;</font></div><div><font face="Times New Roman, Times, serif" size="3">&nbsp; &nbsp; &nbsp; &nbsp;}</font></div><div><font face="Times New Roman, Times, serif" size="3">&nbsp; &nbsp; }</font></div><div><font face="Times New Roman, Times, serif" size="3">&nbsp; &nbsp; else</font></div><div><font face="Times New Roman, Times, serif" size="3">&nbsp; &nbsp; {</font></div><div><font face="Times New Roman, Times, serif" size="3">&nbsp; &nbsp; &nbsp; ShowMessage('Kayıt bulunamadı!');</font></div><div><font face="Times New Roman, Times, serif" size="3">&nbsp; &nbsp; }</font></div><div><font face="Times New Roman, Times, serif" size="3">&nbsp; finally</font></div><div><font face="Times New Roman, Times, serif" size="3">&nbsp; }</font></div><div><font face="Times New Roman, Times, serif" size="3">}</font></div></div><div><br></div><div>Teşekkürler.</div>]]>
   </description>
   <pubDate>Sun, 09 Jun 2024 19:34:14 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=609&amp;PID=862#862</guid>
  </item> 
 </channel>
</rss>