<?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 : TclTimer</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : TclTimer]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 01 May 2026 19:22:38 +0000</pubDate>
  <lastBuildDate>Thu, 16 May 2024 13:13:05 +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=592</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[TclTimer : Kodunuzu inceledi&#287;imde 2. timer...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=592&amp;PID=819#819</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=165">cagataycantay</a><br /><strong>Konu:</strong> 592<br /><strong>Gönderim Zamanı:</strong> 16&nbsp;Mayıs&nbsp;2024 Saat 13:13<br /><br />Kodunuzu incelediğimde 2. timer a gerek olmadığından dolayı onu kaldırdım, diğer kullanacağımız timer ı buton un event inde true yaparak butona basıldığında başlamasını sağladım.&nbsp;<div><br></div><div>Düzenlenmiş Hali:</div><div><br></div><div><div>Var</div><div>&nbsp; AnaForm:TclForm;</div><div>&nbsp; btn1 : TClProButton;</div><div>&nbsp; sayac:Integer;</div><div>&nbsp;&nbsp;</div><div>&nbsp; zaman:TCLTimer;</div><div>&nbsp; sayac1:Integer;</div><div>&nbsp; lblTimer: TCLLabel;</div><div>&nbsp;&nbsp;</div><div>&nbsp; testImg: TCLImage;&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>void zamanlayici;</div><div>{</div><div>&nbsp; if(sayac == sayac)</div><div>&nbsp; {</div><div>&nbsp; sayac = sayac + 1;</div><div>&nbsp; zaman.Enabled = True;&nbsp; &nbsp; //Timerı butona basıldığında başlatıyoruz.&nbsp;&nbsp;</div><div>&nbsp; btn1.Text = IntToStr(sayac);</div><div>&nbsp;&nbsp;</div><div>&nbsp; if(sayac == 25)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; AnaForm.SetFormColor('#23c7c5','',clGNone);</div><div>&nbsp; &nbsp; sayac1 = sayac1 + 3;</div><div>&nbsp; &nbsp; btn1.Position.X = Abs((Random() * AnaForm.clWidth) - btn1.Width);</div><div>&nbsp; &nbsp; btn1.Position.Y = Abs((Random() * AnaForm.clHeight) - btn1.Height);</div><div>&nbsp; &nbsp; testImg.Position.X = Abs((Random() * AnaForm.clWidth) - testImg.Width);</div><div>&nbsp; &nbsp; testImg.Position.Y = Abs((Random() * AnaForm.clHeight) - testImg.Height);</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if(sayac == 72)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; AnaForm.SetFormColor('#e01f1f','',clGNone);</div><div>&nbsp; &nbsp; sayac1 = sayac1 + 5;</div><div>&nbsp; &nbsp; btn1.Position.X = Abs((Random() * AnaForm.clWidth) - btn1.Width);</div><div>&nbsp; &nbsp; btn1.Position.Y = Abs((Random() * AnaForm.clHeight) - btn1.Height);</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if(sayac == 100)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; AnaForm.SetFormColor('#cfeb00','#db7edd',clGHorizontal);</div><div>&nbsp; &nbsp; sayac1 = sayac1 + 7;</div><div>&nbsp; &nbsp; btn1.Position.X = Abs((Random() * AnaForm.clWidth) - btn1.Width);</div><div>&nbsp; &nbsp; btn1.Position.Y = Abs((Random() * AnaForm.clHeight) - btn1.Height);</div><div>&nbsp; }</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; btn1.Text = IntToStr(sayac);</div><div>&nbsp; sayac = sayac + 1;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void sure;</div><div>{</div><div>&nbsp; if(sayac1 == 0)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; zaman.Enabled = False;&nbsp; // sürekli ekranda gösteriyor. False olacak.</div><div>&nbsp; &nbsp; lblTimer.caption = IntToStr(sayac1);</div><div>&nbsp; &nbsp; ShowMessage('Süreniz Doldu!');</div><div>&nbsp; &nbsp; ShowMessage('Puanınız: ' + IntToStr(sayac));</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if(sayac1 == 1)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; zaman.Enabled= True;&nbsp; &nbsp;//burda hiç bir şey olmuyor.</div><div>&nbsp; &nbsp; lblTimer.caption = IntToStr(sayac1);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; lblTimer.caption=IntToStr(sayac1);</div><div>&nbsp; &nbsp; Dec(sayac1);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void eksure</div><div>{</div><div>&nbsp; if(sayac==25)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; testImg.Visible=True;</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; sayac1 = sayac1+5;</div><div>&nbsp; testImg.Visible=False;</div><div>}</div><div>&nbsp;&nbsp;</div><div>&nbsp;{</div><div>&nbsp; &nbsp;sayac=0;</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;sayac1=20;</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;AnaForm = TclForm.Create(Self);</div><div>&nbsp; &nbsp;</div><div>&nbsp; Zaman=AnaForm.AddNewTimer(AnaForm,'zaman',1000);</div><div>&nbsp; Zaman.Enabled=False;&nbsp;</div><div>&nbsp; AnaForm.AddNewEvent(zaman,tbeOnTimer,'sure');</div><div>&nbsp;&nbsp;</div><div>&nbsp; lblTimer=AnaForm.AddNewLabel(AnaForm,'lblTimer','');</div><div>&nbsp; lblTimer.StyledSettings = ssFamily;</div><div>&nbsp; lblTimer.TextSettings.Font.Size = 35;</div><div>&nbsp; lblTimer.Align = alTop;</div><div>&nbsp; lblTimer.Height=50;</div><div>&nbsp; lblTimer.Width=50;</div><div>&nbsp; lblTimer.Margins.Left = 170;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp;AnaForm.SetFormColor('#52504d','',clGNone);&nbsp;</div><div>&nbsp; &nbsp;btn1 = AnaForm.AddNewProButton(AnaForm,'btn1','SAYAC');</div><div>&nbsp; &nbsp;testImg = AnaForm.AddNewImage(AnaForm,'testImg');</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp;btn1.Align = alNone; //Böyle yaparak butonu sabitlemiş oluyorum.</div><div>&nbsp; &nbsp;btn1.Width = 100;</div><div>&nbsp; &nbsp;btn1.Height = 100;</div><div>&nbsp; &nbsp;btn1.Position.X = (AnaForm.clWidth / 2) - (btn1.Width / 2);&nbsp; //konum1.</div><div>&nbsp; &nbsp;btn1.Position.Y = (AnaForm.clHeight / 2) - (btn1.Width / 2); // konum2.</div><div>&nbsp; &nbsp;</div><div>&nbsp; AnaForm.SetImage(testImg,'<a href="https://cdn2.ic&#111;nfinder.com/data/ic&#111;ns/chess-58/377/Time-256.png" target="_blank" rel="nofollow">https://cdn2.iconfinder.com/data/icons/chess-58/377/Time-256.png</a>');</div><div>&nbsp; testImg.Align = alNone;</div><div>&nbsp; testImg.Height = 30;</div><div>&nbsp; testImg.Width = 30;</div><div>&nbsp; testImg.Position.X = (AnaForm.clWidth / 2) - (testImg.Width / 2);&nbsp; //testImg konum1.</div><div>&nbsp; testImg.Position.Y = (AnaForm.clHeight / 2) - (testImg.Width / 2); //testImg konum2.</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;btn1.clProSettings.BorderColor = clAlphaColor.clHexToColor('#a0a3b1');</div><div>&nbsp; &nbsp;btn1.clProSettings.FontColor = clAlphaColor.clHexToColor('#050505');</div><div>&nbsp; &nbsp;btn1.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; &nbsp;btn1.clProSettings.IsTransparent = False;</div><div>&nbsp; &nbsp;btn1.clProSettings.FontSize = 12;</div><div>&nbsp; &nbsp;btn1.clProSettings.FontVertAlign = palcenter;//palLeading , palCenter , palTrailing</div><div>&nbsp; &nbsp;btn1.clProSettings.FontHorzAlign = palCenter;</div><div>&nbsp; &nbsp;btn1.clProSettings.IsFill = True;&nbsp;</div><div>&nbsp; &nbsp;btn1.clProSettings.IsRound = True;</div><div>&nbsp; &nbsp;btn1.clProSettings.RoundHeight = 50;</div><div>&nbsp; &nbsp;btn1.clProSettings.RoundWidth = 50;</div><div>&nbsp; &nbsp;btn1.clProSettings.BorderWidth = 3;</div><div>&nbsp; &nbsp;btn1.SetclProSettings(btn1.clProSettings);</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;AnaForm.AddNewEvent(btn1,tbeOnClick,'zamanlayici');</div><div>&nbsp; &nbsp;AnaForm.AddNewEvent(testImg,tbeOnClick,'eksure');</div><div>&nbsp; &nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp;AnaForm.Run;</div><div>&nbsp;</div><div>&nbsp;}</div></div>]]>
   </description>
   <pubDate>Thu, 16 May 2024 13:13:05 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=592&amp;PID=819#819</guid>
  </item> 
  <item>
   <title><![CDATA[TclTimer : Projemde ortadaki yuvarla&#287;a bast&#305;&#287;&#305;mda...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=592&amp;PID=818#818</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=159">emre.gungor01</a><br /><strong>Konu:</strong> 592<br /><strong>Gönderim Zamanı:</strong> 16&nbsp;Mayıs&nbsp;2024 Saat 11:56<br /><br />Projemde ortadaki yuvarlağa bastığımda üst tarafta bulunan zamanında çalışmasını istiyordum. Ben ortadaki yuvarlağa basmadığım sürece sayacında başlamasını istemiyorum.]]>
   </description>
   <pubDate>Thu, 16 May 2024 11:56:39 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=592&amp;PID=818#818</guid>
  </item> 
  <item>
   <title><![CDATA[TclTimer : Sorunuza cevap verebilmemiz i&#231;in...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=592&amp;PID=817#817</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=165">cagataycantay</a><br /><strong>Konu:</strong> 592<br /><strong>Gönderim Zamanı:</strong> 16&nbsp;Mayıs&nbsp;2024 Saat 11:52<br /><br />Sorunuza cevap verebilmemiz için yaşadığınız problemi doğrudan burada açıklayabilir misiniz?]]>
   </description>
   <pubDate>Thu, 16 May 2024 11:52:48 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=592&amp;PID=817#817</guid>
  </item> 
  <item>
   <title><![CDATA[TclTimer : Hocam&#305;zla konu&#351;tu&#287;umda kendisi...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=592&amp;PID=816#816</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=159">emre.gungor01</a><br /><strong>Konu:</strong> 592<br /><strong>Gönderim Zamanı:</strong> 15&nbsp;Mayıs&nbsp;2024 Saat 18:31<br /><br />Hocamızla konuştuğumda kendisi zamanlayıcı hakkında düzeltme yapacaktı.<div><br></div><div>Kodlar;</div><div><br></div><div><div>Var</div><div>&nbsp; AnaForm:TclForm;</div><div>&nbsp; btn1 : TClProButton;</div><div>&nbsp; Zaman : TCLTimer;</div><div>&nbsp; sayac:Integer;</div><div>&nbsp;&nbsp;</div><div>&nbsp; Zaman2:TCLTimer;</div><div>&nbsp; sayac1:Integer;</div><div>&nbsp; lblTimer: TCLLabel;</div><div>&nbsp;&nbsp;</div><div>&nbsp; testImg: TCLImage;&nbsp; //random yerlerde belirli zamanda görsel çıkartıyor.</div><div>&nbsp;&nbsp;</div><div>void zamanlayici;</div><div>{</div><div>&nbsp; if(sayac == sayac)</div><div>&nbsp; {</div><div>&nbsp; sayac = sayac + 1;</div><div>&nbsp; Zaman.Enabled = False;&nbsp; //burda yuvarlağın içindeki yazıyı çift arttırıyor.</div><div>&nbsp; btn1.Text = IntToStr(sayac);</div><div>&nbsp;&nbsp;</div><div>&nbsp; if(sayac == 25)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; AnaForm.SetFormColor('#23c7c5','',clGNone);</div><div>&nbsp; &nbsp; sayac1 = sayac1 + 3;</div><div>&nbsp; &nbsp; btn1.Position.X = Abs((Random() * AnaForm.clWidth) - btn1.Width);</div><div>&nbsp; &nbsp; btn1.Position.Y = Abs((Random() * AnaForm.clHeight) - btn1.Height);</div><div>&nbsp; &nbsp; testImg.Position.X = Abs((Random() * AnaForm.clWidth) - testImg.Width);</div><div>&nbsp; &nbsp; testImg.Position.Y = Abs((Random() * AnaForm.clHeight) - testImg.Height);</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if(sayac == 72)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; AnaForm.SetFormColor('#e01f1f','',clGNone);</div><div>&nbsp; &nbsp; sayac1 = sayac1 + 5;</div><div>&nbsp; &nbsp; btn1.Position.X = Abs((Random() * AnaForm.clWidth) - btn1.Width);</div><div>&nbsp; &nbsp; btn1.Position.Y = Abs((Random() * AnaForm.clHeight) - btn1.Height);</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if(sayac == 100)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; AnaForm.SetFormColor('#cfeb00','#db7edd',clGHorizontal);</div><div>&nbsp; &nbsp; sayac1 = sayac1 + 7;</div><div>&nbsp; &nbsp; btn1.Position.X = Abs((Random() * AnaForm.clWidth) - btn1.Width);</div><div>&nbsp; &nbsp; btn1.Position.Y = Abs((Random() * AnaForm.clHeight) - btn1.Height);</div><div>&nbsp; }</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; btn1.Text = IntToStr(sayac);</div><div>&nbsp; sayac = sayac + 1;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void sure;</div><div>{</div><div>&nbsp; if(sayac1 == 0)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Zaman2.Enabled = False;&nbsp; // sürekli ekranda gösteriyor. False olacak.</div><div>&nbsp; &nbsp; lblTimer.caption = IntToStr(sayac1);</div><div>&nbsp; &nbsp; ShowMessage('Süreniz Doldu!');</div><div>&nbsp; &nbsp; ShowMessage('Puanınız: ' + IntToStr(sayac));</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if(sayac1 == 1)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; Zaman2.Enabled= True;&nbsp; &nbsp;//burda hiç bir şey olmuyor.</div><div>&nbsp; &nbsp; lblTimer.caption = IntToStr(sayac1);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; lblTimer.caption=IntToStr(sayac1);</div><div>&nbsp; &nbsp; Dec(sayac1);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void eksure</div><div>{</div><div>&nbsp; if(sayac==25)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; testImg.Visible=True;</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; sayac1 = sayac1+5;</div><div>&nbsp; testImg.Visible=False;</div><div>}</div><div>&nbsp;&nbsp;</div><div>&nbsp;{</div><div>&nbsp; &nbsp;sayac=0;</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;sayac1=20;</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;AnaForm = TclForm.Create(Self);</div><div>&nbsp; &nbsp;</div><div>&nbsp; Zaman= AnaForm.AddNewTimer(AnaForm,'Zaman',1000);</div><div>&nbsp; Zaman.Enabled = True;&nbsp; // burda da hiçbir işlev görünmüyor.</div><div>&nbsp; AnaForm.AddNewEvent(Zaman,tbeOnTimer,'zamanlayici');</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; Zaman2=AnaForm.AddNewTimer(AnaForm,'Zaman2',1000);</div><div>&nbsp; Zaman2.Enabled=True;&nbsp; // görünür yapıyor.</div><div>&nbsp; AnaForm.AddNewEvent(Zaman2,tbeOnTimer,'sure');</div><div>&nbsp;&nbsp;</div><div>&nbsp; lblTimer=AnaForm.AddNewLabel(AnaForm,'lblTimer','');</div><div>&nbsp; lblTimer.StyledSettings = ssFamily;</div><div>&nbsp; lblTimer.TextSettings.Font.Size = 35;</div><div>&nbsp; lblTimer.Align = alTop;</div><div>&nbsp; lblTimer.Height=50;</div><div>&nbsp; lblTimer.Width=50;</div><div>&nbsp; lblTimer.Margins.Left = 170;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp;AnaForm.SetFormColor('#52504d','',clGNone);&nbsp;</div><div>&nbsp; &nbsp;btn1 = AnaForm.AddNewProButton(AnaForm,'btn1','SAYAC');</div><div>&nbsp; &nbsp;testImg = AnaForm.AddNewImage(AnaForm,'testImg');</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp;btn1.Align = alNone; //Böyle yaparak butonu sabitlemiş oluyorum.</div><div>&nbsp; &nbsp;btn1.Width = 100;</div><div>&nbsp; &nbsp;btn1.Height = 100;</div><div>&nbsp; &nbsp;btn1.Position.X = (AnaForm.clWidth / 2) - (btn1.Width / 2);&nbsp; //konum1.</div><div>&nbsp; &nbsp;btn1.Position.Y = (AnaForm.clHeight / 2) - (btn1.Width / 2); // konum2.</div><div>&nbsp; &nbsp;</div><div>&nbsp; AnaForm.SetImage(testImg,'<a href="https://cdn2.ic&#111;nfinder.com/data/ic&#111;ns/chess-58/377/Time-256.png" target="_blank" rel="nofollow">https://cdn2.iconfinder.com/data/icons/chess-58/377/Time-256.png</a>');</div><div>&nbsp; testImg.Align = alNone;</div><div>&nbsp; testImg.Height = 30;</div><div>&nbsp; testImg.Width = 30;</div><div>&nbsp; testImg.Position.X = (AnaForm.clWidth / 2) - (testImg.Width / 2);&nbsp; //testImg konum1.</div><div>&nbsp; testImg.Position.Y = (AnaForm.clHeight / 2) - (testImg.Width / 2); //testImg konum2.</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;btn1.clProSettings.BorderColor = clAlphaColor.clHexToColor('#a0a3b1');</div><div>&nbsp; &nbsp;btn1.clProSettings.FontColor = clAlphaColor.clHexToColor('#050505');</div><div>&nbsp; &nbsp;btn1.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; &nbsp;btn1.clProSettings.IsTransparent = False;</div><div>&nbsp; &nbsp;btn1.clProSettings.FontSize = 12;</div><div>&nbsp; &nbsp;btn1.clProSettings.FontVertAlign = palcenter;//palLeading , palCenter , palTrailing</div><div>&nbsp; &nbsp;btn1.clProSettings.FontHorzAlign = palCenter;</div><div>&nbsp; &nbsp;btn1.clProSettings.IsFill = True;&nbsp;</div><div>&nbsp; &nbsp;btn1.clProSettings.IsRound = True;</div><div>&nbsp; &nbsp;btn1.clProSettings.RoundHeight = 50;</div><div>&nbsp; &nbsp;btn1.clProSettings.RoundWidth = 50;</div><div>&nbsp; &nbsp;btn1.clProSettings.BorderWidth = 3;</div><div>&nbsp; &nbsp;btn1.SetclProSettings(btn1.clProSettings);</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;AnaForm.AddNewEvent(btn1,tbeOnClick,'zamanlayici');</div><div>&nbsp; &nbsp;AnaForm.AddNewEvent(testImg,tbeOnClick,'eksure');</div><div>&nbsp; &nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp;AnaForm.Run;</div><div>&nbsp;</div><div>&nbsp;}</div></div>]]>
   </description>
   <pubDate>Wed, 15 May 2024 18:31:16 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=592&amp;PID=816#816</guid>
  </item> 
  <item>
   <title><![CDATA[TclTimer : Merhaba Emre,istedi&#287;in durum &#351;u...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=592&amp;PID=815#815</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=132">Atiker01</a><br /><strong>Konu:</strong> 592<br /><strong>Gönderim Zamanı:</strong> 14&nbsp;Mayıs&nbsp;2024 Saat 11:42<br /><br />Merhaba Emre,<div>istediğin durum şu şekilde ise;</div><div>Uygulama içerisinde 2 adet zamanlayıcı bulunmaktadır. Biri oyun zamanı ve diğeri buton zamanı olarak tanımlandı.</div><div>Uygulamada değişken adı olarak;</div><div>Oyun zamanlayıcısı =&gt; oyunZamani</div><div>Buton zamanlayıcısı =&gt;&nbsp;butonZamani</div><div>Uygulama açıldığı anda <b>oyunZamani </b>zamanlayıcısı başlasın ve <b>butonZamani </b>zamanlayıcısı&nbsp;ise butona tıklandığı anda çalışması için;</div><div><br></div><div>Buton Event için =&gt; void bAktiflestir</div><div>oyunZamani Event için =&gt; void oZamanlayici</div><div>butonZamani Event için =&gt; void bZamanlayici</div><div><br></div><div>oluşturuldu.</div><div>Uygulama açıldığı anda&nbsp;<b>oZamanlayici</b>&nbsp;void yapısı çalışmaktadır. Burada ise sayac 20 değerine gelene kadar geri sayım yapmaktadır.</div><div>Butona tıklandığında <b>bAktiflestir</b> void içerisine <b>butonZamani</b> zamanlayıcısı aktifleştirilmektedir.</div><div>Aktifleşen <b>butonZamani </b>zamanlayıcısı ise <b>bZamanlayici</b> void yapısı çalışmaktadır. Burada ise buton üzerindeki metin içerisine çalışan zamanlayıcı için oluşturulan&nbsp;<b>butonSayac</b> değişkeni arttırılarak yazılmaktadır.</div><div><br></div><div>Uygulama içerisindeki zamanlayıcılar oyun süresi bittiğinde durmaktadır ya da <b>butonSayac </b>değişkeni 10 sayısına geldiğinde&nbsp;<b>butonZamani </b>zamanlayıcısı durmaktadır. Butona tıklanırsa tekrardan başlar.&nbsp;</div><div>Kodları aşağıda yer alıyor. Burada yapıyı istediğin gibi değiştirebilirsin.</div><div><br></div><div><div>Var</div><div>&nbsp; AnaForm:TclForm;</div><div>&nbsp; btn1 : TClProButton;</div><div>&nbsp; butonZamani : TCLTimer;</div><div>&nbsp; butonSayac:Integer;</div><div>&nbsp;&nbsp;</div><div>&nbsp; oyunZamani:TCLTimer;</div><div>&nbsp; oyunSayac:Integer;</div><div>&nbsp; lblTimer: TCLLabel;</div><div><br></div><div>void bAktiflestir;</div><div>{</div><div>&nbsp; butonZamani.Enabled = True;</div><div>}</div><div>void bZamanlayici;</div><div>{</div><div>&nbsp; if(butonSayac == 10) //25</div><div>&nbsp; {</div><div>&nbsp; &nbsp; butonZamani.Enabled = False;</div><div>&nbsp; &nbsp; btn1.Text = IntToStr(butonSayac);</div><div>&nbsp; &nbsp; butonSayac = 0;</div><div>&nbsp; &nbsp; ShowMessage('Buton süresi doldu. Bu kısımda istediğin yöntemi uygulamalısın.');</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; btn1.Text = IntToStr(butonSayac);</div><div>&nbsp; &nbsp; Inc(butonSayac);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void oZamanlayici;</div><div>{</div><div>&nbsp; if(oyunSayac == 0)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; oyunZamani.Enabled=False;</div><div>&nbsp; &nbsp; butonZamani.Enabled = False; //oyun süresi durduğunda buton zamanlayıcısıda dursun</div><div>&nbsp; &nbsp; lblTimer.caption = IntToStr(oyunSayac);</div><div>&nbsp; &nbsp; ShowMessage('Süreniz Doldu!');</div><div>&nbsp; &nbsp; /*</div><div>&nbsp; &nbsp; if(btn1 == 1)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; lblTimer.caption=IntToStr(oyunSayac);</div><div>&nbsp; &nbsp; Dec(oyunSayac);</div><div>&nbsp; &nbsp; }*/</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; lblTimer.caption=IntToStr(oyunSayac);</div><div>&nbsp; &nbsp; Dec(oyunSayac);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>&nbsp;{</div><div>&nbsp; &nbsp;butonSayac=0;</div><div>&nbsp; &nbsp;oyunSayac=20;</div><div>&nbsp; &nbsp;</div><div>&nbsp; AnaForm = TclForm.Create(Self);</div><div>&nbsp; &nbsp;</div><div>&nbsp; butonZamani= AnaForm.AddNewTimer(AnaForm,'',1000);</div><div>&nbsp; butonZamani.Enabled = False;</div><div>&nbsp; AnaForm.AddNewEvent(butonZamani,tbeOnTimer,'bZamanlayici');</div><div>&nbsp;&nbsp;</div><div>&nbsp; oyunZamani=AnaForm.AddNewTimer(AnaForm,'GetTimer',1000);</div><div>&nbsp; oyunZamani.Enabled=True;</div><div>&nbsp; AnaForm.AddNewEvent(oyunZamani,tbeOnTimer,'oZamanlayici');</div><div>&nbsp;&nbsp;</div><div>&nbsp; lblTimer=AnaForm.AddNewLabel(AnaForm,'lblTimer','');</div><div>&nbsp; lblTimer.StyledSettings = ssFamily;</div><div>&nbsp; lblTimer.TextSettings.Font.Size = 35;</div><div>&nbsp; lblTimer.Align = alTop;</div><div>&nbsp; lblTimer.Height=50;</div><div>&nbsp; lblTimer.Width=50;</div><div>&nbsp;&nbsp;</div><div>&nbsp;</div><div>&nbsp; &nbsp;AnaForm.SetFormColor('#52504d','',clGNone);&nbsp;</div><div>&nbsp; &nbsp;btn1 = AnaForm.AddNewProButton(AnaForm,'btn1','butonSayac');</div><div>&nbsp; &nbsp;btn1.Align = alCenter;</div><div>&nbsp; &nbsp;btn1.Width = 100;</div><div>&nbsp; &nbsp;btn1.Height = 100;</div><div>&nbsp; &nbsp;btn1.clProSettings.BorderColor = clAlphaColor.clHexToColor('#a0a3b1');</div><div>&nbsp; &nbsp;btn1.clProSettings.FontColor = clAlphaColor.clHexToColor('#050505');</div><div>&nbsp; &nbsp;btn1.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; &nbsp;btn1.clProSettings.IsTransparent = False;</div><div>&nbsp; &nbsp;btn1.clProSettings.FontSize = 12;</div><div>&nbsp; &nbsp;btn1.clProSettings.FontVertAlign = palcenter;//palLeading , palCenter , palTrailing</div><div>&nbsp; &nbsp;btn1.clProSettings.FontHorzAlign = palCenter;</div><div>&nbsp; &nbsp;btn1.clProSettings.IsFill = True;&nbsp;</div><div>&nbsp; &nbsp;btn1.clProSettings.IsRound = True;</div><div>&nbsp; &nbsp;btn1.clProSettings.RoundHeight = 50;</div><div>&nbsp; &nbsp;btn1.clProSettings.RoundWidth = 50;</div><div>&nbsp; &nbsp;btn1.clProSettings.BorderWidth = 3;</div><div>&nbsp; &nbsp;btn1.SetclProSettings(btn1.clProSettings);</div><div><br></div><div>&nbsp; &nbsp;AnaForm.AddNewEvent(btn1,tbeOnClick,'bAktiflestir');</div><div>&nbsp; &nbsp;AnaForm.Run;</div><div>&nbsp;</div><div>&nbsp;}</div></div><div><br></div><div><div style=": rgb251, 251, 253;">Sorunun çözüme ulaşıp ulaşmadığı ile ilgili geri dönüşünü bekliyorum.</div><div style=": rgb251, 251, 253;">İyi çalışmalar diliyorum.</div></div><div><br></div><div><br></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Tue, 14 May 2024 11:42:03 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=592&amp;PID=815#815</guid>
  </item> 
  <item>
   <title><![CDATA[TclTimer : Denedim fakat tam olarak &#231;al&#305;&#351;m&#305;yor...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=592&amp;PID=812#812</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=159">emre.gungor01</a><br /><strong>Konu:</strong> 592<br /><strong>Gönderim Zamanı:</strong> 13&nbsp;Mayıs&nbsp;2024 Saat 22:58<br /><br />Denedim fakat tam olarak çalışmıyor bu sefer butonda tıklanma olayı çok geç oluyor benim istediğim butona anında tıklanması ve başlangıçta ben tıklayana kadar başlamamasıydı. 2 sürede yapmamın sebebi yuvarlağın içindeki label zamanlayici yani her bastığımda arttırıyor sayıyı sure ise yukarıda 20 den geriye doğru sayan süremiz şimdi burada ki koduda denediğimde yuvarlağın içindeki zamanlayiciyi etkiliyor. Acaba 3.bir event olayı açıp BtnOnClick özelliğini btn1 eventıyla birleştirmek mantıklı mı?]]>
   </description>
   <pubDate>Mon, 13 May 2024 22:58:14 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=592&amp;PID=812#812</guid>
  </item> 
  <item>
   <title><![CDATA[TclTimer : Merhaba Emre,butona basmadan zaman...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=592&amp;PID=810#810</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=132">Atiker01</a><br /><strong>Konu:</strong> 592<br /><strong>Gönderim Zamanı:</strong> 13&nbsp;Mayıs&nbsp;2024 Saat 13:26<br /><br />Merhaba Emre,<div><br></div><div>butona basmadan zaman ilerlemesinin sebebi başka bir zamanlayıcının açık olması ve bunu aktifleştirmen. Kodunu şu şekilde değiştirmelisin. Öncelikle 2 tane zamanlayıcıya ihtiyacın yok. <b>Zaman2 </b>adındaki değişkenini silebilirsin. Buna bağlı prosedürün (void) doğru mantıkta çalışıyor. Bunu <b>Zaman </b>adındaki zamanlayıcı nesnesine bağlayabilirsin.</div><div><br></div><div>İkinci olarak butona bastığında zamanlayıcın aktifleşiyor ve doğru şekilde ilerliyor fakat <span style=": rgb251, 251, 253;"><b>zamanlayici </b>void yapındaki algoritmik mantık istediğin mantıkla uyuşmuyor, hatalı.&nbsp;</span></div><div><span style=": rgb251, 251, 253;">Aşağıda kodunu alıntıladım ve yorum satırına sorunu yazdım.</span></div><div><span style=": rgb251, 251, 253;"><br></span></div><div><div style=": rgb251, 251, 253;">void <b>zamanlayici</b>;</div><div style=": rgb251, 251, 253;">{</div><div style=": rgb251, 251, 253;">&nbsp; if(sayac == sayac) <font color="#ff0000">//sayac değişkeni her zaman kendisine eşit olacağı için bu if'e her zaman girecektir ve içerisinde zamanlayıcı durduracaktır. Yani zamanlayıcın aktifleşip bir kez çalışıp duracak.</font></div><div style=": rgb251, 251, 253;">&nbsp; {</div><div style=": rgb251, 251, 253;">&nbsp; sayac = sayac + 1;</div><div style=": rgb251, 251, 253;">&nbsp; Zaman.Enabled = False;</div><div style=": rgb251, 251, 253;">&nbsp; btn1.Text = IntToStr(sayac);</div><div style=": rgb251, 251, 253;">&nbsp; if(sayac == 25)</div><div style=": rgb251, 251, 253;">&nbsp; {</div><div style=": rgb251, 251, 253;">&nbsp; ShowMessage('Süre doldu!');</div><div style=": rgb251, 251, 253;">&nbsp; }</div><div style=": rgb251, 251, 253;">&nbsp; }</div><div style=": rgb251, 251, 253;">&nbsp; else</div><div style=": rgb251, 251, 253;">&nbsp; {</div><div style=": rgb251, 251, 253;">&nbsp; btn1.Text = IntToStr(sayac);</div><div style=": rgb251, 251, 253;">&nbsp; sayac = sayac + 1;</div><div style=": rgb251, 251, 253;">&nbsp; }</div><div style=": rgb251, 251, 253;">}</div></div><div style=": rgb251, 251, 253;"><br></div><div style=": rgb251, 251, 253;"><br></div><div style=": rgb251, 251, 253;">Düzenlenmiş hali:</div><div style=": rgb251, 251, 253;"><br></div><div style=": rgb251, 251, 253;"><div>Var</div><div>&nbsp; AnaForm:TclForm;</div><div>&nbsp; btn1 : TClProButton;</div><div>&nbsp; Zaman : TCLTimer;</div><div>&nbsp; sayac1:Integer;</div><div>&nbsp; lblTimer: TCLLabel;</div><div>&nbsp;&nbsp;</div><div>void BtnOnClick;</div><div>{</div><div>&nbsp; Zaman.Enabled = True;</div><div>&nbsp; ShowMessage('girdim');</div><div>}</div><div><br></div><div>void sure;</div><div>{</div><div>&nbsp; if(sayac1 == 0)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Zaman.Enabled=False;</div><div>&nbsp; &nbsp; lblTimer.caption = IntToStr(sayac1);</div><div>&nbsp; &nbsp; ShowMessage('Süreniz Doldu!');</div><div>&nbsp; &nbsp; <font color="#ff0000">/*</font></div><div><font color="#ff0000">&nbsp; &nbsp; if(btn1 == 1) //btn1 nesnesi içerisindeki değeri almak istiyorsan IntToStr(btn1.Text) == 1 yazmalısın.</font></div><div><font color="#ff0000">&nbsp; &nbsp; {</font></div><div><font color="#ff0000">&nbsp; &nbsp; &nbsp; lblTimer.caption=IntToStr(sayac1);</font></div><div><font color="#ff0000">&nbsp; &nbsp; Dec(sayac1);</font></div><div><font color="#ff0000">&nbsp; &nbsp; } */</font></div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; lblTimer.caption=IntToStr(sayac1);</div><div>&nbsp; &nbsp; Dec(sayac1);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>&nbsp;{</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;sayac1=20;</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;AnaForm = TclForm.Create(Self);</div><div>&nbsp; &nbsp;</div><div>&nbsp; Zaman= AnaForm.AddNewTimer(AnaForm,'Zaman',1000);</div><div>&nbsp; AnaForm.AddNewEvent(Zaman,tbeOnTimer,'sure');</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; lblTimer=AnaForm.AddNewLabel(AnaForm,'lblTimer','');</div><div>&nbsp; lblTimer.StyledSettings = ssFamily;</div><div>&nbsp; lblTimer.TextSettings.Font.Size = 35;</div><div>&nbsp; lblTimer.Align = alTop;</div><div>&nbsp; lblTimer.Height=50;</div><div>&nbsp; lblTimer.Width=50;</div><div>&nbsp;&nbsp;</div><div>&nbsp;</div><div>&nbsp; &nbsp;AnaForm.SetFormColor('#52504d','',clGNone);&nbsp;</div><div>&nbsp; &nbsp;btn1 = AnaForm.AddNewProButton(AnaForm,'btn1','SAYAC');</div><div>&nbsp; &nbsp;btn1.Align = alCenter;</div><div>&nbsp; &nbsp;btn1.Width = 100;</div><div>&nbsp; &nbsp;btn1.Height = 100;</div><div>&nbsp; &nbsp;btn1.clProSettings.BorderColor = clAlphaColor.clHexToColor('#a0a3b1');</div><div>&nbsp; &nbsp;btn1.clProSettings.FontColor = clAlphaColor.clHexToColor('#050505');</div><div>&nbsp; &nbsp;btn1.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; &nbsp;btn1.clProSettings.IsTransparent = False;</div><div>&nbsp; &nbsp;btn1.clProSettings.FontSize = 12;</div><div>&nbsp; &nbsp;btn1.clProSettings.FontVertAlign = palcenter;//palLeading , palCenter , palTrailing</div><div>&nbsp; &nbsp;btn1.clProSettings.FontHorzAlign = palCenter;</div><div>&nbsp; &nbsp;btn1.clProSettings.IsFill = True;&nbsp;</div><div>&nbsp; &nbsp;btn1.clProSettings.IsRound = True;</div><div>&nbsp; &nbsp;btn1.clProSettings.RoundHeight = 50;</div><div>&nbsp; &nbsp;btn1.clProSettings.RoundWidth = 50;</div><div>&nbsp; &nbsp;btn1.clProSettings.BorderWidth = 3;</div><div>&nbsp; &nbsp;btn1.SetclProSettings(btn1.clProSettings);</div><div><br></div><div>&nbsp; &nbsp;AnaForm.AddNewEvent(btn1,tbeOnClick,'BtnOnClick');</div><div>&nbsp; &nbsp;AnaForm.Run;</div><div>&nbsp;</div><div>&nbsp;}</div><div><br></div><div><div>Sorunun çözüme ulaşıp ulaşmadığı ile ilgili geri dönüşünü bekliyorum.</div><div>İyi çalışmalar diliyorum.</div></div></div><span style="font-size:10px"><br /><br />Düzenleyen Atiker01 - 13&nbsp;Mayıs&nbsp;2024 Saat 13:27</span>]]>
   </description>
   <pubDate>Mon, 13 May 2024 13:26:39 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=592&amp;PID=810#810</guid>
  </item> 
  <item>
   <title><![CDATA[TclTimer : evet event k&#305;sm&#305;n&#305; bunu att&#305;ktan...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=592&amp;PID=809#809</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=159">emre.gungor01</a><br /><strong>Konu:</strong> 592<br /><strong>Gönderim Zamanı:</strong> 13&nbsp;Mayıs&nbsp;2024 Saat 10:31<br /><br />evet event kısmını bunu attıktan sonra düzenledim. 2. olarak enabled kısımlarına baktığımda Zaman.Enabled = True; kısımlarına teker teker baktım fakat kimisinde zaman görünüyor kimisinde butona basmasam bile belirli bir süre sonra kendisi başladığı için zamanda otomatikmen başladığını farkettim. Acaba event kısmında mı hata yapıyorum. Clomosy Kitapta baktığımda enabled kısmı false olarak yazıyor fakat ben yaptığımda olmuyor veya işlev görmüyor.]]>
   </description>
   <pubDate>Mon, 13 May 2024 10:31:21 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=592&amp;PID=809#809</guid>
  </item> 
  <item>
   <title><![CDATA[TclTimer : Merhaba Emre,&#246;ncelikle kodunu...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=592&amp;PID=807#807</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=132">Atiker01</a><br /><strong>Konu:</strong> 592<br /><strong>Gönderim Zamanı:</strong> 13&nbsp;Mayıs&nbsp;2024 Saat 09:19<br /><br />Merhaba Emre,<div><br></div><div><div>öncelikle kodunu çalıştırdığında hatayı görmüşsündür.&nbsp;</div><div>En son tanımladığın Event yanlış bir tanımlama. Event içerisine ilk parametre bir nesneyi temsil etmeli sen bir procedure(void) bağlamışsın, o satırdaki hatanı düzeltmelisin.</div><div><span style=": rgb251, 251, 253;">Hata satırı: AnaForm.AddNewEvent(zamanlayici,tbeOnClick,'sure');</span></div><div><br></div><div>2. olarak butona tıklandığında zamanlayıcı çalışsın istiyorsan zamanlayıcıyı uygulama açıldığı anda etkinleştirme, butona tıklandığında zamanlayıcıyı etkinleştirmelisin.&nbsp;</div><div>Kod satırı:&nbsp;&nbsp;<span style=": rgb251, 251, 253;">Zaman.Enabled = True;</span></div></div>]]>
   </description>
   <pubDate>Mon, 13 May 2024 09:19:18 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=592&amp;PID=807#807</guid>
  </item> 
  <item>
   <title><![CDATA[TclTimer : Merhabalar;Projemde s&#252;re ekledim...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=592&amp;PID=805#805</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=159">emre.gungor01</a><br /><strong>Konu:</strong> 592<br /><strong>Gönderim Zamanı:</strong> 11&nbsp;Mayıs&nbsp;2024 Saat 18:33<br /><br />Merhabalar;<div>Projemde süre ekledim fakat sürenin butona tıklandığında başlamasını istiyorum. Buton ile süreyi birbirine bağlayamadım bir türlü</div><div>Kodlar;</div><div><div>Var</div><div>&nbsp; AnaForm:TclForm;</div><div>&nbsp; btn1 : TClProButton;</div><div>&nbsp; Zaman : TCLTimer;</div><div>&nbsp; sayac:Integer;</div><div>&nbsp;&nbsp;</div><div>&nbsp; Zaman2:TCLTimer;</div><div>&nbsp; sayac1:Integer;</div><div>&nbsp; lblTimer: TCLLabel;</div><div>&nbsp;&nbsp;</div><div>void zamanlayici;</div><div>{</div><div>&nbsp; if(sayac == sayac)</div><div>&nbsp; {</div><div>&nbsp; sayac = sayac + 1;</div><div>&nbsp; Zaman.Enabled = False;</div><div>&nbsp; btn1.Text = IntToStr(sayac);</div><div>&nbsp; if(sayac == 25)</div><div>&nbsp; {</div><div>&nbsp; ShowMessage('Süre doldu!');</div><div>&nbsp; }</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; btn1.Text = IntToStr(sayac);</div><div>&nbsp; sayac = sayac + 1;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void sure;</div><div>{</div><div>&nbsp; if(sayac1 == 0)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Zaman2.Enabled=False;</div><div>&nbsp; &nbsp; lblTimer.caption = IntToStr(sayac1);</div><div>&nbsp; &nbsp; ShowMessage('Süreniz Doldu!');</div><div>&nbsp; &nbsp; if(btn1 == 1)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; lblTimer.caption=IntToStr(sayac1);</div><div>&nbsp; &nbsp; Dec(sayac1);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; lblTimer.caption=IntToStr(sayac1);</div><div>&nbsp; &nbsp; Dec(sayac1);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>&nbsp;{</div><div>&nbsp; &nbsp;sayac=0;</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;sayac1=20;</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;AnaForm = TclForm.Create(Self);</div><div>&nbsp; &nbsp;</div><div>&nbsp; Zaman= AnaForm.AddNewTimer(AnaForm,'',1000);</div><div>&nbsp; Zaman.Enabled = True;</div><div>&nbsp; AnaForm.AddNewEvent(Zaman,tbeOnTimer,'zamanlayici');</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; Zaman2=AnaForm.AddNewTimer(AnaForm,'GetTimer',1000);</div><div>&nbsp; Zaman2.Enabled=True;</div><div>&nbsp; AnaForm.AddNewEvent(Zaman2,tbeOnTimer,'sure');</div><div>&nbsp;&nbsp;</div><div>&nbsp; lblTimer=AnaForm.AddNewLabel(AnaForm,'lblTimer','');</div><div>&nbsp; lblTimer.StyledSettings = ssFamily;</div><div>&nbsp; lblTimer.TextSettings.Font.Size = 35;</div><div>&nbsp; lblTimer.Align = alTop;</div><div>&nbsp; lblTimer.Height=50;</div><div>&nbsp; lblTimer.Width=50;</div><div>&nbsp;&nbsp;</div><div>&nbsp;</div><div>&nbsp; &nbsp;AnaForm.SetFormColor('#52504d','',clGNone);&nbsp;</div><div>&nbsp; &nbsp;btn1 = AnaForm.AddNewProButton(AnaForm,'btn1','SAYAC');</div><div>&nbsp; &nbsp;btn1.Align = alCenter;</div><div>&nbsp; &nbsp;btn1.Width = 100;</div><div>&nbsp; &nbsp;btn1.Height = 100;</div><div>&nbsp; &nbsp;btn1.clProSettings.BorderColor = clAlphaColor.clHexToColor('#a0a3b1');</div><div>&nbsp; &nbsp;btn1.clProSettings.FontColor = clAlphaColor.clHexToColor('#050505');</div><div>&nbsp; &nbsp;btn1.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; &nbsp;btn1.clProSettings.IsTransparent = False;</div><div>&nbsp; &nbsp;btn1.clProSettings.FontSize = 12;</div><div>&nbsp; &nbsp;btn1.clProSettings.FontVertAlign = palcenter;//palLeading , palCenter , palTrailing</div><div>&nbsp; &nbsp;btn1.clProSettings.FontHorzAlign = palCenter;</div><div>&nbsp; &nbsp;btn1.clProSettings.IsFill = True;&nbsp;</div><div>&nbsp; &nbsp;btn1.clProSettings.IsRound = True;</div><div>&nbsp; &nbsp;btn1.clProSettings.RoundHeight = 50;</div><div>&nbsp; &nbsp;btn1.clProSettings.RoundWidth = 50;</div><div>&nbsp; &nbsp;btn1.clProSettings.BorderWidth = 3;</div><div>&nbsp; &nbsp;btn1.SetclProSettings(btn1.clProSettings);</div><div><br></div><div>&nbsp; &nbsp;AnaForm.AddNewEvent(btn1,tbeOnClick,'zamanlayici');</div><div>&nbsp; &nbsp;AnaForm.AddNewEvent(zamanlayici,tbeOnClick,'sure');</div><div>&nbsp; &nbsp;AnaForm.Run;</div><div>&nbsp;</div><div>&nbsp;}</div></div>]]>
   </description>
   <pubDate>Sat, 11 May 2024 18:33:25 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=592&amp;PID=805#805</guid>
  </item> 
 </channel>
</rss>