<?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 HATA</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : KOD HATA]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 18 May 2026 17:08:23 +0000</pubDate>
  <lastBuildDate>Mon, 18 May 2026 16:33:10 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>30</ttl>
  <WebWizForums:feedURL>https://forum.clomosy.com.tr/RSS_post_feed.asp?TID=1542</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 HATA : Merhabalar yasemin koddun da olu&#351;an...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1542&amp;PID=3561#3561</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=350">kayra.55</a><br /><strong>Konu:</strong> 1542<br /><strong>Gönderim Zamanı:</strong> 18&nbsp;Mayıs&nbsp;2026 Saat 16:33<br /><br />Merhabalar yasemin koddun da oluşan sorunları çözdüm aşağıda koddun çalışan hali mevcut iyi çalışmalar dilerim&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var<div>&nbsp; MyForm: TclForm;</div><div>&nbsp; TitleLabel, InfoLabel, ScoreLabel: TclLabel;</div><div>&nbsp; LayoutTop, LayoutInfo, LayoutTable, LayoutButtons, LayoutBottomBar: TclLayout;</div><div>&nbsp; LayoutRow1, LayoutRow2, LayoutRow3: TclLayout;</div><div>&nbsp; LayoutAns1, LayoutAns2: TclLayout;</div><div>&nbsp;&nbsp;</div><div>&nbsp; BtnMetal, BtnAmetal, BtnYarimetal, BtnSoygaz, BtnReset: TclButton;</div><div>&nbsp; SelectedElement: String;</div><div>&nbsp; SelectedBtn: TclButton;</div><div>&nbsp; CorrectCount: Integer;</div><div>&nbsp;&nbsp;</div><div>&nbsp; Btn1, Btn2, Btn3, Btn4, Btn5, Btn6, Btn7, Btn8, Btn9, Btn10: TclButton;</div><div>&nbsp; Btn11, Btn12, Btn13, Btn14, Btn15, Btn16, Btn17, Btn18: TclButton;</div><div><br></div><div>void ElementSelect;</div><div>var</div><div>&nbsp; ClickedBtn: TclButton;</div><div>{</div><div>&nbsp; ClickedBtn = TclButton(MyForm.clSender);</div><div>&nbsp; SelectedElement = ClickedBtn.Caption;&nbsp;</div><div>&nbsp; SelectedBtn = ClickedBtn;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; InfoLabel.Text = 'SECILEN: ' + SelectedElement + ' -&gt; Grubunu asagidan seciniz.';</div><div>}</div><div><br></div><div>void CheckClassification;</div><div>var</div><div>&nbsp; ClickedClassBtn: TclButton;</div><div>&nbsp; UserChoice, CorrectClass, SearchStr: String;</div><div>{</div><div>&nbsp; if (SelectedElement == '')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; InfoLabel.Text = 'UYARI: Lutfen once yukaridan bir element seciniz!';</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ClickedClassBtn = TclButton(MyForm.clSender);</div><div>&nbsp; &nbsp; UserChoice = ClickedClassBtn.Caption;</div><div>&nbsp; &nbsp; CorrectClass = '';</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; SearchStr = ',' + SelectedElement + ',';</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (Pos(SearchStr, ',H,C,N,O,F,P,S,Cl,') &gt; 0)&nbsp;</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; CorrectClass = 'Ametal';</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else if (Pos(SearchStr, ',He,Ne,Ar,') &gt; 0)&nbsp;</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; CorrectClass = 'Soy Gaz';</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else if (Pos(SearchStr, ',Li,Be,Na,Mg,Al,') &gt; 0)&nbsp;</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; CorrectClass = 'Metal';</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else if (Pos(SearchStr, ',B,Si,') &gt; 0)&nbsp;</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; CorrectClass = 'Yarimetal';</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (UserChoice == CorrectClass)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; CorrectCount = CorrectCount + 1;</div><div>&nbsp; &nbsp; &nbsp; InfoLabel.Text = 'DOGRU! ' + SelectedElement + ' elementi ' + CorrectClass + ' grubundadir.';</div><div>&nbsp; &nbsp; &nbsp; SelectedBtn.Enabled = False;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; SelectedElement = '';&nbsp;</div><div>&nbsp; &nbsp; &nbsp; ScoreLabel.Text = 'Skor: ' + IntToStr(CorrectCount) + ' / 18';</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; if (CorrectCount == 18)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; InfoLabel.Text = 'TEBRIKLER! Tum elementleri basariyla tamamladiniz!';</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; InfoLabel.Text = 'YANLIS! ' + SelectedElement + ' bir ' + UserChoice + ' degildir. Tekrar dene!';</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void ResetGame;</div><div>{</div><div>&nbsp; Btn1.Enabled = True; Btn2.Enabled = True; Btn3.Enabled = True; Btn4.Enabled = True;</div><div>&nbsp; Btn5.Enabled = True; Btn6.Enabled = True; Btn7.Enabled = True; Btn8.Enabled = True;</div><div>&nbsp; Btn9.Enabled = True; Btn10.Enabled = True; Btn11.Enabled = True; Btn12.Enabled = True;</div><div>&nbsp; Btn13.Enabled = True; Btn14.Enabled = True; Btn15.Enabled = True; Btn16.Enabled = True;</div><div>&nbsp; Btn17.Enabled = True; Btn18.Enabled = True;</div><div>&nbsp;&nbsp;</div><div>&nbsp; SelectedElement = '';</div><div>&nbsp; CorrectCount = 0;</div><div>&nbsp; InfoLabel.Text = 'Laboratuvar sifirlandi. Bir element secerek baslayin.';</div><div>&nbsp; ScoreLabel.Text = 'Skor: 0 / 18';</div><div>}</div><div><br></div><div>{</div><div>&nbsp; MyForm = TclForm.Create(Self);</div><div>&nbsp; SelectedElement = '';</div><div>&nbsp; CorrectCount = 0;</div><div><br></div><div>&nbsp; // --- 1. UST BASLIK ALANI ---</div><div>&nbsp; LayoutTop = MyForm.AddNewLayout(MyForm, 'LayoutTop');</div><div>&nbsp; LayoutTop.Align = alTop;</div><div>&nbsp; LayoutTop.Height = 50;</div><div><br></div><div>&nbsp; TitleLabel = MyForm.AddNewLabel(LayoutTop, 'TitleLabel', '8. Sinif Ilk 18 Element Laboratuvari');</div><div>&nbsp; TitleLabel.Align = alClient;</div><div>&nbsp; TitleLabel.Margins.Top = 10;</div><div>&nbsp; TitleLabel.Margins.Left = 10;</div><div><br></div><div>&nbsp; // --- 2. BILGI VE SKOR PANELI ---</div><div>&nbsp; LayoutInfo = MyForm.AddNewLayout(MyForm, 'LayoutInfo');</div><div>&nbsp; LayoutInfo.Align = alTop;</div><div>&nbsp; LayoutInfo.Height = 40;</div><div>&nbsp; LayoutInfo.Margins.Left = 10;</div><div>&nbsp; LayoutInfo.Margins.Right = 10;</div><div><br></div><div>&nbsp; ScoreLabel = MyForm.AddNewLabel(LayoutInfo, 'ScoreLabel', 'Skor: 0 / 18');</div><div>&nbsp; ScoreLabel.Align = alRight;</div><div>&nbsp; ScoreLabel.Width = 80;</div><div><br></div><div>&nbsp; InfoLabel = MyForm.AddNewLabel(LayoutInfo, 'InfoLabel', 'Tablodan bir element seciniz.');</div><div>&nbsp; InfoLabel.Align = alClient;</div><div><br></div><div>&nbsp; // --- 3. MUTLAK UYUMLU PERIYODIK TABLO ALANI ---</div><div>&nbsp; LayoutTable = MyForm.AddNewLayout(MyForm, 'LayoutTable');</div><div>&nbsp; LayoutTable.Align = alClient;</div><div>&nbsp; LayoutTable.Margins.Left = 10;</div><div>&nbsp; LayoutTable.Margins.Right = 10;</div><div>&nbsp; LayoutTable.Margins.Top = 15;</div><div><br></div><div>&nbsp; // 1. Periyot (H solda, He sagda - Gercek duzen)</div><div>&nbsp; LayoutRow1 = MyForm.AddNewLayout(LayoutTable, 'LayoutRow1');</div><div>&nbsp; LayoutRow1.Align = alTop; LayoutRow1.Height = 42; LayoutRow1.Margins.Bottom = 6;</div><div>&nbsp;&nbsp;</div><div>&nbsp; Btn1 = MyForm.AddNewButton(LayoutRow1, 'Btn1', 'H');&nbsp; Btn1.Align = alLeft; Btn1.Width = 38;</div><div>&nbsp; Btn2 = MyForm.AddNewButton(LayoutRow1, 'Btn2', 'He'); Btn2.Align = alRight; Btn2.Width = 38;</div><div><br></div><div>&nbsp; // 2. Periyot (8 Element eksiksiz yan yana)</div><div>&nbsp; LayoutRow2 = MyForm.AddNewLayout(LayoutTable, 'LayoutRow2');</div><div>&nbsp; LayoutRow2.Align = alTop; LayoutRow2.Height = 42; LayoutRow2.Margins.Bottom = 6;</div><div>&nbsp;&nbsp;</div><div>&nbsp; Btn3 = MyForm.AddNewButton(LayoutRow2, 'Btn3', 'Li'); Btn3.Align = alLeft; Btn3.Width = 38; Btn3.Margins.Right = 2;</div><div>&nbsp; Btn4 = MyForm.AddNewButton(LayoutRow2, 'Btn4', 'Be'); Btn4.Align = alLeft; Btn4.Width = 38; Btn4.Margins.Right = 2;</div><div>&nbsp; Btn5 = MyForm.AddNewButton(LayoutRow2, 'Btn5', 'B');&nbsp; Btn5.Align = alLeft; Btn5.Width = 38; Btn5.Margins.Right = 2;</div><div>&nbsp; Btn6 = MyForm.AddNewButton(LayoutRow2, 'Btn6', 'C');&nbsp; Btn6.Align = alLeft; Btn6.Width = 38; Btn6.Margins.Right = 2;</div><div>&nbsp; Btn7 = MyForm.AddNewButton(LayoutRow2, 'Btn7', 'N');&nbsp; Btn7.Align = alLeft; Btn7.Width = 38; Btn7.Margins.Right = 2;</div><div>&nbsp; Btn8 = MyForm.AddNewButton(LayoutRow2, 'Btn8', 'O');&nbsp; Btn8.Align = alLeft; Btn8.Width = 38; Btn8.Margins.Right = 2;</div><div>&nbsp; Btn9 = MyForm.AddNewButton(LayoutRow2, 'Btn9', 'F');&nbsp; Btn9.Align = alLeft; Btn9.Width = 38; Btn9.Margins.Right = 2;</div><div>&nbsp; Btn10 = MyForm.AddNewButton(LayoutRow2, 'Btn10', 'Ne'); Btn10.Align = alLeft; Btn10.Width = 38;</div><div><br></div><div>&nbsp; // 3. Periyot (8 Element eksiksiz yan yana)</div><div>&nbsp; LayoutRow3 = MyForm.AddNewLayout(LayoutTable, 'LayoutRow3');</div><div>&nbsp; LayoutRow3.Align = alTop; LayoutRow3.Height = 42;</div><div>&nbsp;&nbsp;</div><div>&nbsp; Btn11 = MyForm.AddNewButton(LayoutRow3, 'Btn11', 'Na'); Btn11.Align = alLeft; Btn11.Width = 38; Btn11.Margins.Right = 2;</div><div>&nbsp; Btn12 = MyForm.AddNewButton(LayoutRow3, 'Btn12', 'Mg'); Btn12.Align = alLeft; Btn12.Width = 38; Btn12.Margins.Right = 2;</div><div>&nbsp; Btn13 = MyForm.AddNewButton(LayoutRow3, 'Btn13', 'Al'); Btn13.Align = alLeft; Btn13.Width = 38; Btn13.Margins.Right = 2;</div><div>&nbsp; Btn14 = MyForm.AddNewButton(LayoutRow3, 'Btn14', 'Si'); Btn14.Align = alLeft; Btn14.Width = 38; Btn14.Margins.Right = 2;</div><div>&nbsp; Btn15 = MyForm.AddNewButton(LayoutRow3, 'Btn15', 'P');&nbsp; Btn15.Align = alLeft; Btn15.Width = 38; Btn15.Margins.Right = 2;</div><div>&nbsp; Btn16 = MyForm.AddNewButton(LayoutRow3, 'Btn16', 'S');&nbsp; Btn16.Align = alLeft; Btn16.Width = 38; Btn16.Margins.Right = 2;</div><div>&nbsp; Btn17 = MyForm.AddNewButton(LayoutRow3, 'Btn17', 'Cl'); Btn17.Align = alLeft; Btn17.Width = 38; Btn17.Margins.Right = 2;</div><div>&nbsp; Btn18 = MyForm.AddNewButton(LayoutRow3, 'Btn18', 'Ar'); Btn18.Align = alLeft; Btn18.Width = 38;</div><div><br></div><div>&nbsp; // Element Butonlari Tiklama Olaylari</div><div>&nbsp; MyForm.AddNewEvent(Btn1, tbeOnClick, 'ElementSelect'); MyForm.AddNewEvent(Btn2, tbeOnClick, 'ElementSelect');</div><div>&nbsp; MyForm.AddNewEvent(Btn3, tbeOnClick, 'ElementSelect'); MyForm.AddNewEvent(Btn4, tbeOnClick, 'ElementSelect');</div><div>&nbsp; MyForm.AddNewEvent(Btn5, tbeOnClick, 'ElementSelect'); MyForm.AddNewEvent(Btn6, tbeOnClick, 'ElementSelect');</div><div>&nbsp; MyForm.AddNewEvent(Btn7, tbeOnClick, 'ElementSelect'); MyForm.AddNewEvent(Btn8, tbeOnClick, 'ElementSelect');</div><div>&nbsp; MyForm.AddNewEvent(Btn9, tbeOnClick, 'ElementSelect'); MyForm.AddNewEvent(Btn10, tbeOnClick, 'ElementSelect');</div><div>&nbsp; MyForm.AddNewEvent(Btn11, tbeOnClick, 'ElementSelect'); MyForm.AddNewEvent(Btn12, tbeOnClick, 'ElementSelect');</div><div>&nbsp; MyForm.AddNewEvent(Btn13, tbeOnClick, 'ElementSelect'); MyForm.AddNewEvent(Btn14, tbeOnClick, 'ElementSelect');</div><div>&nbsp; MyForm.AddNewEvent(Btn15, tbeOnClick, 'ElementSelect'); MyForm.AddNewEvent(Btn16, tbeOnClick, 'ElementSelect');</div><div>&nbsp; MyForm.AddNewEvent(Btn17, tbeOnClick, 'ElementSelect'); MyForm.AddNewEvent(Btn18, tbeOnClick, 'ElementSelect');</div><div><br></div><div>&nbsp; // --- 4. EN ALT ALAN: SIFIRLAMA BARBARI ---</div><div>&nbsp; LayoutBottomBar = MyForm.AddNewLayout(MyForm, 'LayoutBottomBar');</div><div>&nbsp; LayoutBottomBar.Align = alBottom;</div><div>&nbsp; LayoutBottomBar.Height = 50;</div><div>&nbsp; LayoutBottomBar.Margins.Left = 15;</div><div>&nbsp; LayoutBottomBar.Margins.Right = 15;</div><div>&nbsp; LayoutBottomBar.Margins.Bottom = 10;</div><div><br></div><div>&nbsp; BtnReset = MyForm.AddNewButton(LayoutBottomBar, 'BtnReset', 'Laboratuvari Yeniden Baslat');</div><div>&nbsp; BtnReset.Align = alClient;</div><div>&nbsp; MyForm.AddNewEvent(BtnReset, tbeOnClick, 'ResetGame');</div><div><br></div><div>&nbsp; // --- 5. SINIFLANDIRMA SECENEKLERI (2x2 Genis Butonlar) ---</div><div>&nbsp; LayoutButtons = MyForm.AddNewLayout(MyForm, 'LayoutButtons');</div><div>&nbsp; LayoutButtons.Align = alBottom;&nbsp;</div><div>&nbsp; LayoutButtons.Height = 110;</div><div>&nbsp; LayoutButtons.Margins.Left = 15;</div><div>&nbsp; LayoutButtons.Margins.Right = 15;</div><div>&nbsp; LayoutButtons.Margins.Bottom = 5;</div><div><br></div><div>&nbsp; // Cevap Grubu 1. Satir</div><div>&nbsp; LayoutAns1 = MyForm.AddNewLayout(LayoutButtons, 'LayoutAns1');</div><div>&nbsp; LayoutAns1.Align = alTop; LayoutAns1.Height = 50; LayoutAns1.Margins.Bottom = 6;</div><div><br></div><div>&nbsp; BtnMetal = MyForm.AddNewButton(LayoutAns1, 'BtnMetal', 'Metal');</div><div>&nbsp; BtnMetal.Align = alLeft; BtnMetal.Width = 140;</div><div><br></div><div>&nbsp; BtnAmetal = MyForm.AddNewButton(LayoutAns1, 'BtnAmetal', 'Ametal');</div><div>&nbsp; BtnAmetal.Align = alRight; BtnAmetal.Width = 140;</div><div><br></div><div>&nbsp; // Cevap Grubu 2. Satir</div><div>&nbsp; LayoutAns2 = MyForm.AddNewLayout(LayoutButtons, 'LayoutAns2');</div><div>&nbsp; LayoutAns2.Align = alTop; LayoutAns2.Height = 50;</div><div><br></div><div>&nbsp; BtnYarimetal = MyForm.AddNewButton(LayoutAns2, 'BtnYarimetal', 'Yarimetal');</div><div>&nbsp; BtnYarimetal.Align = alLeft; BtnYarimetal.Width = 140;</div><div><br></div><div>&nbsp; BtnSoygaz = MyForm.AddNewButton(LayoutAns2, 'BtnSoygaz', 'Soy Gaz');</div><div>&nbsp; BtnSoygaz.Align = alRight; BtnSoygaz.Width = 140;</div><div><br></div><div>&nbsp; // Sınıflandırma Butonları Event Atamaları</div><div>&nbsp; MyForm.AddNewEvent(BtnMetal, tbeOnClick, 'CheckClassification');</div><div>&nbsp; MyForm.AddNewEvent(BtnAmetal, tbeOnClick, 'CheckClassification');</div><div>&nbsp; MyForm.AddNewEvent(BtnYarimetal, tbeOnClick, 'CheckClassification');</div><div>&nbsp; MyForm.AddNewEvent(BtnSoygaz, tbeOnClick, 'CheckClassification');</div><div><br></div><div>&nbsp; MyForm.Run;</div><div>}</div><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/v833ccba57c9e4d2798f2e76cebdd09a11778172276447" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/v833ccba57c9e4d2798f2e76cebdd09a11778172276447"</a> integrity="sha512-57MDmcccJXYtNnH+ZiBwzC4jb2rvgVCEokYN+L/nLlmO8rfYT/gIpW2A569iJ/3b+0UEasghjuZH/ma3wIs/EQ==" data-cf-beacon="{&quot;version&quot;:&quot;2024.11.0&quot;,&quot;token&quot;:&quot;439455f3e46c40b98dbd42a2f1a954d8&quot;,&quot;r&quot;:1,&quot;server_timing&quot;:{&quot;name&quot;:{&quot;cfCacheStatus&quot;:true,&quot;cfEdge&quot;:true,&quot;cfExtPri&quot;:true,&quot;cfL4&quot;:true,&quot;cfOrigin&quot;:true,&quot;cfSpeedBrain&quot;:true},&quot;location_startswith&quot;:null}}" crossorigin="anonymous">]]>
   </description>
   <pubDate>Mon, 18 May 2026 16:33:10 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1542&amp;PID=3561#3561</guid>
  </item> 
  <item>
   <title><![CDATA[KOD HATA : 8.s&#305;n&#305;f m&#252;fredat&#305;nda bulunan periyodik...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1542&amp;PID=3558#3558</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=464">Yasemin</a><br /><strong>Konu:</strong> 1542<br /><strong>Gönderim Zamanı:</strong> 18&nbsp;Mayıs&nbsp;2026 Saat 14:06<br /><br />8.sınıf müfredatında bulunan periyodik tablo konusundaki ilk 18 element ile ilgili sanal laboratuvar uygulaması hazırlamak istiyorum.Aynı zamada uygulama elementleri metal, ametal,soygaz olarak sınıflandıracak şekilde tasarlanmış olmalıdır.Bu uygulamanın çalışması için gerekli kodu yazmaya çalıştım ancak hata verdi.Hata nereden kaynaklanıyor olabilir.Yardımcı olabilir misiniz?<div><br style=": rgb251, 251, 253;"></div><div><div>Var</div><div>&nbsp; MyForm: TclForm;</div><div>&nbsp; TitleLabel, InfoLabel: TclLabel;</div><div>&nbsp; LayoutTop, LayoutTable, LayoutButtons: TclLayout;</div><div>&nbsp; // Sınıflandırma Butonları</div><div>&nbsp; BtnMetal, BtnAmetal, BtnYarimetal, BtnSoygaz: TclButton;</div><div>&nbsp; SelectedElement: String;</div><div>&nbsp; SelectedBtn: TclButton;</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Periyodik Tablo Element Butonları (İlk 18 Element)</div><div>&nbsp; Btn1, Btn2, Btn3, Btn4, Btn5, Btn6, Btn7, Btn8, Btn9, Btn10: TclButton;</div><div>&nbsp; Btn11, Btn12, Btn13, Btn14, Btn15, Btn16, Btn17, Btn18: TclButton;</div><div><br></div><div>// Element seçildiğinde çalışacak fonksiyon</div><div>void ElementSelect;</div><div>var</div><div>&nbsp; ClickedBtn: TclButton;</div><div>begin</div><div>&nbsp; ClickedBtn := TclButton(MyForm.clSender);</div><div>&nbsp; SelectedElement := ClickedBtn.Caption;</div><div>&nbsp; SelectedBtn := ClickedBtn;</div><div>&nbsp;&nbsp;</div><div>&nbsp; InfoLabel.Text := 'Seçilen Element: ' + SelectedElement + ' -&gt; Şimdi alttaki butonlardan sınıfını seçerek ETİKETLEYİN.';</div><div>&nbsp; InfoLabel.StyledSettings := &#091;&#093;;</div><div>&nbsp; InfoLabel.Font.Color := clAlphaColor.clHexToColor('#2c3e50');</div><div>end;</div><div><br></div><div>// Sınıf seçildiğinde kontrol eden fonksiyon</div><div>void CheckClassification;</div><div>var</div><div>&nbsp; ClickedClassBtn: TclButton;</div><div>&nbsp; UserChoice, CorrectClass: String;</div><div>begin</div><div>&nbsp; if SelectedElement = '' then</div><div>&nbsp; begin</div><div>&nbsp; &nbsp; ShowMessage('Lütfen önce periyodik tablodan bir element seçiniz!');</div><div>&nbsp; &nbsp; Exit;</div><div>&nbsp; end;</div><div><br></div><div>&nbsp; ClickedClassBtn := TclButton(MyForm.clSender);</div><div>&nbsp; UserChoice := ClickedClassBtn.Caption;</div><div>&nbsp; CorrectClass := '';</div><div><br></div><div>&nbsp; // 1-18 Element Doğrulama Mantığı</div><div>&nbsp; if (SelectedElement = 'H') or (SelectedElement = 'C') or (SelectedElement = 'N') or&nbsp;</div><div>&nbsp; &nbsp; &nbsp;(SelectedElement = 'O') or (SelectedElement = 'F') or (SelectedElement = 'P') or&nbsp;</div><div>&nbsp; &nbsp; &nbsp;(SelectedElement = 'S') or (SelectedElement = 'Cl') then&nbsp;</div><div>&nbsp; &nbsp; CorrectClass := 'Ametal'</div><div>&nbsp; else if (SelectedElement = 'He') or (SelectedElement = 'Ne') or (SelectedElement = 'Ar') then&nbsp;</div><div>&nbsp; &nbsp; CorrectClass := 'Soy Gaz'</div><div>&nbsp; else if (SelectedElement = 'Li') or (SelectedElement = 'Be') or (SelectedElement = 'Na') or&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (SelectedElement = 'Mg') or (SelectedElement = 'Al') then&nbsp;</div><div>&nbsp; &nbsp; CorrectClass := 'Metal'</div><div>&nbsp; else if (SelectedElement = 'B') or (SelectedElement = 'Si') then&nbsp;</div><div>&nbsp; &nbsp; CorrectClass := 'Yarımetal';</div><div><br></div><div>&nbsp; // Sonuç ve Etiketleme Kontrolü</div><div>&nbsp; if UserChoice = CorrectClass then</div><div>&nbsp; begin</div><div>&nbsp; &nbsp; InfoLabel.Text := 'Doğru! ' + SelectedElement + ' elementi bir ' + CorrectClass + 'dır.';</div><div>&nbsp; &nbsp; InfoLabel.Font.Color := clAlphaColor.clHexToColor('#27ae60');</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; // Doğru bilinince Tablo Üzerinde Renkli Gruplandırma yapılıyor</div><div>&nbsp; &nbsp; if CorrectClass = 'Metal' then SelectedBtn.BackgroundColor := clAlphaColor.clHexToColor('#e74c3c')</div><div>&nbsp; &nbsp; else if CorrectClass = 'Ametal' then SelectedBtn.BackgroundColor := clAlphaColor.clHexToColor('#3498db')</div><div>&nbsp; &nbsp; else if CorrectClass = 'Yarımetal' then SelectedBtn.BackgroundColor := clAlphaColor.clHexToColor('#f1c40f')</div><div>&nbsp; &nbsp; else if CorrectClass = 'Soy Gaz' then SelectedBtn.BackgroundColor := clAlphaColor.clHexToColor('#9b59b6');</div><div>&nbsp; end</div><div>&nbsp; else</div><div>&nbsp; begin</div><div>&nbsp; &nbsp; InfoLabel.Text := 'Hatalı! ' + SelectedElement + ' elementi ' + UserChoice + ' değildir.';</div><div>&nbsp; &nbsp; InfoLabel.Font.Color := clAlphaColor.clHexToColor('#c0392b');</div><div>&nbsp; end;</div><div>&nbsp;&nbsp;</div><div>&nbsp; SelectedElement := '';</div><div>end;</div><div><br></div><div>// Ana Kod Bloğu</div><div>begin</div><div>&nbsp; MyForm := TclForm.Create(Self);</div><div>&nbsp; MyForm.Title := 'Periyodik Tablo Etiketleme Laboratuvarı';</div><div>&nbsp; SelectedElement := '';</div><div><br></div><div>&nbsp; // Üst Bilgilendirme Paneli</div><div>&nbsp; LayoutTop := MyForm.AddNewLayout(MyForm, 'LayoutTop');</div><div>&nbsp; LayoutTop.Align := alTop;</div><div>&nbsp; LayoutTop.Height := 100;</div><div><br></div><div>&nbsp; TitleLabel := MyForm.AddNewLabel(LayoutTop, 'TitleLabel', 'FB.8.5.1.1 Periyodik Tablo Sanal Laboratuvarı');</div><div>&nbsp; TitleLabel.Align := alTop;</div><div>&nbsp; TitleLabel.TextSettings.Font.Size := 15;</div><div>&nbsp; TitleLabel.TextSettings.Font.Style := &#091;fsBold&#093;;</div><div>&nbsp; TitleLabel.TextSettings.HorzAlign := txCenter;</div><div><br></div><div>&nbsp; InfoLabel := MyForm.AddNewLabel(LayoutTop, 'InfoLabel', 'Tablodan bir element seçip alttaki gruplarla eşleştirin.');</div><div>&nbsp; InfoLabel.Align := alClient;</div><div>&nbsp; InfoLabel.Margins.Left := 10; InfoLabel.Margins.Right := 10;</div><div>&nbsp; InfoLabel.TextSettings.Font.Size := 12;</div><div>&nbsp; InfoLabel.TextSettings.HorzAlign := txCenter;</div><div>&nbsp; InfoLabel.TextSettings.WordWrap := True;</div><div><br></div><div>&nbsp; // PERİYODİK TABLO ALANI (Koordinatlı Yerleşim)</div><div>&nbsp; LayoutTable := MyForm.AddNewLayout(MyForm, 'LayoutTable');</div><div>&nbsp; LayoutTable.Align := alClient;</div><div>&nbsp; LayoutTable.Margins.Left := 10; LayoutTable.Margins.Top := 10;</div><div><br></div><div>&nbsp; // 1. Periyot (Satır 1)</div><div>&nbsp; Btn1 := MyForm.AddNewButton(LayoutTable, 'Btn1', 'H');&nbsp; Btn1.Width := 40; Btn1.Height := 40; Btn1.Position.X := 0; Btn1.Position.Y := 0;</div><div>&nbsp; Btn2 := MyForm.AddNewButton(LayoutTable, 'Btn2', 'He'); Btn2.Width := 40; Btn2.Height := 40; Btn2.Position.X := 280; Btn2.Position.Y := 0;</div><div><br></div><div>&nbsp; // 2. Periyot (Satır 2)</div><div>&nbsp; Btn3 := MyForm.AddNewButton(LayoutTable, 'Btn3', 'Li'); Btn3.Width := 40; Btn3.Height := 40; Btn3.Position.X := 0; Btn3.Position.Y := 45;</div><div>&nbsp; Btn4 := MyForm.AddNewButton(LayoutTable, 'Btn4', 'Be'); Btn4.Width := 40; Btn4.Height := 40; Btn4.Position.X := 45; Btn4.Position.Y := 45;</div><div>&nbsp; Btn5 := MyForm.AddNewButton(LayoutTable, 'Btn5', 'B');&nbsp; Btn5.Width := 40; Btn5.Height := 40; Btn5.Position.X := 120; Btn5.Position.Y := 45;</div><div>&nbsp; Btn6 := MyForm.AddNewButton(LayoutTable, 'Btn6', 'C');&nbsp; Btn6.Width := 40; Btn6.Height := 40; Btn6.Position.X := 160; Btn6.Position.Y := 45;</div><div>&nbsp; Btn7 := MyForm.AddNewButton(LayoutTable, 'Btn7', 'N');&nbsp; Btn7.Width := 40; Btn7.Height := 40; Btn7.Position.X := 200; Btn7.Position.Y := 45;</div><div>&nbsp; Btn8 := MyForm.AddNewButton(LayoutTable, 'Btn8', 'O');&nbsp; Btn8.Width := 40; Btn8.Height := 40; Btn8.Position.X := 240; Btn8.Position.Y := 45;</div><div>&nbsp; Btn9 := MyForm.AddNewButton(LayoutTable, 'Btn9', 'F');&nbsp; Btn9.Width := 40; Btn9.Height := 40; Btn9.Position.X := 280; Btn9.Position.Y := 45;</div><div>&nbsp; Btn10 := MyForm.AddNewButton(LayoutTable, 'Btn10', 'Ne'); Btn10.Width := 40; Btn10.Height := 40; Btn10.Position.X := 320; Btn10.Position.Y := 45;</div><div><br></div><div>&nbsp; // 3. Periyot (Satır 3)</div><div>&nbsp; Btn11 := MyForm.AddNewButton(LayoutTable, 'Btn11', 'Na'); Btn11.Width := 40; Btn11.Height := 40; Btn11.Position.X := 0; Btn11.Position.Y := 90;</div><div>&nbsp; Btn12 := MyForm.AddNewButton(LayoutTable, 'Btn12', 'Mg'); Btn12.Width := 40; Btn12.Height := 40; Btn12.Position.X := 45; Btn12.Position.Y := 90;</div><div>&nbsp; Btn13 := MyForm.AddNewButton(LayoutTable, 'Btn13', 'Al'); Btn13.Width := 40; Btn13.Height := 40; Btn13.Position.X := 120; Btn13.Position.Y := 90;</div><div>&nbsp; Btn14 := MyForm.AddNewButton(LayoutTable, 'Btn14', 'Si'); Btn14.Width := 40; Btn14.Height := 40; Btn14.Position.X := 160; Btn14.Position.Y := 90;</div><div>&nbsp; Btn15 := MyForm.AddNewButton(LayoutTable, 'Btn15', 'P');&nbsp; Btn15.Width := 40; Btn15.Height := 40; Btn15.Position.X := 200; Btn15.Position.Y := 90;</div><div>&nbsp; Btn16 := MyForm.AddNewButton(LayoutTable, 'Btn16', 'S');&nbsp; Btn16.Width := 40; Btn16.Height := 40; Btn16.Position.X := 240; Btn16.Position.Y := 90;</div><div>&nbsp; Btn17 := MyForm.AddNewButton(LayoutTable, 'Btn17', 'Cl'); Btn17.Width := 40; Btn17.Height := 40; Btn17.Position.X := 280; Btn17.Position.Y := 90;</div><div>&nbsp; Btn18 := MyForm.AddNewButton(LayoutTable, 'Btn18', 'Ar'); Btn18.Width := 40; Btn18.Height := 40; Btn18.Position.X := 320; Btn18.Position.Y := 90;</div><div><br></div><div>&nbsp; // Tıklama Olaylarını Bağlama</div><div>&nbsp; MyForm.AddNewEvent(Btn1, tclOnClick, 'ElementSelect'); MyForm.AddNewEvent(Btn2, tclOnClick, 'ElementSelect');</div><div>&nbsp; MyForm.AddNewEvent(Btn3, tclOnClick, 'ElementSelect'); MyForm.AddNewEvent(Btn4, tclOnClick, 'ElementSelect');</div><div>&nbsp; MyForm.AddNewEvent(Btn5, tclOnClick, 'ElementSelect'); MyForm.AddNewEvent(Btn6, tclOnClick, 'ElementSelect');</div><div>&nbsp; MyForm.AddNewEvent(Btn7, tclOnClick, 'ElementSelect'); MyForm.AddNewEvent(Btn8, tclOnClick, 'ElementSelect');</div><div>&nbsp; MyForm.AddNewEvent(Btn9, tclOnClick, 'ElementSelect'); MyForm.AddNewEvent(Btn10, tclOnClick, 'ElementSelect');</div><div>&nbsp; MyForm.AddNewEvent(Btn11, tclOnClick, 'ElementSelect'); MyForm.AddNewEvent(Btn12, tclOnClick, 'ElementSelect');</div><div>&nbsp; MyForm.AddNewEvent(Btn13, tclOnClick, 'ElementSelect'); MyForm.AddNewEvent(Btn14, tclOnClick, 'ElementSelect');</div><div>&nbsp; MyForm.AddNewEvent(Btn15, tclOnClick, 'ElementSelect'); MyForm.AddNewEvent(Btn16, tclOnClick, 'ElementSelect');</div><div>&nbsp; MyForm.AddNewEvent(Btn17, tclOnClick, 'ElementSelect'); MyForm.AddNewEvent(Btn18, tclOnClick, 'ElementSelect');</div><div><br></div><div>&nbsp; // ALT SINIFLANDIRMA BUTONLARI (Cevap Anahtarı Alanı)</div><div>&nbsp; LayoutButtons := MyForm.AddNewLayout(MyForm, 'LayoutButtons');</div><div>&nbsp; LayoutButtons.Align := alBottom;</div><div>&nbsp; LayoutButtons.Height := 80;</div><div>&nbsp; LayoutButtons.Margins.Bottom := 10;</div><div><br></div><div>&nbsp; BtnMetal := MyForm.AddNewButton(LayoutButtons, 'BtnMetal', 'Metal');</div><div>&nbsp; BtnMetal.Align := alLeft; BtnMetal.Width := 85; BtnMetal.Margins.Left := 5;</div><div>&nbsp; BtnMetal.BackgroundColor := clAlphaColor.clHexToColor('#e74c3c'); // Kırmızı</div><div><br></div><div>&nbsp; BtnAmetal := MyForm.AddNewButton(LayoutButtons, 'BtnAmetal', 'Ametal');</div><div>&nbsp; BtnAmetal.Align := alLeft; BtnAmetal.Width := 85; BtnAmetal.Margins.Left := 5;</div><div>&nbsp; BtnAmetal.BackgroundColor := clAlphaColor.clHexToColor('#3498db'); // Mavi</div><div><br></div><div>&nbsp; BtnYarimetal := MyForm.AddNewButton(LayoutButtons, 'BtnYarimetal', 'Yarımetal');</div><div>&nbsp; BtnYarimetal.Align := alLeft; BtnYarimetal.Width := 85; BtnYarimetal.Margins.Left := 5;</div><div>&nbsp; BtnYarimetal.BackgroundColor := clAlphaColor.clHexToColor('#f1c40f'); // Sarı</div><div><br></div><div>&nbsp; BtnSoygaz := MyForm.AddNewButton(LayoutButtons, 'BtnSoygaz', 'Soy Gaz');</div><div>&nbsp; BtnSoygaz.Align := alLeft; BtnSoygaz.Width := 85; BtnSoygaz.Margins.Left := 5;</div><div>&nbsp; BtnSoygaz.BackgroundColor := clAlphaColor.clHexToColor('#9b59b6'); // Mor</div><div><br></div><div>&nbsp; // Sınıf Buton Etkinlikleri</div><div>&nbsp; MyForm.AddNewEvent(BtnMetal, tclOnClick, 'CheckClassification');</div><div>&nbsp; MyForm.AddNewEvent(BtnAmetal, tclOnClick, 'CheckClassification');</div><div>&nbsp; MyForm.AddNewEvent(BtnYarimetal, tclOnClick, 'CheckClassification');</div><div>&nbsp; MyForm.AddNewEvent(BtnSoygaz, tclOnClick, 'CheckClassification');</div><div><br></div><div>&nbsp; MyForm.Run;</div><div>end;</div></div><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/v833ccba57c9e4d2798f2e76cebdd09a11778172276447" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/v833ccba57c9e4d2798f2e76cebdd09a11778172276447"</a> integrity="sha512-57MDmcccJXYtNnH+ZiBwzC4jb2rvgVCEokYN+L/nLlmO8rfYT/gIpW2A569iJ/3b+0UEasghjuZH/ma3wIs/EQ==" data-cf-beacon="{&quot;version&quot;:&quot;2024.11.0&quot;,&quot;token&quot;:&quot;439455f3e46c40b98dbd42a2f1a954d8&quot;,&quot;r&quot;:1,&quot;server_timing&quot;:{&quot;name&quot;:{&quot;cfCacheStatus&quot;:true,&quot;cfEdge&quot;:true,&quot;cfExtPri&quot;:true,&quot;cfL4&quot;:true,&quot;cfOrigin&quot;:true,&quot;cfSpeedBrain&quot;:true},&quot;location_startswith&quot;:null}}" crossorigin="anonymous">]]>
   </description>
   <pubDate>Mon, 18 May 2026 14:06:30 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1542&amp;PID=3558#3558</guid>
  </item> 
 </channel>
</rss>