<?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 : Renk Değiştirme</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : Renk Değiştirme]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 16:31:26 +0000</pubDate>
  <lastBuildDate>Fri, 17 May 2024 14:23: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=595</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[Renk Değiştirme : evet do&#287;ru, fakat alt tarafta...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=595&amp;PID=824#824</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> 595<br /><strong>Gönderim Zamanı:</strong> 17&nbsp;Mayıs&nbsp;2024 Saat 14:23<br /><br />evet doğru, fakat alt tarafta bulunan&nbsp;<div><span style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">RndmTimer.Enabled = False; kısmını true yaptığım zaman çalışıyor sadece bunun nedeni neden olabilir?</span></div><div><span style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">Random görsel koyduğum zamanda da aynısı olmuştu. Aynı sorunu birden çok kez yaşadım ve bunun çözümünün </span></div><div><span style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">ne olduğunu bilemiyorum?</span></div>]]>
   </description>
   <pubDate>Fri, 17 May 2024 14:23:28 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=595&amp;PID=824#824</guid>
  </item> 
  <item>
   <title><![CDATA[Renk Değiştirme : Merhaba Emre,Yap&#305;lan &#246;rnek &#252;zerinde...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=595&amp;PID=822#822</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=132">Atiker01</a><br /><strong>Konu:</strong> 595<br /><strong>Gönderim Zamanı:</strong> 17&nbsp;Mayıs&nbsp;2024 Saat 11:40<br /><br />Merhaba Emre,<div>Yapılan örnek üzerinde dizi içerisinde renk kodları tanımlandı. Butona basıldıkça sayac değişkeni bir arttırılmaktadır ve bunun yanında if sorgusu ile eğer sayac 100'den büyük olursa sürekli olarak formun arkaplan rengi random değişmektedir. Aşağıdaki istenilen mantığa göre program yazılmıştır. Uygulamana göre yapıyı değiştirebilirsin.</div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>var</div><div>&nbsp; &nbsp;Form1:TclForm;</div><div>&nbsp; &nbsp;oBtn : TclButton;</div><div>&nbsp; &nbsp;sayac : Integer;</div><div>&nbsp; &nbsp;RndmTimer: TClTimer;</div><div>&nbsp; &nbsp;colorArray : array of String;</div><div>&nbsp; &nbsp;</div><div>void randomColor;</div><div>var</div><div>&nbsp; randmDeger : Integer;</div><div>{</div><div>&nbsp; colorArray = &#091;'#26cf3a','#ff780a','#9a7de8','#813b3b','#a664c4','#6492c4','#81c464'&#093;;</div><div>&nbsp; randmDeger =&nbsp; clMath.GenerateRandom(0,6);</div><div>&nbsp; Form1.SetFormColor(colorArray&#091;randmDeger&#093;,'',clGNone);</div><div>}</div><div>&nbsp;</div><div>void sayacArttir;</div><div>{</div><div>&nbsp; &nbsp; Inc(sayac);</div><div>&nbsp; &nbsp; if (sayac &gt; 100)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; RndmTimer.Enabled = True;</div><div>&nbsp; &nbsp; }</div><div>}</div><div><br></div><div>{</div><div>&nbsp; sayac = 0;</div><div>&nbsp; Form1 = TclForm.Create(Self);</div><div>&nbsp;&nbsp;</div><div>&nbsp; RndmTimer = Form1.AddNewTimer(Form1,'RndmTimer',100);&nbsp;</div><div>&nbsp; RndmTimer.Enabled = False;</div><div>&nbsp; Form1.AddNewEvent(RndmTimer,tbeOnTimer,'randomColor');</div><div>&nbsp;&nbsp;</div><div>&nbsp; oBtn= Form1.AddNewButton(Form1,'oBtn','Başla');</div><div>&nbsp; oBtn.TextSettings.Font.Size=50;</div><div>&nbsp; oBtn.Align = alCenter;</div><div>&nbsp; oBtn.Height = 50;</div><div>&nbsp; oBtn.Width = 100;</div><div>&nbsp; Form1.AddNewEvent(oBtn,tbeOnClick,'sayacArttir');</div><div>&nbsp;&nbsp;</div><div>&nbsp; Form1.Run;</div><div>}</div></div><div></pre></td></tr></table></div><div><br></div><div>Sürekli olarak dendiği için timer kullanılmaktadır. Eğer sadece butona tıklandığında renk değişsin istenirse timer nesnesine ihtiyaç yoktur.&nbsp;</div><div><br></div><div>İyi çalışmalar dilerim.</div><div><div><br></div></div><span style="font-size:10px"><br /><br />Düzenleyen Atiker01 - 17&nbsp;Mayıs&nbsp;2024 Saat 11:40</span>]]>
   </description>
   <pubDate>Fri, 17 May 2024 11:40:23 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=595&amp;PID=822#822</guid>
  </item> 
  <item>
   <title><![CDATA[Renk Değiştirme : Merhabalar;Uygulamamda dizi kulland&#305;m...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=595&amp;PID=821#821</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> 595<br /><strong>Gönderim Zamanı:</strong> 16&nbsp;Mayıs&nbsp;2024 Saat 22:37<br /><br />Merhabalar;<div><br></div><div>Uygulamamda dizi kullandım sadece yuvarlağın içindeki sayaçta 100'ü geçtiği zaman sürekli olarak arka plan renginin değişmesini istedim ama olmadı ne kadar araştırsam da yapamadım bana bir yol gösterebilir misiniz?</div><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; oyunzaman: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. //EKSURE İÇİN KULLANDIM.</div><div>&nbsp;&nbsp;</div><div>&nbsp; i:Integer;</div><div>&nbsp; dizi1: array&#091;12&#093; of String;</div><div>&nbsp;&nbsp;</div><div>void eksure</div><div>{</div><div>&nbsp; if(IntToStr(btn1.Text)==25)</div><div>&nbsp; {</div><div>&nbsp; testImg.Visible=True;</div><div>&nbsp; sayac1 = sayac1+5;</div><div>&nbsp; }</div><div>}</div><div>void zamanlayici;</div><div>{</div><div>&nbsp; sayac = sayac + 1;</div><div>&nbsp; oyunzaman.Enabled=True;</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;&nbsp;</div><div>&nbsp; //Dizi başlangıçı</div><div>&nbsp; if(sayac &gt; 101)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; dizi1&#091;0&#093; = '#26cf3a';</div><div>&nbsp; &nbsp; dizi1&#091;1&#093; = '#ff780a';</div><div>&nbsp; &nbsp; dizi1&#091;2&#093; = '#9a7de8';</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; for (i = 0 to Length(dizi1)-1)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; AnaForm.SetFormColor(' dizi1&#091;'+ IntToStr(i) +'&#093; = '+ dizi1<em>);</div><div>&nbsp; &nbsp; }</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; oyunzaman.Enabled = False;</div><div>&nbsp; &nbsp; lblTimer.caption = IntToStr(sayac1);</div><div>&nbsp; &nbsp; //sayac1=20;&nbsp; // GEREKLİ OLDUĞUNDA AÇILACAK.</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;&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;&nbsp;</div><div>&nbsp;{</div><div>&nbsp; &nbsp;sayac=0;</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;sayac1=35;</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;AnaForm = TclForm.Create(Self);</div><div>&nbsp; &nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; oyunzaman=AnaForm.AddNewTimer(AnaForm,'oyunzaman',1000);</div><div>&nbsp; oyunzaman.Enabled=False;</div><div>&nbsp; AnaForm.AddNewEvent(oyunzaman,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.Visible=False;</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><div>&nbsp; &nbsp;</div>]]>
   </description>
   <pubDate>Thu, 16 May 2024 22:37:34 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=595&amp;PID=821#821</guid>
  </item> 
 </channel>
</rss>