<?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 : Hesap Makinesi</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : Hesap Makinesi]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 10:53:24 +0000</pubDate>
  <lastBuildDate>Wed, 09 Jul 2025 17:49:43 +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=1072</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[Hesap Makinesi : Merhaba Celal, att&#305;&#287;&#305;n kodu inceleyece&#287;im...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1072&amp;PID=2158#2158</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=318">Raziye Nur</a><br /><strong>Konu:</strong> 1072<br /><strong>Gönderim Zamanı:</strong> 09&nbsp;Temmuz&nbsp;2025 Saat 17:49<br /><br />Merhaba Celal, attığın kodu inceleyeceğim çok teşekkürler.]]>
   </description>
   <pubDate>Wed, 09 Jul 2025 17:49:43 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1072&amp;PID=2158#2158</guid>
  </item> 
  <item>
   <title><![CDATA[Hesap Makinesi : Merhaba Semih, &#231;ok te&#351;ekk&#252;r ederim...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1072&amp;PID=2157#2157</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=318">Raziye Nur</a><br /><strong>Konu:</strong> 1072<br /><strong>Gönderim Zamanı:</strong> 09&nbsp;Temmuz&nbsp;2025 Saat 17:48<br /><br />Merhaba Semih, çok teşekkür ederim]]>
   </description>
   <pubDate>Wed, 09 Jul 2025 17:48:42 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1072&amp;PID=2157#2157</guid>
  </item> 
  <item>
   <title><![CDATA[Hesap Makinesi : Merhaba Raziye,hesap makinas&#305;n&#305;...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1072&amp;PID=2156#2156</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=324">CelalTugay</a><br /><strong>Konu:</strong> 1072<br /><strong>Gönderim Zamanı:</strong> 09&nbsp;Temmuz&nbsp;2025 Saat 17:12<br /><br /><div>Merhaba Raziye,<br>hesap makinasını butonla yapmak için sana örnek kodlarımı gönderiyorum, kodların içinde ufak ufak notlar aldım nerede ne yaptığımı oradan bakıp yararlanabilirsin. Kolay gelsin.<br><br>var&nbsp;&nbsp;</div><div>&nbsp;MyForm: TclForm;</div><div>&nbsp;testLabel : TclLabel;</div><div>&nbsp;Btn0,Btn1,Btn2,Btn3,BtnTopla,Btn4,Btn5,Btn6,BtnCikar,Btn7,Btn8,Btn9,BtnBol,BtnCarp,BtnSil,BtnSonuc: TClProButton;</div><div>&nbsp;testEdit : TclEdit;</div><div>&nbsp;testLayout,testLayout2,testLayout3,testLayout4 : TclLayout;</div><div>&nbsp;islem: String;</div><div>&nbsp;nolucak: Boolean;</div><div>&nbsp;ilkSayi: Integer;</div><div>&nbsp;</div><div>&nbsp;// Buton tıklamalarını tanımlıyoruz</div><div>&nbsp;</div><div>void Btn0Click {</div><div>&nbsp; if (nolucak) {&nbsp;</div><div>&nbsp; &nbsp; testEdit.Text = '';</div><div>&nbsp; &nbsp; nolucak = false;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (testEdit.Text == '0') {</div><div>&nbsp; &nbsp; testEdit.Text = '';</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; testEdit.Text = testEdit.Text + '0';</div><div>}</div><div>&nbsp; &nbsp;</div><div><br></div><div>void Btn1Click {</div><div>&nbsp; if (nolucak) {&nbsp;</div><div>&nbsp; &nbsp; testEdit.Text = '';</div><div>&nbsp; &nbsp; nolucak = false;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (testEdit.Text == '0') {</div><div>&nbsp; &nbsp; testEdit.Text = '';</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; testEdit.Text = testEdit.Text + '1';</div><div>}</div><div><br></div><div>void Btn2Click {</div><div>&nbsp; if (nolucak) {&nbsp;</div><div>&nbsp; &nbsp; testEdit.Text = '';</div><div>&nbsp; &nbsp; nolucak = false;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (testEdit.Text == '0') {</div><div>&nbsp; &nbsp; testEdit.Text = '';</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; testEdit.Text = testEdit.Text + '2';</div><div>}</div><div><br></div><div>void Btn3Click {</div><div>&nbsp; if (nolucak) {&nbsp;</div><div>&nbsp; &nbsp; testEdit.Text = '';</div><div>&nbsp; &nbsp; nolucak = false;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (testEdit.Text == '0') {</div><div>&nbsp; &nbsp; testEdit.Text = '';</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; testEdit.Text = testEdit.Text + '3';</div><div>}</div><div><br></div><div>void Btn4Click {</div><div>&nbsp; if (nolucak) {&nbsp;</div><div>&nbsp; &nbsp; testEdit.Text = '';</div><div>&nbsp; &nbsp; nolucak = false;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (testEdit.Text == '0') {</div><div>&nbsp; &nbsp; testEdit.Text = '';</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; testEdit.Text = testEdit.Text + '4';</div><div>}</div><div><br></div><div>void Btn5Click {</div><div>&nbsp; if (nolucak) {&nbsp;</div><div>&nbsp; &nbsp; testEdit.Text = '';</div><div>&nbsp; &nbsp; nolucak = false;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (testEdit.Text == '0') {</div><div>&nbsp; &nbsp; testEdit.Text = '';</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; testEdit.Text = testEdit.Text + '5';</div><div>}</div><div><br></div><div>void Btn6Click {</div><div>&nbsp; if (nolucak) {&nbsp;</div><div>&nbsp; &nbsp; testEdit.Text = '';</div><div>&nbsp; &nbsp; nolucak = false;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (testEdit.Text == '0') {</div><div>&nbsp; &nbsp; testEdit.Text = '';</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; testEdit.Text = testEdit.Text + '6';</div><div>}</div><div><br></div><div>void Btn7Click {</div><div>&nbsp; if (nolucak) {&nbsp;</div><div>&nbsp; &nbsp; testEdit.Text = '';</div><div>&nbsp; &nbsp; nolucak = false;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (testEdit.Text == '0') {</div><div>&nbsp; &nbsp; testEdit.Text = '';</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; testEdit.Text = testEdit.Text + '7';</div><div>}</div><div><br></div><div>void Btn8Click {</div><div>&nbsp; if (nolucak) {&nbsp;</div><div>&nbsp; &nbsp; testEdit.Text = '';</div><div>&nbsp; &nbsp; nolucak = false;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (testEdit.Text == '0') {</div><div>&nbsp; &nbsp; testEdit.Text = '';</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; testEdit.Text = testEdit.Text + '8';</div><div>}</div><div><br></div><div>void Btn9Click {</div><div>&nbsp; if (nolucak) {&nbsp;</div><div>&nbsp; &nbsp; testEdit.Text = '';</div><div>&nbsp; &nbsp; nolucak = false;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (testEdit.Text == '0') {</div><div>&nbsp; &nbsp; testEdit.Text = '';</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; testEdit.Text = testEdit.Text + '9';</div><div>}</div><div><br></div><div><br></div><div>void BtnToplaClick {</div><div>&nbsp; islem='+'</div><div>&nbsp; nolucak=true;</div><div>&nbsp; ilkSayi=StrToInt(testEdit.Text);</div><div>}</div><div><br></div><div>void BtnCikarClick {</div><div>&nbsp; islem='-'</div><div>&nbsp; nolucak=true;</div><div>&nbsp; ilkSayi=StrToInt(testEdit.Text);</div><div>}</div><div><br></div><div>void BtnBolClick {</div><div>&nbsp; islem='÷'</div><div>&nbsp; nolucak=true;</div><div>&nbsp; ilkSayi=StrToInt(testEdit.Text);</div><div>}</div><div><br></div><div>void BtnCarpClick {</div><div>&nbsp; islem='X'</div><div>&nbsp; nolucak=true;</div><div>&nbsp; ilkSayi=StrToInt(testEdit.Text);</div><div>}</div><div><br></div><div>void BtnSonucClick&nbsp;</div><div>var&nbsp;</div><div>&nbsp; ikinciSayi,sonuc: Integer;</div><div>{</div><div>&nbsp; ikinciSayi= StrToInt(testEdit.Text);</div><div>&nbsp; sonuc=0;</div><div>&nbsp; if (islem == '+') {&nbsp;</div><div>&nbsp; &nbsp; sonuc = (ilkSayi + ikinciSayi)</div><div>&nbsp; &nbsp; }</div><div>&nbsp; else if (islem == '-') {&nbsp;</div><div>&nbsp; &nbsp; sonuc = (ilkSayi - ikinciSayi)</div><div>&nbsp; &nbsp; }</div><div>&nbsp; else if (islem == 'X') {</div><div>&nbsp; &nbsp; sonuc = (ilkSayi * ikinciSayi)</div><div>&nbsp; &nbsp; }</div><div>&nbsp; else if (islem == '÷') {</div><div>&nbsp; &nbsp; sonuc = (ilkSayi / ikinciSayi)</div><div>&nbsp; &nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp;testEdit.Text = IntToStr(sonuc);</div><div>}</div><div><br></div><div><br></div><div>void BtnSilClick {</div><div>&nbsp; testEdit.Text='';</div><div>}</div><div><br></div><div>{</div><div><br></div><div>//Yeni bir form oluşturdum</div><div>//Bu forma bordo renkli arka plan verdim</div><div>// nolucak değişkenini başta temizleme yapmasın diye false olarak ayarladım</div><div>MyForm=TclForm.Create(self);</div><div>MyForm.SetFormColor('#8a0022','',clGNone);</div><div>nolucak = false</div><div><br></div><div><br></div><div>//MyForm adındaki formun içine 4 tane dikdörtgen kutu (layout) ekledim</div><div>//100x100 boyutunda ve yukarıdan 20 piksel boşluk koydum</div><div>//Her biri üst üste (top-aligned) olacak şekilde formun içine yerleştirdim</div><div>testLayout = MyForm.AddNewLayout(MyForm,'testLayout');</div><div>testLayout.Width = 100;</div><div>testLayout.Height = 100;</div><div>testLayout.Align=alTop;</div><div>testLayout.Margins.Top=20;</div><div><br></div><div>testLayout2 = MyForm.AddNewLayout(MyForm,'testLayout2');</div><div>testLayout2.Width = 100;</div><div>testLayout2.Height = 100;</div><div>testLayout2.Align=alTop;</div><div>testLayout2.Margins.Top=20;</div><div><br></div><div>testLayout3 = MyForm.AddNewLayout(MyForm,'testLayout3');</div><div>testLayout3.Width = 100;</div><div>testLayout3.Height = 100;</div><div>testLayout3.Align=alTop;</div><div>testLayout3.Margins.Top=20;</div><div><br></div><div>testLayout4 = MyForm.AddNewLayout(MyForm,'testLayout4');</div><div>testLayout4.Width = 100;</div><div>testLayout4.Height = 100;</div><div>testLayout4.Align=alTop;</div><div>testLayout4.Margins.Top=20;</div><div><br></div><div><br></div><div>//Ekrana sayı veya sonuç göstermek için ve özelliklerini belirleme işlemi yapıyorum</div><div>testEdit = MyForm.AddNewEdit(MyForm,'testEdit','0');</div><div>testEdit.StyledSettings = ssFamily;</div><div>testEdit.TextSettings.Font.Size =30;</div><div>testEdit.Height=30;</div><div>testEdit.Align=alMostTop;</div><div>testEdit.Margins.Top=10;</div><div>testEdit.Margins.Right=10;</div><div>testEdit.Margins.Left=10;</div><div>testEdit.ReadOnly = True;</div><div><br></div><div><br></div><div>//Butonları oluşturuyorum ve özelleştiriyorum</div><div>Btn0 = MyForm.AddNewProButton(testLayout4,'Btn0','0');</div><div>Btn0.Height=70;</div><div>Btn0.Width=80;</div><div>Btn0.Margins.Left=10;</div><div>Btn0.Margins.Right=5;</div><div>Btn0.Align=alLeft;</div><div>Btn0.clProSettings.BorderColor=clAlphaColor.clHexToColor('#eeff00');</div><div>Btn0.clProSettings.BorderWidth = 3;</div><div>Btn0.clProSettings.RoundHeight= 10;</div><div>Btn0.clProSettings.RoundWidth= 10;</div><div>Btn0.clProSettings.FontSize = 40;</div><div>Btn0.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>Btn0.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#00b3ff');</div><div>Btn0.SetclProSettings(Btn0.clProSettings);</div><div>MyForm.AddNewEvent(Btn0,tbeOnClick,'Btn0Click');</div><div><br></div><div>Btn1 = MyForm.AddNewProButton(testLayout,'Btn1','1');</div><div>Btn1.Height=70;</div><div>Btn1.Width=80;</div><div>Btn1.Margins.Left=10;</div><div>Btn1.Margins.Right=5;</div><div>Btn1.Align=alLeft;</div><div>Btn1.clProSettings.BorderColor=clAlphaColor.clHexToColor('#eeff00');</div><div>Btn1.clProSettings.BorderWidth = 3;</div><div>Btn1.clProSettings.RoundHeight= 10;</div><div>Btn1.clProSettings.RoundWidth= 10;</div><div>Btn1.clProSettings.FontSize = 40;</div><div>Btn1.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>Btn1.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#00b3ff');</div><div>Btn1.SetclProSettings(Btn1.clProSettings);&nbsp;</div><div>MyForm.AddNewEvent(Btn1,tbeOnClick,'Btn1Click');</div><div><br></div><div>Btn2 = MyForm.AddNewProButton(testLayout,'Btn2','2');</div><div>Btn2.Height=70;</div><div>Btn2.Width=80;</div><div>Btn2.Margins.Left=10;</div><div>Btn2.Margins.Right=5;</div><div>Btn2.Align=alLeft;</div><div>Btn2.clProSettings.BorderColor=clAlphaColor.clHexToColor('#eeff00');</div><div>Btn2.clProSettings.BorderWidth = 3;</div><div>Btn2.clProSettings.RoundHeight= 10;</div><div>Btn2.clProSettings.RoundWidth= 10;</div><div>Btn2.clProSettings.FontSize = 40;</div><div>Btn2.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>Btn2.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#00b3ff');</div><div>Btn2.SetclProSettings(Btn2.clProSettings);&nbsp;</div><div>MyForm.AddNewEvent(Btn2,tbeOnClick,'Btn2Click');</div><div><br></div><div>Btn3 = MyForm.AddNewProButton(testLayout,'Btn3','3');</div><div>Btn3.Height=70;</div><div>Btn3.Width=80;</div><div>Btn3.Margins.Left=10;</div><div>Btn3.Margins.Right=5;</div><div>Btn3.Align=alLeft;</div><div>Btn3.clProSettings.BorderColor=clAlphaColor.clHexToColor('#eeff00');</div><div>Btn3.clProSettings.BorderWidth = 3;</div><div>Btn3.clProSettings.RoundHeight= 10;</div><div>Btn3.clProSettings.RoundWidth= 10;</div><div>Btn3.clProSettings.FontSize = 40;</div><div>Btn3.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>Btn3.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#00b3ff');</div><div>Btn3.SetclProSettings(Btn3.clProSettings);&nbsp;</div><div>MyForm.AddNewEvent(Btn3,tbeOnClick,'Btn3Click');</div><div><br></div><div><br></div><div>Btn4 = MyForm.AddNewProButton(testLayout2,'Btn4','4');</div><div>Btn4.Height=70;</div><div>Btn4.Width=80;</div><div>Btn4.Margins.Left=10;</div><div>Btn4.Margins.Right=5;</div><div>Btn4.Align=alLeft;</div><div>Btn4.clProSettings.BorderColor=clAlphaColor.clHexToColor('#eeff00');</div><div>Btn4.clProSettings.BorderWidth = 3;</div><div>Btn4.clProSettings.RoundHeight= 10;</div><div>Btn4.clProSettings.RoundWidth= 10;</div><div>Btn4.clProSettings.FontSize = 40;</div><div>Btn4.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>Btn4.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#00b3ff');</div><div>Btn4.SetclProSettings(Btn4.clProSettings);&nbsp;</div><div>MyForm.AddNewEvent(Btn4,tbeOnClick,'Btn4Click');</div><div><br></div><div>Btn5 = MyForm.AddNewProButton(testLayout2,'Btn5','5');</div><div>Btn5.Height=70;</div><div>Btn5.Width=80;</div><div>Btn5.Margins.Left=10;</div><div>Btn5.Margins.Right=5;</div><div>Btn5.Align=alLeft;</div><div>Btn5.clProSettings.BorderColor=clAlphaColor.clHexToColor('#eeff00');</div><div>Btn5.clProSettings.BorderWidth = 3;</div><div>Btn5.clProSettings.RoundHeight= 10;</div><div>Btn5.clProSettings.RoundWidth= 10;</div><div>Btn5.clProSettings.FontSize = 40;</div><div>Btn5.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>Btn5.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#00b3ff');</div><div>Btn5.SetclProSettings(Btn5.clProSettings);&nbsp;</div><div>MyForm.AddNewEvent(Btn5,tbeOnClick,'Btn5Click')</div><div><br></div><div>Btn6 = MyForm.AddNewProButton(testLayout2,'Btn6','6');</div><div>Btn6.Height=70;</div><div>Btn6.Width=80;</div><div>Btn6.Margins.Left=10;</div><div>Btn6.Margins.Right=5;</div><div>Btn6.Align=alLeft;</div><div>Btn6.clProSettings.BorderColor=clAlphaColor.clHexToColor('#eeff00');</div><div>Btn6.clProSettings.BorderWidth = 3;</div><div>Btn6.clProSettings.RoundHeight= 10;</div><div>Btn6.clProSettings.RoundWidth= 10;</div><div>Btn6.clProSettings.FontSize = 40;</div><div>Btn6.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>Btn6.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#00b3ff');</div><div>Btn6.SetclProSettings(Btn6.clProSettings);&nbsp;</div><div>MyForm.AddNewEvent(Btn6,tbeOnClick,'Btn6Click');</div><div><br></div><div><br></div><div>Btn7 = MyForm.AddNewProButton(testLayout3,'Btn7','7');</div><div>Btn7.Height=70;</div><div>Btn7.Width=80;</div><div>Btn7.Margins.Left=10;</div><div>Btn7.Margins.Right=5;</div><div>Btn7.Align=alLeft;</div><div>Btn7.clProSettings.BorderColor=clAlphaColor.clHexToColor('#eeff00');</div><div>Btn7.clProSettings.BorderWidth = 3;</div><div>Btn7.clProSettings.RoundHeight= 10;</div><div>Btn7.clProSettings.RoundWidth= 10;</div><div>Btn7.clProSettings.FontSize = 40;</div><div>Btn7.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>Btn7.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#00b3ff');</div><div>Btn7.SetclProSettings(Btn7.clProSettings);</div><div>MyForm.AddNewEvent(Btn7,tbeOnClick,'Btn7Click');</div><div><br></div><div>Btn8 = MyForm.AddNewProButton(testLayout3,'Btn8','8');</div><div>Btn8.Height=70;</div><div>Btn8.Width=80;</div><div>Btn8.Margins.Left=10;</div><div>Btn8.Margins.Right=5;</div><div>Btn8.Align=alLeft;</div><div>Btn8.clProSettings.BorderColor=clAlphaColor.clHexToColor('#eeff00');</div><div>Btn8.clProSettings.BorderWidth = 3;</div><div>Btn8.clProSettings.RoundHeight= 10;</div><div>Btn8.clProSettings.RoundWidth= 10;</div><div>Btn8.clProSettings.FontSize = 40;</div><div>Btn8.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>Btn8.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#00b3ff');</div><div>Btn8.SetclProSettings(Btn8.clProSettings);&nbsp;</div><div>MyForm.AddNewEvent(Btn8,tbeOnClick,'Btn8Click');</div><div><br></div><div>Btn9 = MyForm.AddNewProButton(testLayout3,'Btn9','9');</div><div>Btn9.Height=70;</div><div>Btn9.Width=80;</div><div>Btn9.Margins.Left=10;</div><div>Btn9.Margins.Right=5;</div><div>Btn9.Align=alLeft;</div><div>Btn9.clProSettings.BorderColor=clAlphaColor.clHexToColor('#eeff00');</div><div>Btn9.clProSettings.BorderWidth = 3;</div><div>Btn9.clProSettings.RoundHeight= 10;</div><div>Btn9.clProSettings.RoundWidth= 10;</div><div>Btn9.clProSettings.FontSize = 40;</div><div>Btn9.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>Btn9.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#00b3ff');</div><div>Btn9.SetclProSettings(Btn9.clProSettings);</div><div>MyForm.AddNewEvent(Btn9,tbeOnClick,'Btn9Click');</div><div><br></div><div>BtnTopla = MyForm.AddNewProButton(testLayout,'BtnTopla','+');</div><div>BtnTopla.Height=70;</div><div>BtnTopla.Width=80;</div><div>BtnTopla.Margins.Left=10;</div><div>BtnTopla.Margins.Right=5;</div><div>BtnTopla.Align=alLeft;</div><div>BtnTopla.clProSettings.BorderColor=clAlphaColor.clHexToColor('#eeff00');</div><div>BtnTopla.clProSettings.BorderWidth = 3;</div><div>BtnTopla.clProSettings.RoundHeight= 10;</div><div>BtnTopla.clProSettings.RoundWidth= 10;</div><div>BtnTopla.clProSettings.FontSize = 40;</div><div>BtnTopla.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>BtnTopla.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#00b3ff');</div><div>BtnTopla.SetclProSettings(BtnTopla.clProSettings);&nbsp;</div><div>MyForm.AddNewEvent(BtnTopla,tbeOnClick,'BtnToplaClick');</div><div><br></div><div>BtnCikar = MyForm.AddNewProButton(testLayout2,'BtnCikar','-');</div><div>BtnCikar.Height=70;</div><div>BtnCikar.Width=80;</div><div>BtnCikar.Margins.Left=10;</div><div>BtnCikar.Margins.Right=5;</div><div>BtnCikar.Align=alLeft;</div><div>BtnCikar.clProSettings.BorderColor=clAlphaColor.clHexToColor('#eeff00');</div><div>BtnCikar.clProSettings.BorderWidth = 3;</div><div>BtnCikar.clProSettings.RoundHeight= 10;</div><div>BtnCikar.clProSettings.RoundWidth= 10;</div><div>BtnCikar.clProSettings.FontSize = 40;</div><div>BtnCikar.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>BtnCikar.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#00b3ff');</div><div>BtnCikar.SetclProSettings(BtnCikar.clProSettings);</div><div>MyForm.AddNewEvent(BtnCikar,tbeOnClick,'BtnCikarClick');</div><div><br></div><div>BtnCarp = MyForm.AddNewProButton(testLayout3,'BtnCarp','X');</div><div>BtnCarp.Height=70;</div><div>BtnCarp.Width=80;</div><div>BtnCarp.Margins.Left=10;</div><div>BtnCarp.Margins.Right=5;</div><div>BtnCarp.Align=alLeft;</div><div>BtnCarp.clProSettings.BorderColor=clAlphaColor.clHexToColor('#eeff00');</div><div>BtnCarp.clProSettings.BorderWidth = 3;</div><div>BtnCarp.clProSettings.RoundHeight= 10;</div><div>BtnCarp.clProSettings.RoundWidth= 10;</div><div>BtnCarp.clProSettings.FontSize = 40;</div><div>BtnCarp.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>BtnCarp.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#00b3ff');</div><div>BtnCarp.SetclProSettings(BtnCarp.clProSettings);&nbsp;</div><div>MyForm.AddNewEvent(BtnCarp,tbeOnClick,'BtnCarpClick');</div><div><br></div><div>BtnSil = MyForm.AddNewProButton(testLayout4,'BtnSil','C');</div><div>BtnSil.Height=70;</div><div>BtnSil.Width=80;</div><div>BtnSil.Margins.Left=10;</div><div>BtnSil.Margins.Right=5;</div><div>BtnSil.Align=alLeft;</div><div>BtnSil.clProSettings.BorderColor=clAlphaColor.clHexToColor('#eeff00');</div><div>BtnSil.clProSettings.BorderWidth = 3;</div><div>BtnSil.clProSettings.RoundHeight= 10;</div><div>BtnSil.clProSettings.RoundWidth= 10;</div><div>BtnSil.clProSettings.FontSize = 40;</div><div>BtnSil.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>BtnSil.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#00b3ff');</div><div>BtnSil.SetclProSettings(BtnSil.clProSettings);</div><div>MyForm.AddNewEvent(BtnSil,tbeOnClick,'BtnSilClick');</div><div><br></div><div><br></div><div>BtnSonuc = MyForm.AddNewProButton(testLayout4,'BtnSonuc','=');</div><div>BtnSonuc.Height=70;</div><div>BtnSonuc.Width=80;</div><div>BtnSonuc.Margins.Left=10;</div><div>BtnSonuc.Margins.Right=5;</div><div>BtnSonuc.Align=alLeft;</div><div>BtnSonuc.clProSettings.BorderColor=clAlphaColor.clHexToColor('#eeff00');</div><div>BtnSonuc.clProSettings.BorderWidth = 3;</div><div>BtnSonuc.clProSettings.RoundHeight= 10;</div><div>BtnSonuc.clProSettings.RoundWidth= 10;</div><div>BtnSonuc.clProSettings.FontSize = 40;</div><div>BtnSonuc.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>BtnSonuc.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#00b3ff');</div><div>BtnSonuc.SetclProSettings(BtnSonuc.clProSettings);</div><div>MyForm.AddNewEvent(BtnSonuc,tbeOnClick,'BtnSonucClick');</div><div><br></div><div>BtnBol = MyForm.AddNewProButton(testLayout4,'BtnBol','÷');</div><div>BtnBol.Height=70;</div><div>BtnBol.Width=80;</div><div>BtnBol.Margins.Left=10;</div><div>BtnBol.Margins.Right=5;</div><div>BtnBol.Align=alLeft;</div><div>BtnBol.clProSettings.BorderColor=clAlphaColor.clHexToColor('#eeff00');</div><div>BtnBol.clProSettings.BorderWidth = 3;</div><div>BtnBol.clProSettings.RoundHeight= 10;</div><div>BtnBol.clProSettings.RoundWidth= 10;</div><div>BtnBol.clProSettings.FontSize = 40;</div><div>BtnBol.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>BtnBol.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#00b3ff');</div><div>BtnBol.SetclProSettings(BtnBol.clProSettings);</div><div>MyForm.AddNewEvent(BtnBol,tbeOnClick,'BtnBolClick');</div><div><br></div><div>MyForm.Run;</div><div>}</div><div><br></div>]]>
   </description>
   <pubDate>Wed, 09 Jul 2025 17:12:59 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1072&amp;PID=2156#2156</guid>
  </item> 
  <item>
   <title><![CDATA[Hesap Makinesi : Merhaba Raziye,---- &#246;rnek kod...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1072&amp;PID=2155#2155</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=215">semihberkanokutan</a><br /><strong>Konu:</strong> 1072<br /><strong>Gönderim Zamanı:</strong> 09&nbsp;Temmuz&nbsp;2025 Saat 17:08<br /><br />Merhaba Raziye,<div><br></div><div>---- örnek kod ----<br><div>var</div><div>btn1 : TClProButton;<br><div><br></div><div><div>void BtnOnClick;</div><div>var</div><div>&nbsp;clickedBtn:TClProButton;</div><div>{</div><div>&nbsp;clickedBtn = TClProButton(MyForm.Clsender);</div><div>&nbsp;ShowMessage(clickedBtn.Caption);</div><div>}</div><div><br></div><div><div>btn1 = MyForm.AddNewProButton(MyForm, 'btn1', '1');</div><div>MyForm.AddNewEvent(btn1, tbeOnClick, 'BtnOnClick');</div></div></div></div></div><div>-----------</div><div><br></div><div>Yukarıdakine benzer şekilde, Clsender ile tıkladığın butonun caption özelliğini döndürüp istediğin gibi kullanabilirsin.</div><div>Mesela bu kodda btn1 butonuna tıkadığımız zaman, bu butonun Captionu 1 olduğu için ShowMessage ile ekrana 1 yazdırıyor.<br><br>Daha iyi anlayabilmek için dökümandan ClSender'ı incelemeni öneririm.<br><br>İyi çalışmalar.</div>]]>
   </description>
   <pubDate>Wed, 09 Jul 2025 17:08:27 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1072&amp;PID=2155#2155</guid>
  </item> 
  <item>
   <title><![CDATA[Hesap Makinesi : Hesap makinesinde say&#305;lar&#305; edit...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1072&amp;PID=2154#2154</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=318">Raziye Nur</a><br /><strong>Konu:</strong> 1072<br /><strong>Gönderim Zamanı:</strong> 09&nbsp;Temmuz&nbsp;2025 Saat 16:28<br /><br /><div>Hesap makinesinde sayıları edit girişi şeklinde değil de butonlu sayı seçip işlem yapmak istiyorum yardımcı olabilir misiniz? <font color="#000099">ana kod</font></div><div>&nbsp; var</div><div>&nbsp; MyForm : TCLForm;</div><div>&nbsp; Sayi1Edit, Sayi2Edit : TCLEdit;</div><div>&nbsp; OperatorLabel, SonucLabel : TCLLabel;</div><div>&nbsp; ArtiButton, EksiButton, CarpButton, BolmeButton,UsAlmaButton,ModButton :&nbsp; TCLImage;</div><div>&nbsp; AnaPanel, sayiPanel,IslemPanel, IslemPanel1,IslemPanel2,IslemPanel3 HesaplaPanel, SonucPanel : TCLPanel;</div><div>&nbsp; HesaplaButton : TCLButton;</div><div>&nbsp; Unit1 : TCLUnit;</div><div>&nbsp;&nbsp;</div><div>void HesaplaButtonTikla;</div><div>{</div><div>&nbsp; if((Sayi1Edit.Text == '') || (Sayi2Edit.Text == ''))</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage('Sayi değerlerini boş bırakmayınız.');</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if (OperatorLabel.Text == '?')</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Bir işlem seçiniz.');</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Unit1.UnitName = 'uHesaplama';</div><div>&nbsp; &nbsp; &nbsp; Unit1.CallerForm = MyForm;</div><div>&nbsp; &nbsp; &nbsp; Unit1.Run;</div><div>&nbsp; &nbsp; &nbsp; MyForm.clHide;&nbsp; &nbsp;</div><div>&nbsp; &nbsp; }</div><div><br></div><div>&nbsp; }</div><div>}</div><div><br></div><div>void IslemButtonTikla;&nbsp;</div><div>var</div><div>&nbsp; clickedBtn:TClProButton;</div><div>{</div><div>&nbsp; clickedBtn = TClProButton(MyForm.Clsender);&nbsp;</div><div>&nbsp; OperatorLabel.Text = clickedBtn.Hint;</div><div><br></div><div>}</div><div>&nbsp;</div><div>{</div><div>&nbsp; MyForm = TCLForm.Create(Self);</div><div>&nbsp; Unit1 = TCLUnit.Create;</div><div>&nbsp; AnaPanel = MyForm.AddNewPanel(MyForm,'AnaPanel');</div><div>&nbsp; AnaPanel.Align = AlClient;</div><div>&nbsp; AnaPanel.Margins.Top = 30;</div><div>&nbsp; AnaPanel.Margins.Bottom = 30;</div><div>&nbsp; AnaPanel.Margins.Left = 30;</div><div>&nbsp; AnaPanel.Margins.Right = 30;</div><div>&nbsp;&nbsp;</div><div>&nbsp; sayiPanel = MyForm.AddNewPanel(AnaPanel,'sayiPanel');</div><div>&nbsp; sayiPanel.Align = AlMostTop;</div><div>&nbsp; sayiPanel.Height = AnaPanel.Height / 6;</div><div>&nbsp; sayiPanel.Margins.Top = 5;</div><div>&nbsp;&nbsp;</div><div>&nbsp; Sayi1Edit = MyForm.AddNewEdit(sayiPanel,'Sayi1Edit', 'Sayı 1... ');</div><div>&nbsp; Sayi1Edit.Align = AlLeft;</div><div>&nbsp; Sayi1Edit.Width = sayiPanel.Width/2 - 70;</div><div>&nbsp; Sayi1Edit.clTypeOfField = taFloat;</div><div>&nbsp;&nbsp;</div><div>&nbsp; OperatorLabel = MyForm.AddNewLabel(sayiPanel,'OperatorLabel','?');</div><div>&nbsp; OperatorLabel.Align = alClient;</div><div>&nbsp; OperatorLabel.StyledSettings = ssFamily;</div><div>&nbsp; OperatorLabel.TextSettings.Font.Size = 18;</div><div>&nbsp; OperatorLabel.TextSettings.HorzAlign = taCenter;</div><div>&nbsp;&nbsp;</div><div>&nbsp; Sayi2Edit = MyForm.AddNewEdit(sayiPanel,'Sayi2Edit', 'Sayı 2... ');</div><div>&nbsp; Sayi2Edit.Align = alRight;</div><div>&nbsp; Sayi2Edit.Width = sayiPanel.Width/2 - 70;</div><div>&nbsp; Sayi2Edit.clTypeOfField = taFloat;</div><div>&nbsp;&nbsp;</div><div>&nbsp; //Operatörler için oluşturulan panel yapısı</div><div>&nbsp; IslemPanel = MyForm.AddNewPanel(AnaPanel,'IslemPanel');</div><div>&nbsp; IslemPanel.Align = AlMostTop;</div><div>&nbsp; IslemPanel.Height = AnaPanel.Height / 3;</div><div>&nbsp; IslemPanel.Margins.Top = 30;</div><div>&nbsp;&nbsp;</div><div>&nbsp; IslemPanel1 = MyForm.AddNewPanel(IslemPanel,'IslemPanel1');</div><div>&nbsp; IslemPanel1.Align = AlMostTop;</div><div>&nbsp; IslemPanel1.Height = IslemPanel.Height / 2 - 20;</div><div>&nbsp; IslemPanel1.Margins.Top = 5;</div><div>&nbsp; IslemPanel1.Margins.Bottom = 5;</div><div>&nbsp;&nbsp;</div><div>&nbsp; ArtiButton = MyForm.AddNewButton(IslemPanel1,'ArtiButton', '+');</div><div>&nbsp; ArtiButton.Align = alLeft;</div><div>&nbsp; ArtiButton.Margins.Left = IslemPanel1.Width / 4;</div><div>&nbsp; ArtiButton.Width = IslemPanel1.Width / 6;</div><div>&nbsp; ArtiButton.Hint = '+';</div><div>&nbsp; MyForm.AddNewEvent(ArtiButton,tbeOnClick,'IslemButtonTikla');</div><div>&nbsp;&nbsp;</div><div>&nbsp; EksiButton = MyForm.AddNewButton(IslemPanel1,'EksiButton', '-');</div><div>&nbsp; EksiButton.Align = alRight;</div><div>&nbsp; EksiButton.Margins.Right = IslemPanel1.Width / 4;</div><div>&nbsp; EksiButton.Width = IslemPanel1.Width / 6;</div><div>&nbsp; EksiButton.Hint = '-';</div><div>&nbsp; MyForm.AddNewEvent(EksiButton,tbeOnClick,'IslemButtonTikla');</div><div>&nbsp;&nbsp;</div><div>&nbsp; IslemPanel2 = MyForm.AddNewPanel(IslemPanel,'IslemPanel2');</div><div>&nbsp; IslemPanel2.Align = AlTop;</div><div>&nbsp; IslemPanel2.Height = IslemPanel.Height / 2 - 20;</div><div>&nbsp; IslemPanel2.Margins.Top = 5;</div><div>&nbsp; IslemPanel2.Margins.Bottom = 5;</div><div>&nbsp;&nbsp;</div><div>&nbsp; CarpButton = MyForm.AddNewButton(IslemPanel2,'CarpButton', '*');</div><div>&nbsp; CarpButton.Align = alLeft;</div><div>&nbsp; CarpButton.Margins.Left = IslemPanel2.Width / 4;</div><div>&nbsp; CarpButton.Width = IslemPanel2.Width / 6;</div><div>&nbsp; CarpButton.Hint = '*';</div><div>&nbsp; MyForm.AddNewEvent(CarpButton,tbeOnClick,'IslemButtonTikla');</div><div>&nbsp;&nbsp;</div><div>&nbsp; BolmeButton = MyForm.AddNewButton(IslemPanel2,'BolmeButton', '/');</div><div>&nbsp; BolmeButton.Align = alRight;</div><div>&nbsp; BolmeButton.Margins.Right = IslemPanel2.Width / 4;</div><div>&nbsp; BolmeButton.Width = IslemPanel2.Width / 6;</div><div>&nbsp; BolmeButton.Hint = '/';</div><div>&nbsp; MyForm.AddNewEvent(BolmeButton,tbeOnClick,'IslemButtonTikla');</div><div>&nbsp;&nbsp;</div><div>&nbsp; IslemPanel3 = MyForm.AddNewPanel(IslemPanel,'IslemPanel3');</div><div>&nbsp; IslemPanel3.Align = AlTop;</div><div>&nbsp; IslemPanel3.Height = IslemPanel.Height / 2-20;</div><div>&nbsp; IslemPanel3.Margins.Top = 5;</div><div>&nbsp; IslemPanel3.Margins.Bottom = 5;</div><div>&nbsp;&nbsp;</div><div>&nbsp; ModButton = MyForm.AddNewButton(IslemPanel3,'ModButton', 'mod');</div><div>&nbsp; ModButton.Align = alLeft;</div><div>&nbsp; ModButton.Margins.Left = IslemPanel2.Width / 4;</div><div>&nbsp; ModButton.Width = IslemPanel2.Width / 6;</div><div>&nbsp; ModButton.Hint = 'mod';</div><div>&nbsp; MyForm.AddNewEvent(ModButton,tbeOnClick,'IslemButtonTikla');</div><div>&nbsp;&nbsp;</div><div>&nbsp; UsAlmaButton = MyForm.AddNewButton(IslemPanel3,'UsAlmaButton', '^');</div><div>&nbsp; UsAlmaButton.Align = alRight;</div><div>&nbsp; UsAlmaButton.Margins.Right = IslemPanel2.Width / 4;</div><div>&nbsp; UsAlmaButton.Width = IslemPanel2.Width / 6;</div><div>&nbsp; UsAlmaButton.Hint = '^';</div><div>&nbsp; MyForm.AddNewEvent(UsAlmaButton,tbeOnClick,'IslemButtonTikla');</div><div>&nbsp;&nbsp;</div><div>&nbsp; //Hesaplama butonu için oluşturulan panel yapısı</div><div>&nbsp; HesaplaPanel = MyForm.AddNewPanel(AnaPanel, 'HesaplaPanel');</div><div>&nbsp; HesaplaPanel.Align = AlBottom;</div><div>&nbsp; HesaplaPanel.Height = AnaPanel.Height /6;</div><div>&nbsp; HesaplaPanel.Margins.Bottom = 5;</div><div>&nbsp;&nbsp;</div><div>&nbsp; HesaplaButton = MyForm.AddNewButton(HesaplaPanel,'HesaplaButton', 'Hesapla');</div><div>&nbsp; HesaplaButton.Align = alCenter;</div><div>&nbsp; HesaplaButton.Height = HesaplaPanel.Height / 2;</div><div>&nbsp; HesaplaButton.Width = 100;</div><div>&nbsp; MyForm.AddNewEvent(HesaplaButton,tbeOnClick,'HesaplaButtonTikla');</div><div>&nbsp;&nbsp;</div><div>&nbsp; //uIslem ekranından gelen sonuç:</div><div>&nbsp; SonucPanel =&nbsp; MyForm.AddNewPanel(AnaPanel, 'SonucPanel');</div><div>&nbsp; SonucPanel.Align = AlMostBottom;</div><div>&nbsp; SonucPanel.Height = AnaPanel.Height / 8;</div><div>&nbsp; SonucPanel.Margins.Bottom = 5;</div><div>&nbsp;&nbsp;</div><div>&nbsp; SonucLabel = MyForm.AddNewLabel(SonucPanel, 'SonucLabel','Sonuç: ');</div><div>&nbsp; SonucLabel.Align = alLeft;</div><div>&nbsp; SonucLabel.Width=SonucPanel.width;</div><div>&nbsp; SonucLabel.StyledSettings = ssFamily;</div><div>&nbsp; SonucLabel.TextSettings.Font.Size = 24;</div><div>&nbsp;&nbsp;</div><div>&nbsp; MyForm.Run;</div><div>}&nbsp; &nbsp;&nbsp;</div><div><font color="#0066ff">&nbsp;uhesaplama&nbsp;</font></div><div><br></div><div>var</div><div>HesaplamaForm:TclForm;</div><div>Sayi1Label, Sayi2Label,IslemLabel : TCLLabel;</div><div>HesaplaButton : TCLButton;</div><div>IslemPanel, HesaplaPanel : TCLPanel;</div><div><br></div><div>void FormKapat;</div><div>{</div><div>&nbsp; Clomosy.RunUnit('MainCode');</div><div>}</div><div>void AnaSayfadanAktar;</div><div>{</div><div>&nbsp; Sayi1Label.Text = callerForm.Sayi1Edit.Text;</div><div>&nbsp; IslemLabel.Text = callerForm.OperatorLabel.Text;</div><div>&nbsp; Sayi2Label.Text = callerForm.Sayi2Edit.Text;</div><div>}</div><div><br></div><div>void Hesapla;</div><div>var</div><div>&nbsp; Cevap : String;</div><div>{</div><div>&nbsp; if(IslemLabel.Text == '+')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Cevap = IntToStr(StrToInt(Sayi1Label.Text) + StrToInt(Sayi2Label.Text));</div><div>&nbsp; }</div><div>&nbsp; else if(IslemLabel.Text == '-')</div><div>&nbsp; {</div><div>&nbsp; &nbsp;Cevap =&nbsp; IntToStr(StrToInt(Sayi1Label.Text) - StrToInt(Sayi2Label.Text));</div><div>&nbsp; }</div><div>&nbsp; else if(IslemLabel.Text == '*')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Cevap =&nbsp; IntToStr(StrToInt(Sayi1Label.Text) * StrToInt(Sayi2Label.Text));</div><div>&nbsp; }</div><div>&nbsp; else if(IslemLabel.Text == 'mod')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Cevap =&nbsp; IntToStr(StrToInt(Sayi1Label.Text) mod StrToInt(Sayi2Label.Text));</div><div>&nbsp; }</div><div>&nbsp; else if(IslemLabel.Text == '^')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Cevap =&nbsp; IntToStr(StrToInt(Sayi1Label.Text) ^ StrToInt(Sayi2Label.Text));</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Cevap =&nbsp; IntToStr(StrToInt(Sayi1Label.Text) / StrToInt(Sayi2Label.Text));</div><div>&nbsp; }</div><div>&nbsp; callerForm.SonucLabel.Text = 'Sonuç: '+ Cevap;</div><div>&nbsp;&nbsp;</div><div>&nbsp; ShowMessage('İşlem Sonucu Ana Sayfaya Yazdırıldı. Yönlendiriliyorsunuz...');</div><div>&nbsp; callerForm.clShow;</div><div>&nbsp; HesaplamaForm.clHide;</div><div>&nbsp;&nbsp;</div><div>}</div><div><br></div><div>{</div><div>&nbsp; HesaplamaForm = TCLForm.Create(Self);</div><div>&nbsp;&nbsp;</div><div>&nbsp; IslemPanel = HesaplamaForm.AddNewPanel(HesaplamaForm,'IslemPanel');</div><div>&nbsp; IslemPanel.align = alMostTop;</div><div>&nbsp; IslemPanel.height = HesaplamaForm.clWidth / 4;</div><div>&nbsp; IslemPanel.margins.Top = 20;</div><div>&nbsp;&nbsp;</div><div>&nbsp; Sayi1Label = HesaplamaForm.AddNewLabel(IslemPanel,'Sayi1Label',' ');</div><div>&nbsp; Sayi1Label.align = alLeft;</div><div>&nbsp; Sayi1Label.margins.left = 40;</div><div>&nbsp; Sayi1Label.width = (IslemPanel.Width*30)/100;</div><div>&nbsp; Sayi1Label.styledsettings = ssFamily;</div><div>&nbsp; Sayi1Label.Textsettings.Font.Size = 24;</div><div>&nbsp; Sayi1Label.TextSettings.HorzAlign = taTrailing;</div><div>&nbsp;</div><div>&nbsp; Sayi2Label = HesaplamaForm.AddNewLabel(IslemPanel,'Sayi2Label',' ');</div><div>&nbsp; Sayi2Label.align = alRight;</div><div>&nbsp; Sayi2Label.margins.Right = 40;</div><div>&nbsp; Sayi2Label.width = (IslemPanel.Width*30)/100;</div><div>&nbsp; Sayi2Label.styledsettings = ssFamily;</div><div>&nbsp; Sayi2Label.Textsettings.Font.Size = 24;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; IslemLabel = HesaplamaForm.AddNewLabel(IslemPanel,'IslemLabel','?');</div><div>&nbsp; IslemLabel.align = alClient;</div><div>&nbsp; IslemLabel.styledsettings = ssFamily;</div><div>&nbsp; IslemLabel.Textsettings.Font.Size = 24;</div><div>&nbsp; IslemLabel.TextSettings.HorzAlign = taCenter;</div><div>&nbsp;&nbsp;</div><div><br></div><div>&nbsp; HesaplaPanel = HesaplamaForm.AddNewPanel(HesaplamaForm, 'HesaplaPanel');</div><div>&nbsp; HesaplaPanel.align = alTop;</div><div>&nbsp; HesaplaPanel.height = HesaplamaForm.clWidth / 4;</div><div>&nbsp; HesaplaPanel.margins.Top = 20;</div><div>&nbsp;&nbsp;</div><div>&nbsp; HesaplaButton = HesaplamaForm.AddNewButton(HesaplaPanel,'HesaplaButton', '=');</div><div>&nbsp; HesaplaButton.Align = alCenter;</div><div>&nbsp; HesaplaButton.Height = HesaplaPanel.Height / 2;</div><div>&nbsp; HesaplaButton.Width = 100;</div><div>&nbsp; HesaplaButton.styledsettings = ssFamily;</div><div>&nbsp; HesaplaButton.Textsettings.Font.Size = 24;</div><div>&nbsp; HesaplamaForm.AddNewEvent(HesaplaButton, tbeOnClick, 'Hesapla');</div><div>&nbsp; HesaplamaForm.AddNewEvent(HesaplamaForm,tbeOnFormShow,'AnaSayfadanAktar');</div><div>&nbsp; HesaplamaForm.AddNewEvent(HesaplamaForm,tbeonFormClose, 'FormKapat');</div><div>&nbsp; HesaplamaForm.Run;</div><div>}</div>]]>
   </description>
   <pubDate>Wed, 09 Jul 2025 16:28:43 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1072&amp;PID=2154#2154</guid>
  </item> 
 </channel>
</rss>