<?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 : Local data base</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : Local data base]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 18:29:40 +0000</pubDate>
  <lastBuildDate>Mon, 04 May 2026 18:03:28 +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=1465</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[Local data base : Merhaba H&#252;seyin,Projeden verileri...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1465&amp;PID=3345#3345</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=257">Emr.Erkmn</a><br /><strong>Konu:</strong> 1465<br /><strong>Gönderim Zamanı:</strong> 04&nbsp;Mayıs&nbsp;2026 Saat 18:03<br /><br />Merhaba Hüseyin,<br>Projeden verileri geçici bir hafızada tutmak yerine&nbsp;<br>SQLite yerel veritabanında tutmak daha mantıklı olacak.&nbsp;<br><a href="https://www.docs.clomosy.com/Local_Database_Queries" target="_blank" rel="nofollow">https://www.docs.clomosy.com/Local_Database_Queries</a><br><a href="https://www.docs.clomosy.com/Code_Examples" target="_blank" rel="nofollow">https://www.docs.clomosy.com/Code_Examples</a><br>Doküman sitesinde local veritabanı ile ilgili hem nasıl yapılacağı hem de çeşitli örnekleri mevcut.&nbsp;<br><br>ilk önce bir veritabanı kurulumu gerekli ve bu veritabanına iki ayrı tablo eklenebilir.&nbsp;<br>Ama sadece bi tablo ile kısıtlı kalmanı istemem<br>satış yaptıktan sonra da bir bakiye veya rapor ekranı yapmanı isterim proje de&nbsp;<br>bu sayfa da yapılan satışların yani geçmiş satışları da bir rapor şeklinde göstrebilirsen çok daha iyi olur<br><br><br><div>var</div><div>&nbsp; MyForm : TclForm;</div><div>&nbsp;&nbsp;</div><div>&nbsp; LoginBgPnl, MaskPnl, MainPnl, SocialPnl : TClProPanel;</div><div>&nbsp; KullaniciAdiEdt, SifreEdit : TClProEdit;</div><div>&nbsp; Giris, Kayit, BtnGoogle, BtnFacebook, BtnGoz : TClProButton;</div><div>&nbsp; SifreDurum : Boolean;</div><div><br></div><div>&nbsp; BgPnl, TopPnl, MenuPnl, AnaEkranPanel, StokPanel, SatisPanel, FislerPanel, PopupPanel, OverlayPnl : TClProPanel;</div><div>&nbsp; FisDetayPanel, FaturaTopPnl, KagitPnl, UstBilgiPnl, SaticiPnl, FaturaSagPnl, AliciPnl : TClProPanel;</div><div>&nbsp; TabloPnl, TabloBaslikPnl, TabloVeriPnl, ToplamPnl, ToplamIcerikPnl : TClProPanel;</div><div>&nbsp;&nbsp;</div><div>&nbsp; FaturaScrl, ListScrl, FislerScrl : TclVertScrollBox;</div><div>&nbsp; DetayGeriBtn, EFaturaKesBtn : TClProButton;</div><div>&nbsp;&nbsp;</div><div>&nbsp; FirmaIsimLbl, FirmaDetayLbl, EFaturaLogoLbl, FaturaSenaryoLbl, FaturaTarihLbl : TclProLabel;</div><div>&nbsp; SayinLbl, FaturaAliciLbl, FaturaAliciDetayLbl : TclProLabel;</div><div>&nbsp; Col1, Col2, Col3, Col4, Col5 : TclProLabel;&nbsp;</div><div>&nbsp; Val1, Val2, Val3, Val4, Val5 : TclProLabel;&nbsp;</div><div>&nbsp; OzetAltToplamLbl, OzetKdvLbl, OzetGenelToplamLbl : TclProLabel;&nbsp;</div><div><br></div><div>&nbsp; SatisScroll : TclVertScrollBox;&nbsp;</div><div>&nbsp; SatBaslikLbl, MusBaslikLbl : TclProLabel;&nbsp;</div><div>&nbsp; SaticiUnvanEdt, SaticiVknEdt, SaticiVdEdt, SaticiAdresEdt, SaticiTelEdt : TClProEdit;</div><div>&nbsp; AliciAdiEdt, AliciVknEdt, AliciVdEdt, AliciAdresEdt, AliciTelEdt : TClProEdit;</div><div>&nbsp; UrunAdEdt, AdetEdt, FiyatEdt, SatisAdetEdt : TClProEdit;</div><div>&nbsp;&nbsp;</div><div>&nbsp; MenuBtn, AnaEkranBtn, StokModBtn, SatisModBtn, FislerBtn, KaydetBtn, SatisOnayBtn, KapatBtn : TClProButton;</div><div>&nbsp; HeaderLbl, KasaLbl, ToplamStokLbl, AnaEkranLbl, AltBilgiLbl : TclProLabel;</div><div>&nbsp;&nbsp;</div><div>&nbsp; GenelStok, SeciliUrunID : Integer;</div><div>&nbsp; ToplamKasa : Double;</div><div><br></div><div>void UrunleriListele; forward;</div><div>void SatislariListele; forward;</div><div><br></div><div>void VeritabaniKurulumu;</div><div>{</div><div>&nbsp; Clomosy.DBSQLiteConnect(Clomosy.AppFilesPath + 'SatisStokDB.db', '');</div><div>&nbsp;&nbsp;</div><div>&nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'CREATE TABLE IF NOT EXISTS Urunler (UrunID INTEGER PRIMARY KEY AUTOINCREMENT, UrunAdi TEXT, Stok INTEGER, Fiyat REAL)';</div><div>&nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp;&nbsp;</div><div>&nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'CREATE TABLE IF NOT EXISTS Satislar (FisID INTEGER PRIMARY KEY AUTOINCREMENT, AliciAdi TEXT, UrunAdi TEXT, Adet INTEGER, BirimFiyat REAL, Tutar REAL, Tarih TEXT, VKN TEXT, VD TEXT, Adres TEXT, Tel TEXT, SatUnvan TEXT, SatDetay TEXT)';</div><div>&nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>}</div><div><br></div><div>void GozTiklandi;</div><div>{</div><div>&nbsp; SifreDurum = not SifreDurum;</div><div>&nbsp; SifreEdit.Password = not SifreDurum;</div><div>&nbsp; if (SifreDurum) { BtnGoz.Caption = 'GIZLE'; } else { BtnGoz.Caption = 'GÖSTER'; }</div><div>}</div><div><br></div><div>void KayitOlTiklandi;</div><div>{</div><div>&nbsp; ShowMessage('Kayıt sistemi şu an pasif durumdadır. Lütfen mevcut bilgilerinizle giriş yapınız.');</div><div>}</div><div><br></div><div>void GirisYapTiklandi;</div><div>{</div><div>&nbsp; if (((KullaniciAdiEdt.Text == 'SONGUZZ') &amp;&amp; (SifreEdit.Text == '42AHV16.')) ||&nbsp;</div><div>&nbsp; &nbsp; &nbsp; ((KullaniciAdiEdt.Text == 'Ali ERBAY') &amp;&amp; (SifreEdit.Text == '5834')))</div><div>&nbsp; {&nbsp;</div><div>&nbsp; &nbsp; MaskPnl.Visible = False;</div><div>&nbsp; &nbsp; LoginBgPnl.Visible = False;</div><div>&nbsp; &nbsp; BgPnl.Visible = True;&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; UrunleriListele;</div><div>&nbsp; &nbsp; SatislariListele;</div><div>&nbsp; &nbsp; ShowMessage('Sisteme başarıyla giriş yapıldı. Verileriniz yüklendi.');&nbsp;</div><div>&nbsp; }&nbsp;</div><div>&nbsp; else&nbsp;</div><div>&nbsp; {&nbsp;</div><div>&nbsp; &nbsp; ShowMessage('Hatalı kullanıcı adı veya şifre girdiniz.');&nbsp;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void UrunleriListele;</div><div>var</div><div>&nbsp; Qry: TclSQLiteQuery;</div><div>&nbsp; CardPnl : TClProPanel;</div><div>&nbsp; BaslikLbl, AltLbl, FiyatLbl, SatisYapLbl : TclProLabel;</div><div>&nbsp; UrunIDStr, UrunAdiStr, StokStr, FiyatStr : String;</div><div>{</div><div>&nbsp; if (ListScrl &lt;&gt; nil) { ListScrl.Free; }</div><div>&nbsp; ListScrl = MyForm.AddNewVertScrollBox(SatisPanel, 'ListScrl');</div><div>&nbsp; ListScrl.Align = alClient;</div><div>&nbsp;&nbsp;</div><div>&nbsp; GenelStok = 0;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; Qry = TclSQLiteQuery.Create(Nil);</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Qry.Connection = Clomosy.DBSQLiteConnection;</div><div>&nbsp; &nbsp; Qry.Sql.Text = 'SELECT * FROM Urunler';</div><div>&nbsp; &nbsp; Qry.OpenOrExecute;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; while (not Qry.EOF)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; UrunIDStr = Qry.FieldByName('UrunID').AsString;</div><div>&nbsp; &nbsp; &nbsp; UrunAdiStr = Qry.FieldByName('UrunAdi').AsString;</div><div>&nbsp; &nbsp; &nbsp; StokStr = Qry.FieldByName('Stok').AsString;</div><div>&nbsp; &nbsp; &nbsp; FiyatStr = Qry.FieldByName('Fiyat').AsString;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; GenelStok = GenelStok + StrToInt(StokStr);</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; if (StrToInt(StokStr) &gt; 0)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; CardPnl = MyForm.AddNewProPanel(ListScrl, 'CardPnl' + UrunIDStr);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; CardPnl.Align = alTop; CardPnl.Height = 100; CardPnl.Margins.Top = 10;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; CardPnl.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FFFFFF');&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; CardPnl.clprosettings.RoundHeight = 10; CardPnl.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7'); CardPnl.clprosettings.BorderWidth = 2;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; CardPnl.SetClproSettings(CardPnl.clprosettings);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; SatisYapLbl = MyForm.AddNewProLabel(CardPnl, 'SatisYapLbl' + UrunIDStr, 'SATIŞ YAP');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; SatisYapLbl.Align = alRight; SatisYapLbl.Width = 80;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; SatisYapLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; SatisYapLbl.SetClproSettings(SatisYapLbl.clprosettings);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; SatisYapLbl.clTagInt = StrToInt(UrunIDStr);&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; MyForm.AddNewEvent(SatisYapLbl, tbeOnClick, 'AcSatisPanel');</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; BaslikLbl = MyForm.AddNewProLabel(CardPnl, 'BaslikLbl' + UrunIDStr, UrunAdiStr);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; BaslikLbl.Align = alTop; BaslikLbl.Height = 30; BaslikLbl.Margins.Left = 15;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; BaslikLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; BaslikLbl.SetClproSettings(BaslikLbl.clprosettings);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; AltLbl = MyForm.AddNewProLabel(CardPnl, 'AltLbl' + UrunIDStr, 'Stok: ' + StokStr);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; AltLbl.Align = alTop; AltLbl.Height = 20; AltLbl.Margins.Left = 15;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; AltLbl.clTagInt = StrToInt(StokStr);&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; AltLbl.clTagStr = FiyatStr;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; AltLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#5A4A3A');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; AltLbl.SetClproSettings(AltLbl.clprosettings);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; FiyatLbl = MyForm.AddNewProLabel(CardPnl, 'FiyatLbl' + UrunIDStr, FiyatStr + ' TL');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; FiyatLbl.Align = alTop; FiyatLbl.Height = 20; FiyatLbl.Margins.Left = 15;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; FiyatLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; FiyatLbl.SetClproSettings(FiyatLbl.clprosettings);</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; Qry.Next;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; ToplamStokLbl.Text = 'Genel Stok: ' + IntToStr(GenelStok);</div><div>&nbsp; finally</div><div>&nbsp; &nbsp; Qry.Free;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void UrunEkle;</div><div>var</div><div>&nbsp; Qry: TclSQLiteQuery;</div><div>{</div><div>&nbsp; if ((UrunAdEdt.Text == '') || (AdetEdt.Text == '') || (FiyatEdt.Text == '')) { exit; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; Qry = TclSQLiteQuery.Create(Nil);</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Qry.Connection = Clomosy.DBSQLiteConnection;</div><div>&nbsp; &nbsp; Qry.Sql.Text = 'SELECT UrunID FROM Urunler WHERE UrunAdi = ' + QuotedStr(UpperCase(UrunAdEdt.Text));</div><div>&nbsp; &nbsp; Qry.OpenOrExecute;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (Qry.Found)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Qry.Sql.Text = 'UPDATE Urunler SET Stok = Stok + ' + AdetEdt.Text + ' WHERE UrunID = ' + Qry.FieldByName('UrunID').AsString;</div><div>&nbsp; &nbsp; &nbsp; Qry.OpenOrExecute;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Qry.Sql.Text = 'INSERT INTO Urunler (UrunAdi, Stok, Fiyat) VALUES (' + QuotedStr(UpperCase(UrunAdEdt.Text)) + ', ' + AdetEdt.Text + ', ' + FiyatEdt.Text + ')';</div><div>&nbsp; &nbsp; &nbsp; Qry.OpenOrExecute;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ShowMessage('Ürün stoğa başarıyla kaydedildi.');</div><div>&nbsp; &nbsp; UrunAdEdt.Text = ''; AdetEdt.Text = ''; FiyatEdt.Text = '';</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; UrunleriListele;</div><div>&nbsp; finally</div><div>&nbsp; &nbsp; Qry.Free;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void SatislariListele;</div><div>var</div><div>&nbsp; Qry: TclSQLiteQuery;</div><div>&nbsp; FisCardPnl : TClProPanel;</div><div>&nbsp; InceleBtn : TClProButton;</div><div>&nbsp; FisBaslikLbl : TclProLabel;</div><div>&nbsp; FisIDStr : String;</div><div>&nbsp; RawUrunLbl, RawMiktarLbl, RawFiyatLbl, RawMusteriLbl, RawTarihLbl, RawTutarLbl : TclProLabel;</div><div>&nbsp; RawMusVknLbl, RawMusVdLbl, RawMusAdrLbl, RawMusTelLbl : TclProLabel;</div><div>&nbsp; RawSatUnvanLbl, RawSatDetayLbl : TclProLabel;</div><div>{</div><div>&nbsp; if (FislerScrl &lt;&gt; nil) { FislerScrl.Free; }</div><div>&nbsp; FislerScrl = MyForm.AddNewVertScrollBox(FislerPanel, 'FislerScrl');</div><div>&nbsp; FislerScrl.Align = alClient;</div><div>&nbsp;&nbsp;</div><div>&nbsp; ToplamKasa = 0;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; Qry = TclSQLiteQuery.Create(Nil);</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Qry.Connection = Clomosy.DBSQLiteConnection;</div><div>&nbsp; &nbsp; Qry.Sql.Text = 'SELECT * FROM Satislar ORDER BY FisID DESC';</div><div>&nbsp; &nbsp; Qry.OpenOrExecute;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; while (not Qry.EOF)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; FisIDStr = Qry.FieldByName('FisID').AsString;</div><div>&nbsp; &nbsp; &nbsp; ToplamKasa = ToplamKasa + Qry.FieldByName('Tutar').AsFloat;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; FisCardPnl = MyForm.AddNewProPanel(FislerScrl, 'FisCardPnl' + FisIDStr);</div><div>&nbsp; &nbsp; &nbsp; FisCardPnl.Align = alTop; FisCardPnl.Height = 50; FisCardPnl.Margins.Top = 10;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; FisCardPnl.Margins.Left = 10; FisCardPnl.Margins.Right = 10;</div><div>&nbsp; &nbsp; &nbsp; FisCardPnl.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FFFFFF');&nbsp;</div><div>&nbsp; &nbsp; &nbsp; FisCardPnl.clprosettings.RoundHeight = 10;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; FisCardPnl.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');&nbsp;</div><div>&nbsp; &nbsp; &nbsp; FisCardPnl.clprosettings.BorderWidth = 2;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; FisCardPnl.SetClproSettings(FisCardPnl.clprosettings);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; InceleBtn = MyForm.AddNewProButton(FisCardPnl, 'InceleBtn' + FisIDStr, 'İNCELE');</div><div>&nbsp; &nbsp; &nbsp; InceleBtn.Align = alRight; InceleBtn.Width = 80; InceleBtn.Margins.Top = 5; InceleBtn.Margins.Bottom = 5; InceleBtn.Margins.Right = 10;</div><div>&nbsp; &nbsp; &nbsp; InceleBtn.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#E4CDA7');&nbsp;</div><div>&nbsp; &nbsp; &nbsp; InceleBtn.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; &nbsp; &nbsp; InceleBtn.clprosettings.RoundHeight = 5;</div><div>&nbsp; &nbsp; &nbsp; InceleBtn.SetClproSettings(InceleBtn.clprosettings);</div><div>&nbsp; &nbsp; &nbsp; InceleBtn.clTagInt = StrToInt(FisIDStr);&nbsp;</div><div>&nbsp; &nbsp; &nbsp; MyForm.AddNewEvent(InceleBtn, tbeOnClick, 'FisInceleTiklandi');</div><div><br></div><div>&nbsp; &nbsp; &nbsp; FisBaslikLbl = MyForm.AddNewProLabel(FisCardPnl, 'FisBaslikLbl' + FisIDStr, Qry.FieldByName('AliciAdi').AsString + ' - ' + Qry.FieldByName('UrunAdi').AsString);</div><div>&nbsp; &nbsp; &nbsp; FisBaslikLbl.Align = alClient; FisBaslikLbl.Margins.Left = 10; FisBaslikLbl.Margins.Top = 15;</div><div>&nbsp; &nbsp; &nbsp; FisBaslikLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');&nbsp;</div><div>&nbsp; &nbsp; &nbsp; FisBaslikLbl.SetClproSettings(FisBaslikLbl.clprosettings);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; RawUrunLbl = MyForm.AddNewProLabel(FisCardPnl, 'RawUrunLbl' + FisIDStr, Qry.FieldByName('UrunAdi').AsString); RawUrunLbl.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; RawMiktarLbl = MyForm.AddNewProLabel(FisCardPnl, 'RawMiktarLbl' + FisIDStr, Qry.FieldByName('Adet').AsString); RawMiktarLbl.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; RawFiyatLbl = MyForm.AddNewProLabel(FisCardPnl, 'RawFiyatLbl' + FisIDStr, Qry.FieldByName('BirimFiyat').AsString); RawFiyatLbl.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; RawMusteriLbl = MyForm.AddNewProLabel(FisCardPnl, 'RawMusteriLbl' + FisIDStr, Qry.FieldByName('AliciAdi').AsString); RawMusteriLbl.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; RawTarihLbl = MyForm.AddNewProLabel(FisCardPnl, 'RawTarihLbl' + FisIDStr, Qry.FieldByName('Tarih').AsString); RawTarihLbl.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; RawTutarLbl = MyForm.AddNewProLabel(FisCardPnl, 'RawTutarLbl' + FisIDStr, Qry.FieldByName('Tutar').AsString); RawTutarLbl.Visible = False;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; RawMusVknLbl = MyForm.AddNewProLabel(FisCardPnl, 'RawMusVknLbl' + FisIDStr, Qry.FieldByName('VKN').AsString); RawMusVknLbl.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; RawMusVdLbl = MyForm.AddNewProLabel(FisCardPnl, 'RawMusVdLbl' + FisIDStr, Qry.FieldByName('VD').AsString); RawMusVdLbl.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; RawMusAdrLbl = MyForm.AddNewProLabel(FisCardPnl, 'RawMusAdrLbl' + FisIDStr, Qry.FieldByName('Adres').AsString); RawMusAdrLbl.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; RawMusTelLbl = MyForm.AddNewProLabel(FisCardPnl, 'RawMusTelLbl' + FisIDStr, Qry.FieldByName('Tel').AsString); RawMusTelLbl.Visible = False;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; RawSatUnvanLbl = MyForm.AddNewProLabel(FisCardPnl, 'RawSatUnvanLbl' + FisIDStr, Qry.FieldByName('SatUnvan').AsString); RawSatUnvanLbl.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; RawSatDetayLbl = MyForm.AddNewProLabel(FisCardPnl, 'RawSatDetayLbl' + FisIDStr, Qry.FieldByName('SatDetay').AsString); RawSatDetayLbl.Visible = False;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Qry.Next;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; KasaLbl.Text = 'Kasa: ' + FloatToStr(ToplamKasa) + ' TL';</div><div>&nbsp; finally</div><div>&nbsp; &nbsp; Qry.Free;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void KapatSatisPanel; { OverlayPnl.Visible = False; }</div><div><br></div><div>void SatisYap;</div><div>var</div><div>&nbsp; Qry: TclSQLiteQuery;</div><div>&nbsp; HedefAltLbl, HedefBaslikLbl : TclProLabel;</div><div>&nbsp; SatilacakAdet, MevcutStok : Integer;</div><div>&nbsp; BirimFiyat, SatisTutari : Double;</div><div>&nbsp; UrunAdi, SatisZamani : String;</div><div>{</div><div>&nbsp; if ((SatisAdetEdt.Text == '') || (AliciAdiEdt.Text == '') || (SaticiUnvanEdt.Text == ''))&nbsp;</div><div>&nbsp; {&nbsp;</div><div>&nbsp; &nbsp; ShowMessage('Lütfen Satıcı, Müşteri ve Adet bilgilerini eksiksiz giriniz.');&nbsp;</div><div>&nbsp; &nbsp; exit;&nbsp;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; SatilacakAdet = StrToInt(SatisAdetEdt.Text);</div><div>&nbsp; HedefAltLbl = MyForm.clFindComponent('AltLbl' + IntToStr(SeciliUrunID));</div><div>&nbsp; HedefBaslikLbl = MyForm.clFindComponent('BaslikLbl' + IntToStr(SeciliUrunID));&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (HedefAltLbl &lt;&gt; nil)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; MevcutStok = HedefAltLbl.clTagInt;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (SatilacakAdet &lt;= MevcutStok)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; BirimFiyat = StrToFloat(HedefAltLbl.clTagStr);</div><div>&nbsp; &nbsp; &nbsp; SatisTutari = BirimFiyat * SatilacakAdet;</div><div>&nbsp; &nbsp; &nbsp; UrunAdi = HedefBaslikLbl.Text;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; SatisZamani = FormatDateTime('dd.mm.yyyy hh:nn:ss', Now);&nbsp;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; Qry = TclSQLiteQuery.Create(Nil);</div><div>&nbsp; &nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Qry.Connection = Clomosy.DBSQLiteConnection;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Qry.Sql.Text = 'UPDATE Urunler SET Stok = Stok - ' + IntToStr(SatilacakAdet) + ' WHERE UrunID = ' + IntToStr(SeciliUrunID);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Qry.OpenOrExecute;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Qry.Sql.Text = 'INSERT INTO Satislar (AliciAdi, UrunAdi, Adet, BirimFiyat, Tutar, Tarih, VKN, VD, Adres, Tel, SatUnvan, SatDetay) VALUES (' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;QuotedStr(AliciAdiEdt.Text) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;QuotedStr(UrunAdi) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IntToStr(SatilacakAdet) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FloatToStr(BirimFiyat) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FloatToStr(SatisTutari) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;QuotedStr(SatisZamani) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;QuotedStr(AliciVknEdt.Text) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;QuotedStr(AliciVdEdt.Text) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;QuotedStr(AliciAdresEdt.Text) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;QuotedStr(AliciTelEdt.Text) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;QuotedStr(SaticiUnvanEdt.Text) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;QuotedStr(SaticiAdresEdt.Text + ' | Tel: ' + SaticiTelEdt.Text + ' | VD: ' + SaticiVdEdt.Text + ' VKN: ' + SaticiVknEdt.Text) + ')';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Qry.OpenOrExecute;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Satış başarıyla tamamlandı ve veritabanına işlendi!');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; KapatSatisPanel;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; UrunleriListele;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; SatislariListele;</div><div>&nbsp; &nbsp; &nbsp; finally</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Qry.Free;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }&nbsp;</div><div>&nbsp; &nbsp; else&nbsp;</div><div>&nbsp; &nbsp; {&nbsp;</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Yetersiz stok miktarı!');&nbsp;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void ToggleMenu; { MenuPnl.Visible = not MenuPnl.Visible; }</div><div><br></div><div>void AcSatisPanel;</div><div>var TiklananLbl : TclProLabel;</div><div>{</div><div>&nbsp; TiklananLbl = MyForm.clSender;</div><div>&nbsp; SeciliUrunID = TiklananLbl.clTagInt;</div><div>&nbsp;&nbsp;</div><div>&nbsp; SatisAdetEdt.Text = '';</div><div>&nbsp; AliciAdiEdt.Text = '';</div><div>&nbsp; AliciVknEdt.Text = '';</div><div>&nbsp; AliciVdEdt.Text = '';</div><div>&nbsp; AliciAdresEdt.Text = '';</div><div>&nbsp; AliciTelEdt.Text = '';</div><div>&nbsp;&nbsp;</div><div>&nbsp; OverlayPnl.Visible = True;</div><div>&nbsp; OverlayPnl.BringToFront;</div><div>}</div><div><br></div><div>void FisDetayKapat;</div><div>{</div><div>&nbsp; FisDetayPanel.Visible = False;&nbsp;</div><div>&nbsp; FislerPanel.Visible = True;&nbsp; &nbsp;&nbsp;</div><div>&nbsp; HeaderLbl.Text = '&nbsp; SATIŞ FİŞLERİ';&nbsp;</div><div>}</div><div><br></div><div>void FisInceleTiklandi;</div><div>var</div><div>&nbsp; SecilenBtn : TClProButton;</div><div>&nbsp; HedefFisID : Integer;</div><div>&nbsp; RU, RM, RF, RMu, RTa, RTu : TclProLabel;</div><div>&nbsp; RVkn, RVd, RAdr, RTel : TclProLabel;</div><div>&nbsp; RSU, RSD : TclProLabel;</div><div>&nbsp; SubTotal, KDV, GrandTotal : Double;&nbsp;</div><div>{</div><div>&nbsp; SecilenBtn = MyForm.clSender;</div><div>&nbsp; HedefFisID = SecilenBtn.clTagInt;</div><div>&nbsp;&nbsp;</div><div>&nbsp; RU = MyForm.clFindComponent('RawUrunLbl' + IntToStr(HedefFisID));</div><div>&nbsp; RM = MyForm.clFindComponent('RawMiktarLbl' + IntToStr(HedefFisID));</div><div>&nbsp; RF = MyForm.clFindComponent('RawFiyatLbl' + IntToStr(HedefFisID));</div><div>&nbsp; RMu = MyForm.clFindComponent('RawMusteriLbl' + IntToStr(HedefFisID));</div><div>&nbsp; RTa = MyForm.clFindComponent('RawTarihLbl' + IntToStr(HedefFisID));</div><div>&nbsp; RTu = MyForm.clFindComponent('RawTutarLbl' + IntToStr(HedefFisID));</div><div>&nbsp;&nbsp;</div><div>&nbsp; RVkn = MyForm.clFindComponent('RawMusVknLbl' + IntToStr(HedefFisID));</div><div>&nbsp; RVd = MyForm.clFindComponent('RawMusVdLbl' + IntToStr(HedefFisID));</div><div>&nbsp; RAdr = MyForm.clFindComponent('RawMusAdrLbl' + IntToStr(HedefFisID));</div><div>&nbsp; RTel = MyForm.clFindComponent('RawMusTelLbl' + IntToStr(HedefFisID));</div><div><br></div><div>&nbsp; RSU = MyForm.clFindComponent('RawSatUnvanLbl' + IntToStr(HedefFisID));</div><div>&nbsp; RSD = MyForm.clFindComponent('RawSatDetayLbl' + IntToStr(HedefFisID));</div><div><br></div><div>&nbsp; if (RSU &lt;&gt; nil) { FirmaIsimLbl.Text = RSU.Text; } else { FirmaIsimLbl.Text = '-'; }</div><div>&nbsp; if (RSD &lt;&gt; nil) { FirmaDetayLbl.Text = RSD.Text; } else { FirmaDetayLbl.Text = '-'; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (RTa &lt;&gt; nil) { FaturaTarihLbl.Text = 'Tarih: ' + RTa.Text; }</div><div>&nbsp; if (RMu &lt;&gt; nil) { FaturaAliciLbl.Text = RMu.Text; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (RVkn &lt;&gt; nil)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; FaturaAliciDetayLbl.Text = RAdr.Text + ' | Tel: ' + RTel.Text + ' | VD: ' + RVd.Text + ' VKN: ' + RVkn.Text;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (RU &lt;&gt; nil) { Val1.Text = ' ' + RU.Text; }&nbsp;</div><div>&nbsp; if (RM &lt;&gt; nil) { Val2.Text = ' ' + RM.Text; }&nbsp;</div><div>&nbsp; if (RF &lt;&gt; nil) { Val3.Text = ' ' + RF.Text; }&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (RTu &lt;&gt; nil)&nbsp;</div><div>&nbsp; {&nbsp;</div><div>&nbsp; &nbsp; Val5.Text = ' ' + RTu.Text;&nbsp;</div><div>&nbsp; &nbsp; SubTotal = StrToFloat(RTu.Text);&nbsp;</div><div>&nbsp; &nbsp; KDV = SubTotal * 0.20;&nbsp;</div><div>&nbsp; &nbsp; GrandTotal = SubTotal + KDV;&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; OzetAltToplamLbl.Text = 'Mal Hizmet Tutarı: ' + FloatToStr(SubTotal) + ' TL';</div><div>&nbsp; &nbsp; OzetKdvLbl.Text = 'Hesaplanan KDV (%20): ' + FloatToStr(KDV) + ' TL';</div><div>&nbsp; &nbsp; OzetGenelToplamLbl.Text = 'Ödenecek Tutar: ' + FloatToStr(GrandTotal) + ' TL';</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; FislerPanel.Visible = False;</div><div>&nbsp; FisDetayPanel.Visible = True;</div><div>&nbsp; HeaderLbl.Text = '&nbsp; FİŞ DETAYI / E-FATURA';</div><div>}</div><div><br></div><div>void EFaturaOlusturTiklandi;</div><div>{</div><div>&nbsp; ShowMessage('Fatura resmi olarak imzalanmaya hazır! Bir sonraki aşamada entegratöre iletilecek.');</div><div>}</div><div><br></div><div>void ShowAnaEkranMod; { AnaEkranPanel.Visible = True; StokPanel.Visible = False; SatisPanel.Visible = False; FislerPanel.Visible = False; FisDetayPanel.Visible = False; HeaderLbl.Text = '&nbsp; ANA EKRAN'; MenuPnl.Visible = False; }</div><div>void ShowStokMod; { AnaEkranPanel.Visible = False; StokPanel.Visible = True; SatisPanel.Visible = False; FislerPanel.Visible = False; FisDetayPanel.Visible = False; HeaderLbl.Text = '&nbsp; STOK YÖNETİMİ'; MenuPnl.Visible = False; }</div><div>void ShowSatisMod; { AnaEkranPanel.Visible = False; StokPanel.Visible = False; SatisPanel.Visible = True; FislerPanel.Visible = False; FisDetayPanel.Visible = False; HeaderLbl.Text = '&nbsp; ÜRÜN LİSTESİ'; MenuPnl.Visible = False; }</div><div>void ShowFislerMod; { AnaEkranPanel.Visible = False; StokPanel.Visible = False; SatisPanel.Visible = False; FislerPanel.Visible = True; FisDetayPanel.Visible = False; HeaderLbl.Text = '&nbsp; SATIŞ FİŞLERİ'; MenuPnl.Visible = False; }</div><div><br></div><div>{</div><div>&nbsp; MyForm = TclForm.Create(self);</div><div><br></div><div>&nbsp; VeritabaniKurulumu;</div><div><br></div><div>&nbsp; SifreDurum = False;</div><div><br></div><div>&nbsp; BgPnl = MyForm.AddNewProPanel(MyForm, 'BgPnl');</div><div>&nbsp; BgPnl.Align = alClient;&nbsp;</div><div>&nbsp; BgPnl.Visible = False;&nbsp;&nbsp;</div><div>&nbsp; BgPnl.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FAF7F2');&nbsp;</div><div>&nbsp; BgPnl.SetClproSettings(BgPnl.clprosettings);&nbsp;</div><div><br></div><div>&nbsp; TopPnl = MyForm.AddNewProPanel(BgPnl, 'TopPnl');</div><div>&nbsp; TopPnl.Align = alTop; TopPnl.Height = 60;&nbsp;</div><div>&nbsp; TopPnl.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#D5B990');&nbsp;</div><div>&nbsp; TopPnl.SetClproSettings(TopPnl.clprosettings);</div><div><br></div><div>&nbsp; HeaderLbl = MyForm.AddNewProLabel(TopPnl, 'HeaderLbl', '&nbsp; ANA EKRAN');</div><div>&nbsp; HeaderLbl.Align = alLeft; HeaderLbl.Width = 200;</div><div>&nbsp; HeaderLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; HeaderLbl.SetClproSettings(HeaderLbl.clprosettings);</div><div><br></div><div>&nbsp; MenuBtn = MyForm.AddNewProButton(TopPnl, 'MenuBtn', '&#8801; MENÜ');</div><div>&nbsp; MenuBtn.Align = alRight; MenuBtn.Width = 90;</div><div>&nbsp; MenuBtn.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#E4CDA7');&nbsp;</div><div>&nbsp; MenuBtn.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; MenuBtn.clprosettings.BorderColor = clAlphaColor.clHexToColor('#D5B990');</div><div>&nbsp; MenuBtn.clprosettings.BorderWidth = 1;</div><div>&nbsp; MenuBtn.clprosettings.RoundHeight = 5;</div><div>&nbsp; MenuBtn.SetClproSettings(MenuBtn.clprosettings);</div><div>&nbsp; MyForm.AddNewEvent(MenuBtn, tbeOnClick, 'ToggleMenu');&nbsp;</div><div><br></div><div>&nbsp; MenuPnl = MyForm.AddNewProPanel(BgPnl, 'MenuPnl');</div><div>&nbsp; MenuPnl.Align = alRight; MenuPnl.Width = 180;&nbsp;</div><div>&nbsp; MenuPnl.Visible = False;&nbsp;</div><div>&nbsp; MenuPnl.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FAF7F2');&nbsp;</div><div>&nbsp; MenuPnl.clprosettings.BorderColor = clAlphaColor.clHexToColor('#D5B990');</div><div>&nbsp; MenuPnl.clprosettings.BorderWidth = 1;</div><div>&nbsp; MenuPnl.SetClproSettings(MenuPnl.clprosettings);</div><div><br></div><div>&nbsp; KasaLbl = MyForm.AddNewProLabel(MenuPnl, 'KasaLbl', 'Kasa: 0 TL');</div><div>&nbsp; KasaLbl.Align = alTop; KasaLbl.Height = 50; KasaLbl.Margins.Left = 15; KasaLbl.Margins.Top = 10;</div><div>&nbsp; KasaLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');&nbsp;</div><div>&nbsp; KasaLbl.SetClproSettings(KasaLbl.clprosettings);</div><div><br></div><div>&nbsp; ToplamStokLbl = MyForm.AddNewProLabel(MenuPnl, 'ToplamStokLbl', 'Genel Stok: 0');</div><div>&nbsp; ToplamStokLbl.Align = alTop; ToplamStokLbl.Height = 50; ToplamStokLbl.Margins.Left = 15;</div><div>&nbsp; ToplamStokLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');&nbsp;</div><div>&nbsp; ToplamStokLbl.SetClproSettings(ToplamStokLbl.clprosettings);</div><div><br></div><div>&nbsp; AnaEkranBtn = MyForm.AddNewProButton(MenuPnl, 'AnaEkranBtn', 'ANA EKRAN');</div><div>&nbsp; AnaEkranBtn.Align = alTop; AnaEkranBtn.Height = 45; AnaEkranBtn.Margins.Left = 10; AnaEkranBtn.Margins.Right = 10; AnaEkranBtn.Margins.Top = 10;</div><div>&nbsp; AnaEkranBtn.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#E4CDA7');&nbsp;</div><div>&nbsp; AnaEkranBtn.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; AnaEkranBtn.clprosettings.BorderColor = clAlphaColor.clHexToColor('#D5B990');</div><div>&nbsp; AnaEkranBtn.clprosettings.BorderWidth = 1;</div><div>&nbsp; AnaEkranBtn.SetClproSettings(AnaEkranBtn.clprosettings);</div><div>&nbsp; MyForm.AddNewEvent(AnaEkranBtn, tbeOnClick, 'ShowAnaEkranMod');</div><div><br></div><div>&nbsp; StokModBtn = MyForm.AddNewProButton(MenuPnl, 'StokModBtn', 'STOK EKLE');</div><div>&nbsp; StokModBtn.Align = alTop; StokModBtn.Height = 45; StokModBtn.Margins.Left = 10; StokModBtn.Margins.Right = 10; StokModBtn.Margins.Top = 10;</div><div>&nbsp; StokModBtn.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#E4CDA7');&nbsp;</div><div>&nbsp; StokModBtn.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; StokModBtn.clprosettings.BorderColor = clAlphaColor.clHexToColor('#D5B990');</div><div>&nbsp; StokModBtn.clprosettings.BorderWidth = 1;</div><div>&nbsp; StokModBtn.SetClproSettings(StokModBtn.clprosettings);</div><div>&nbsp; MyForm.AddNewEvent(StokModBtn, tbeOnClick, 'ShowStokMod');</div><div><br></div><div>&nbsp; SatisModBtn = MyForm.AddNewProButton(MenuPnl, 'SatisModBtn', 'ÜRÜNLER');</div><div>&nbsp; SatisModBtn.Align = alTop; SatisModBtn.Height = 45; SatisModBtn.Margins.Left = 10; SatisModBtn.Margins.Right = 10; SatisModBtn.Margins.Top = 10;</div><div>&nbsp; SatisModBtn.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#E4CDA7');&nbsp;</div><div>&nbsp; SatisModBtn.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; SatisModBtn.clprosettings.BorderColor = clAlphaColor.clHexToColor('#D5B990');</div><div>&nbsp; SatisModBtn.clprosettings.BorderWidth = 1;</div><div>&nbsp; SatisModBtn.SetClproSettings(SatisModBtn.clprosettings);</div><div>&nbsp; MyForm.AddNewEvent(SatisModBtn, tbeOnClick, 'ShowSatisMod');</div><div><br></div><div>&nbsp; FislerBtn = MyForm.AddNewProButton(MenuPnl, 'FislerBtn', 'FİŞLER');</div><div>&nbsp; FislerBtn.Align = alTop; FislerBtn.Height = 45; FislerBtn.Margins.Left = 10; FislerBtn.Margins.Right = 10; FislerBtn.Margins.Top = 10;</div><div>&nbsp; FislerBtn.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#E4CDA7');&nbsp;</div><div>&nbsp; FislerBtn.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; FislerBtn.clprosettings.BorderColor = clAlphaColor.clHexToColor('#D5B990');</div><div>&nbsp; FislerBtn.clprosettings.BorderWidth = 1;</div><div>&nbsp; FislerBtn.SetClproSettings(FislerBtn.clprosettings);</div><div>&nbsp; MyForm.AddNewEvent(FislerBtn, tbeOnClick, 'ShowFislerMod');</div><div><br></div><div>&nbsp; AnaEkranPanel = MyForm.AddNewProPanel(BgPnl, 'AnaEkranPanel');</div><div>&nbsp; AnaEkranPanel.Align = alClient;</div><div>&nbsp; AnaEkranPanel.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FFFFFF');</div><div>&nbsp; AnaEkranPanel.SetClproSettings(AnaEkranPanel.clprosettings);</div><div><br></div><div>&nbsp; AnaEkranLbl = MyForm.AddNewProLabel(AnaEkranPanel, 'AnaEkranLbl', 'ÖZERBAYLAR SİSTEMİNE HOŞ GELDİNİZ');</div><div>&nbsp; AnaEkranLbl.Align = alTop; AnaEkranLbl.Height = 40; AnaEkranLbl.Margins.Top = 40;</div><div>&nbsp; AnaEkranLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; AnaEkranLbl.SetClproSettings(AnaEkranLbl.clprosettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; AltBilgiLbl = MyForm.AddNewProLabel(AnaEkranPanel, 'AltBilgiLbl', 'İşlem yapmak için sağ üstteki menüyü kullanın.');</div><div>&nbsp; AltBilgiLbl.Align = alTop; AltBilgiLbl.Height = 30; AltBilgiLbl.Margins.Top = 20;</div><div>&nbsp; AltBilgiLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#5A4A3A');</div><div>&nbsp; AltBilgiLbl.SetClproSettings(AltBilgiLbl.clprosettings);</div><div><br></div><div>&nbsp; StokPanel = MyForm.AddNewProPanel(BgPnl, 'StokPanel');</div><div>&nbsp; StokPanel.Align = alTop; StokPanel.Height = 250; StokPanel.Visible = False;&nbsp;</div><div>&nbsp; StokPanel.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FFFFFF');</div><div>&nbsp; StokPanel.SetClproSettings(StokPanel.clprosettings);</div><div><br></div><div>&nbsp; UrunAdEdt = MyForm.AddNewProEdit(StokPanel, 'UrunAdEdt', 'Ürün Adı');</div><div>&nbsp; UrunAdEdt.Align = alTop; UrunAdEdt.Height = 40; UrunAdEdt.Margins.Top = 10;</div><div>&nbsp; UrunAdEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');&nbsp;</div><div>&nbsp; UrunAdEdt.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; UrunAdEdt.SetClproSettings(UrunAdEdt.clprosettings);</div><div><br></div><div>&nbsp; AdetEdt = MyForm.AddNewProEdit(StokPanel, 'AdetEdt', 'Adet');</div><div>&nbsp; AdetEdt.Align = alTop; AdetEdt.Height = 40; AdetEdt.Margins.Top = 5;</div><div>&nbsp; AdetEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; AdetEdt.SetClproSettings(AdetEdt.clprosettings);</div><div><br></div><div>&nbsp; FiyatEdt = MyForm.AddNewProEdit(StokPanel, 'FiyatEdt', 'Fiyat');</div><div>&nbsp; FiyatEdt.Align = alTop; FiyatEdt.Height = 40; FiyatEdt.Margins.Top = 5;</div><div>&nbsp; FiyatEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; FiyatEdt.SetClproSettings(FiyatEdt.clprosettings);</div><div><br></div><div>&nbsp; KaydetBtn = MyForm.AddNewProButton(StokPanel, 'KaydetBtn', 'STOKLA');</div><div>&nbsp; KaydetBtn.Align = alTop; KaydetBtn.Height = 45; KaydetBtn.Margins.Top = 10;</div><div>&nbsp; KaydetBtn.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#E4CDA7');&nbsp;</div><div>&nbsp; KaydetBtn.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; KaydetBtn.SetClproSettings(KaydetBtn.clprosettings);</div><div>&nbsp; MyForm.AddNewEvent(KaydetBtn, tbeOnClick, 'UrunEkle');&nbsp;</div><div><br></div><div>&nbsp; SatisPanel = MyForm.AddNewProPanel(BgPnl, 'SatisPanel');</div><div>&nbsp; SatisPanel.Align = alClient; SatisPanel.Visible = False;</div><div><br></div><div>&nbsp; FislerPanel = MyForm.AddNewProPanel(BgPnl, 'FislerPanel');</div><div>&nbsp; FislerPanel.Align = alClient; FislerPanel.Visible = False;</div><div><br></div><div>&nbsp; FisDetayPanel = MyForm.AddNewProPanel(BgPnl, 'FisDetayPanel');</div><div>&nbsp; FisDetayPanel.Align = alClient;</div><div>&nbsp; FisDetayPanel.Visible = False;&nbsp;</div><div>&nbsp; FisDetayPanel.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FAF7F2');</div><div>&nbsp; FisDetayPanel.SetClproSettings(FisDetayPanel.clprosettings);</div><div><br></div><div>&nbsp; FaturaTopPnl = MyForm.AddNewProPanel(FisDetayPanel, 'FaturaTopPnl');</div><div>&nbsp; FaturaTopPnl.Align = alTop; FaturaTopPnl.Height = 50;</div><div>&nbsp; FaturaTopPnl.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FAF7F2');</div><div>&nbsp; FaturaTopPnl.SetClproSettings(FaturaTopPnl.clprosettings);</div><div><br></div><div>&nbsp; DetayGeriBtn = MyForm.AddNewProButton(FaturaTopPnl, 'DetayGeriBtn', '&#8592; LİSTEYE DÖN');</div><div>&nbsp; DetayGeriBtn.Align = alLeft; DetayGeriBtn.Width = 120; DetayGeriBtn.Margins.Left = 10; DetayGeriBtn.Margins.Top = 5; DetayGeriBtn.Margins.Bottom = 5;</div><div>&nbsp; DetayGeriBtn.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#EBE0D0');&nbsp;</div><div>&nbsp; DetayGeriBtn.SetClproSettings(DetayGeriBtn.clprosettings);</div><div>&nbsp; MyForm.AddNewEvent(DetayGeriBtn, tbeOnClick, 'FisDetayKapat');</div><div><br></div><div>&nbsp; EFaturaKesBtn = MyForm.AddNewProButton(FaturaTopPnl, 'EFaturaKesBtn', 'E-FATURA OLUŞTUR');</div><div>&nbsp; EFaturaKesBtn.Align = alRight; EFaturaKesBtn.Width = 150; EFaturaKesBtn.Margins.Right = 10; EFaturaKesBtn.Margins.Top = 5; EFaturaKesBtn.Margins.Bottom = 5;</div><div>&nbsp; EFaturaKesBtn.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#D5B990');&nbsp;</div><div>&nbsp; EFaturaKesBtn.SetClproSettings(EFaturaKesBtn.clprosettings);</div><div>&nbsp; MyForm.AddNewEvent(EFaturaKesBtn, tbeOnClick, 'EFaturaOlusturTiklandi');</div><div><br></div><div>&nbsp; FaturaScrl = MyForm.AddNewVertScrollBox(FisDetayPanel, 'FaturaScrl');</div><div>&nbsp; FaturaScrl.Align = alClient;</div><div><br></div><div>&nbsp; KagitPnl = MyForm.AddNewProPanel(FaturaScrl, 'KagitPnl');</div><div>&nbsp; KagitPnl.Align = alTop; KagitPnl.Height = 450; KagitPnl.Margins.Top = 10; KagitPnl.Margins.Left = 10; KagitPnl.Margins.Right = 10;</div><div>&nbsp; KagitPnl.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FFFFFF');</div><div>&nbsp; KagitPnl.clprosettings.BorderColor = clAlphaColor.clHexToColor('#D5B990');</div><div>&nbsp; KagitPnl.clprosettings.BorderWidth = 1;</div><div>&nbsp; KagitPnl.SetClproSettings(KagitPnl.clprosettings);</div><div><br></div><div>&nbsp; UstBilgiPnl = MyForm.AddNewProPanel(KagitPnl, 'UstBilgiPnl');</div><div>&nbsp; UstBilgiPnl.Align = alTop; UstBilgiPnl.Height = 90;</div><div>&nbsp; UstBilgiPnl.SetClproSettings(UstBilgiPnl.clprosettings);</div><div><br></div><div>&nbsp; FaturaSagPnl = MyForm.AddNewProPanel(UstBilgiPnl, 'FaturaSagPnl');</div><div>&nbsp; FaturaSagPnl.Align = alRight; FaturaSagPnl.Width = 180;</div><div>&nbsp; FaturaSagPnl.SetClproSettings(FaturaSagPnl.clprosettings);</div><div><br></div><div>&nbsp; EFaturaLogoLbl = MyForm.AddNewProLabel(FaturaSagPnl, 'EFaturaLogoLbl', 'e-FATURA');</div><div>&nbsp; EFaturaLogoLbl.Align = alTop; EFaturaLogoLbl.Height = 25; EFaturaLogoLbl.Margins.Top = 10;</div><div>&nbsp; EFaturaLogoLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#D5B990');</div><div>&nbsp; EFaturaLogoLbl.SetClproSettings(EFaturaLogoLbl.clprosettings);</div><div><br></div><div>&nbsp; FaturaSenaryoLbl = MyForm.AddNewProLabel(FaturaSagPnl, 'FaturaSenaryoLbl', 'Senaryo: TICARIFATURA');</div><div>&nbsp; FaturaSenaryoLbl.Align = alTop; FaturaSenaryoLbl.Height = 20;</div><div>&nbsp; FaturaSenaryoLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#5A4A3A');</div><div>&nbsp; FaturaSenaryoLbl.SetClproSettings(FaturaSenaryoLbl.clprosettings);</div><div><br></div><div>&nbsp; FaturaTarihLbl = MyForm.AddNewProLabel(FaturaSagPnl, 'FaturaTarihLbl', 'Tarih: -');</div><div>&nbsp; FaturaTarihLbl.Align = alTop; FaturaTarihLbl.Height = 20;</div><div>&nbsp; FaturaTarihLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#5A4A3A');</div><div>&nbsp; FaturaTarihLbl.SetClproSettings(FaturaTarihLbl.clprosettings);</div><div><br></div><div>&nbsp; SaticiPnl = MyForm.AddNewProPanel(UstBilgiPnl, 'SaticiPnl');</div><div>&nbsp; SaticiPnl.Align = alClient;</div><div>&nbsp; SaticiPnl.SetClproSettings(SaticiPnl.clprosettings);</div><div><br></div><div>&nbsp; FirmaIsimLbl = MyForm.AddNewProLabel(SaticiPnl, 'FirmaIsimLbl', 'ALİ ERBAY');</div><div>&nbsp; FirmaIsimLbl.Align = alTop; FirmaIsimLbl.Height = 25; FirmaIsimLbl.Margins.Left = 10; FirmaIsimLbl.Margins.Top = 10;</div><div>&nbsp; FirmaIsimLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; FirmaIsimLbl.SetClproSettings(FirmaIsimLbl.clprosettings);</div><div><br></div><div>&nbsp; FirmaDetayLbl = MyForm.AddNewProLabel(SaticiPnl, 'FirmaDetayLbl', 'Adres ve VKN Bilgileri...');</div><div>&nbsp; FirmaDetayLbl.Align = alClient; FirmaDetayLbl.Margins.Left = 10;</div><div>&nbsp; FirmaDetayLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#5A4A3A');</div><div>&nbsp; FirmaDetayLbl.SetClproSettings(FirmaDetayLbl.clprosettings);</div><div><br></div><div>&nbsp; AliciPnl = MyForm.AddNewProPanel(KagitPnl, 'AliciPnl');</div><div>&nbsp; AliciPnl.Align = alTop; AliciPnl.Height = 100;</div><div>&nbsp; AliciPnl.SetClproSettings(AliciPnl.clprosettings);</div><div><br></div><div>&nbsp; SayinLbl = MyForm.AddNewProLabel(AliciPnl, 'SayinLbl', 'SAYIN');</div><div>&nbsp; SayinLbl.Align = alTop; SayinLbl.Height = 20; SayinLbl.Margins.Left = 10; SayinLbl.Margins.Top = 10;</div><div>&nbsp; SayinLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#5A4A3A');</div><div>&nbsp; SayinLbl.SetClproSettings(SayinLbl.clprosettings);</div><div><br></div><div>&nbsp; FaturaAliciLbl = MyForm.AddNewProLabel(AliciPnl, 'FaturaAliciLbl', 'Müşteri Adı Soyadı');</div><div>&nbsp; FaturaAliciLbl.Align = alTop; FaturaAliciLbl.Height = 25; FaturaAliciLbl.Margins.Left = 10;</div><div>&nbsp; FaturaAliciLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; FaturaAliciLbl.SetClproSettings(FaturaAliciLbl.clprosettings);</div><div><br></div><div>&nbsp; FaturaAliciDetayLbl = MyForm.AddNewProLabel(AliciPnl, 'FaturaAliciDetayLbl', 'Müşteri VKN, VD, Adres...');</div><div>&nbsp; FaturaAliciDetayLbl.Align = alTop; FaturaAliciDetayLbl.Height = 40; FaturaAliciDetayLbl.Margins.Left = 10;</div><div>&nbsp; FaturaAliciDetayLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#5A4A3A');</div><div>&nbsp; FaturaAliciDetayLbl.SetClproSettings(FaturaAliciDetayLbl.clprosettings);</div><div><br></div><div>&nbsp; TabloPnl = MyForm.AddNewProPanel(KagitPnl, 'TabloPnl');</div><div>&nbsp; TabloPnl.Align = alTop; TabloPnl.Height = 80; TabloPnl.Margins.Top = 10;</div><div>&nbsp; TabloPnl.SetClproSettings(TabloPnl.clprosettings);</div><div><br></div><div>&nbsp; TabloBaslikPnl = MyForm.AddNewProPanel(TabloPnl, 'TabloBaslikPnl');</div><div>&nbsp; TabloBaslikPnl.Align = alTop; TabloBaslikPnl.Height = 30;</div><div>&nbsp; TabloBaslikPnl.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#F9F6F0');</div><div>&nbsp; TabloBaslikPnl.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; TabloBaslikPnl.clprosettings.BorderWidth = 1;</div><div>&nbsp; TabloBaslikPnl.SetClproSettings(TabloBaslikPnl.clprosettings);</div><div><br></div><div>&nbsp; Col1 = MyForm.AddNewProLabel(TabloBaslikPnl, 'Col1', ' Mal Hizmet'); Col1.Align = alLeft; Col1.Width = 100;</div><div>&nbsp; Col2 = MyForm.AddNewProLabel(TabloBaslikPnl, 'Col2', ' Miktar'); Col2.Align = alLeft; Col2.Width = 50;</div><div>&nbsp; Col3 = MyForm.AddNewProLabel(TabloBaslikPnl, 'Col3', ' B.Fiyat'); Col3.Align = alLeft; Col3.Width = 50;</div><div>&nbsp; Col4 = MyForm.AddNewProLabel(TabloBaslikPnl, 'Col4', ' KDV'); Col4.Align = alLeft; Col4.Width = 40;</div><div>&nbsp; Col5 = MyForm.AddNewProLabel(TabloBaslikPnl, 'Col5', ' Tutar (TL)'); Col5.Align = alClient;</div><div><br></div><div>&nbsp; TabloVeriPnl = MyForm.AddNewProPanel(TabloPnl, 'TabloVeriPnl');</div><div>&nbsp; TabloVeriPnl.Align = alClient;</div><div>&nbsp; TabloVeriPnl.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FFFFFF');</div><div>&nbsp; TabloVeriPnl.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; TabloVeriPnl.clprosettings.BorderWidth = 1;</div><div>&nbsp; TabloVeriPnl.SetClproSettings(TabloVeriPnl.clprosettings);</div><div><br></div><div>&nbsp; Val1 = MyForm.AddNewProLabel(TabloVeriPnl, 'Val1', ' -'); Val1.Align = alLeft; Val1.Width = 100;</div><div>&nbsp; Val2 = MyForm.AddNewProLabel(TabloVeriPnl, 'Val2', ' -'); Val2.Align = alLeft; Val2.Width = 50;</div><div>&nbsp; Val3 = MyForm.AddNewProLabel(TabloVeriPnl, 'Val3', ' -'); Val3.Align = alLeft; Val3.Width = 50;</div><div>&nbsp; Val4 = MyForm.AddNewProLabel(TabloVeriPnl, 'Val4', ' %20'); Val4.Align = alLeft; Val4.Width = 40;</div><div>&nbsp; Val5 = MyForm.AddNewProLabel(TabloVeriPnl, 'Val5', ' -'); Val5.Align = alClient;</div><div><br></div><div>&nbsp; ToplamPnl = MyForm.AddNewProPanel(KagitPnl, 'ToplamPnl');</div><div>&nbsp; ToplamPnl.Align = alTop; ToplamPnl.Height = 100; ToplamPnl.Margins.Top = 15;</div><div>&nbsp; ToplamPnl.SetClproSettings(ToplamPnl.clprosettings);</div><div><br></div><div>&nbsp; ToplamIcerikPnl = MyForm.AddNewProPanel(ToplamPnl, 'ToplamIcerikPnl');</div><div>&nbsp; ToplamIcerikPnl.Align = alRight; ToplamIcerikPnl.Width = 220;&nbsp;</div><div>&nbsp; ToplamIcerikPnl.SetClproSettings(ToplamIcerikPnl.clprosettings);</div><div><br></div><div>&nbsp; OzetAltToplamLbl = MyForm.AddNewProLabel(ToplamIcerikPnl, 'OzetAltToplamLbl', 'Mal Hizmet: 0 TL');</div><div>&nbsp; OzetAltToplamLbl.Align = alTop; OzetAltToplamLbl.Height = 25;</div><div>&nbsp; OzetAltToplamLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#5A4A3A');</div><div>&nbsp; OzetAltToplamLbl.SetClproSettings(OzetAltToplamLbl.clprosettings);</div><div><br></div><div>&nbsp; OzetKdvLbl = MyForm.AddNewProLabel(ToplamIcerikPnl, 'OzetKdvLbl', 'Hesaplanan KDV: 0 TL');</div><div>&nbsp; OzetKdvLbl.Align = alTop; OzetKdvLbl.Height = 25;</div><div>&nbsp; OzetKdvLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#5A4A3A');</div><div>&nbsp; OzetKdvLbl.SetClproSettings(OzetKdvLbl.clprosettings);</div><div><br></div><div>&nbsp; OzetGenelToplamLbl = MyForm.AddNewProLabel(ToplamIcerikPnl, 'OzetGenelToplamLbl', 'Ödenecek Tutar: 0 TL');</div><div>&nbsp; OzetGenelToplamLbl.Align = alTop; OzetGenelToplamLbl.Height = 30;</div><div>&nbsp; OzetGenelToplamLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; OzetGenelToplamLbl.SetClproSettings(OzetGenelToplamLbl.clprosettings);</div><div><br></div><div>&nbsp; OverlayPnl = MyForm.AddNewProPanel(BgPnl, 'OverlayPnl');</div><div>&nbsp; OverlayPnl.Align = alClient; OverlayPnl.Visible = False;</div><div>&nbsp; OverlayPnl.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FAF7F2');&nbsp;</div><div>&nbsp; OverlayPnl.SetClproSettings(OverlayPnl.clprosettings);</div><div><br></div><div>&nbsp; PopupPanel = MyForm.AddNewProPanel(OverlayPnl, 'PopupPanel');</div><div>&nbsp; PopupPanel.Align = alNone; PopupPanel.Width = 340; PopupPanel.Height = 550;&nbsp;</div><div>&nbsp; PopupPanel.Left = 20; PopupPanel.Top = 60;</div><div>&nbsp; PopupPanel.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FFFFFF');</div><div>&nbsp; PopupPanel.clprosettings.RoundHeight = 20;&nbsp;</div><div>&nbsp; PopupPanel.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; PopupPanel.clprosettings.BorderWidth = 2;</div><div>&nbsp; PopupPanel.SetClproSettings(PopupPanel.clprosettings);</div><div><br></div><div>&nbsp; KapatBtn = MyForm.AddNewProButton(PopupPanel, 'KapatBtn', 'X');</div><div>&nbsp; KapatBtn.Align = alNone; KapatBtn.Width = 35; KapatBtn.Height = 35; KapatBtn.Left = 295; KapatBtn.Top = 5;</div><div>&nbsp; KapatBtn.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FAF7F2');</div><div>&nbsp; KapatBtn.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; KapatBtn.SetClproSettings(KapatBtn.clprosettings);</div><div>&nbsp; MyForm.AddNewEvent(KapatBtn, tbeOnClick, 'KapatSatisPanel');&nbsp;</div><div><br></div><div>&nbsp; SatisOnayBtn = MyForm.AddNewProButton(PopupPanel, 'SatisOnayBtn', 'SATIŞI ONAYLA');</div><div>&nbsp; SatisOnayBtn.Align = alBottom; SatisOnayBtn.Height = 45; SatisOnayBtn.Margins.Bottom = 10; SatisOnayBtn.Margins.Left = 20; SatisOnayBtn.Margins.Right = 20;</div><div>&nbsp; SatisOnayBtn.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#E4CDA7');&nbsp;</div><div>&nbsp; SatisOnayBtn.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; SatisOnayBtn.SetClproSettings(SatisOnayBtn.clprosettings);</div><div>&nbsp; MyForm.AddNewEvent(SatisOnayBtn, tbeOnClick, 'SatisYap');&nbsp;</div><div><br></div><div>&nbsp; SatisScroll = MyForm.AddNewVertScrollBox(PopupPanel, 'SatisScroll');</div><div>&nbsp; SatisScroll.Align = alClient;</div><div>&nbsp; SatisScroll.Margins.Top = 10;</div><div>&nbsp; SatisScroll.Margins.Bottom = 60;&nbsp;</div><div><br></div><div>&nbsp; SatBaslikLbl = MyForm.AddNewProLabel(SatisScroll, 'SatBaslikLbl', '--- SATICI (SİZİN) BİLGİLERİNİZ ---');</div><div>&nbsp; SatBaslikLbl.Align = alTop; SatBaslikLbl.Height = 25; SatBaslikLbl.Margins.Top = 10; SatBaslikLbl.Margins.Left = 20;</div><div>&nbsp; SatBaslikLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#5A4A3A');</div><div>&nbsp; SatBaslikLbl.SetClproSettings(SatBaslikLbl.clprosettings);</div><div><br></div><div>&nbsp; SaticiUnvanEdt = MyForm.AddNewProEdit(SatisScroll, 'SaticiUnvanEdt', 'Firma Unvanı / Ad Soyad');</div><div>&nbsp; SaticiUnvanEdt.Align = alTop; SaticiUnvanEdt.Height = 40; SaticiUnvanEdt.Margins.Top = 5; SaticiUnvanEdt.Margins.Left = 20; SaticiUnvanEdt.Margins.Right = 20;</div><div>&nbsp; SaticiUnvanEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; SaticiUnvanEdt.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; SaticiUnvanEdt.clprosettings.BorderWidth = 1;</div><div>&nbsp; SaticiUnvanEdt.SetClproSettings(SaticiUnvanEdt.clprosettings);</div><div><br></div><div>&nbsp; SaticiVknEdt = MyForm.AddNewProEdit(SatisScroll, 'SaticiVknEdt', 'VKN / TCKN');</div><div>&nbsp; SaticiVknEdt.Align = alTop; SaticiVknEdt.Height = 40; SaticiVknEdt.Margins.Top = 5; SaticiVknEdt.Margins.Left = 20; SaticiVknEdt.Margins.Right = 20;</div><div>&nbsp; SaticiVknEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; SaticiVknEdt.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; SaticiVknEdt.clprosettings.BorderWidth = 1;</div><div>&nbsp; SaticiVknEdt.SetClproSettings(SaticiVknEdt.clprosettings);</div><div><br></div><div>&nbsp; SaticiVdEdt = MyForm.AddNewProEdit(SatisScroll, 'SaticiVdEdt', 'Vergi Dairesi');</div><div>&nbsp; SaticiVdEdt.Align = alTop; SaticiVdEdt.Height = 40; SaticiVdEdt.Margins.Top = 5; SaticiVdEdt.Margins.Left = 20; SaticiVdEdt.Margins.Right = 20;</div><div>&nbsp; SaticiVdEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; SaticiVdEdt.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; SaticiVdEdt.clprosettings.BorderWidth = 1;</div><div>&nbsp; SaticiVdEdt.SetClproSettings(SaticiVdEdt.clprosettings);</div><div><br></div><div>&nbsp; SaticiAdresEdt = MyForm.AddNewProEdit(SatisScroll, 'SaticiAdresEdt', 'Adresiniz');</div><div>&nbsp; SaticiAdresEdt.Align = alTop; SaticiAdresEdt.Height = 40; SaticiAdresEdt.Margins.Top = 5; SaticiAdresEdt.Margins.Left = 20; SaticiAdresEdt.Margins.Right = 20;</div><div>&nbsp; SaticiAdresEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; SaticiAdresEdt.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; SaticiAdresEdt.clprosettings.BorderWidth = 1;</div><div>&nbsp; SaticiAdresEdt.SetClproSettings(SaticiAdresEdt.clprosettings);</div><div><br></div><div>&nbsp; SaticiTelEdt = MyForm.AddNewProEdit(SatisScroll, 'SaticiTelEdt', 'İletişim (Tel/E-Posta)');</div><div>&nbsp; SaticiTelEdt.Align = alTop; SaticiTelEdt.Height = 40; SaticiTelEdt.Margins.Top = 5; SaticiTelEdt.Margins.Left = 20; SaticiTelEdt.Margins.Right = 20;</div><div>&nbsp; SaticiTelEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; SaticiTelEdt.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; SaticiTelEdt.clprosettings.BorderWidth = 1;</div><div>&nbsp; SaticiTelEdt.SetClproSettings(SaticiTelEdt.clprosettings);</div><div><br></div><div>&nbsp; MusBaslikLbl = MyForm.AddNewProLabel(SatisScroll, 'MusBaslikLbl', '--- ALICI (MÜŞTERİ) BİLGİLERİ ---');</div><div>&nbsp; MusBaslikLbl.Align = alTop; MusBaslikLbl.Height = 25; MusBaslikLbl.Margins.Top = 20; MusBaslikLbl.Margins.Left = 20;</div><div>&nbsp; MusBaslikLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#5A4A3A');</div><div>&nbsp; MusBaslikLbl.SetClproSettings(MusBaslikLbl.clprosettings);</div><div><br></div><div>&nbsp; AliciAdiEdt = MyForm.AddNewProEdit(SatisScroll, 'AliciAdiEdt', 'Müşteri Unvanı / Ad Soyad');</div><div>&nbsp; AliciAdiEdt.Align = alTop; AliciAdiEdt.Height = 40; AliciAdiEdt.Margins.Top = 5; AliciAdiEdt.Margins.Left = 20; AliciAdiEdt.Margins.Right = 20;</div><div>&nbsp; AliciAdiEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; AliciAdiEdt.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; AliciAdiEdt.clprosettings.BorderWidth = 1;</div><div>&nbsp; AliciAdiEdt.SetClproSettings(AliciAdiEdt.clprosettings);</div><div><br></div><div>&nbsp; AliciVknEdt = MyForm.AddNewProEdit(SatisScroll, 'AliciVknEdt', 'Müşteri VKN / TCKN');</div><div>&nbsp; AliciVknEdt.Align = alTop; AliciVknEdt.Height = 40; AliciVknEdt.Margins.Top = 5; AliciVknEdt.Margins.Left = 20; AliciVknEdt.Margins.Right = 20;</div><div>&nbsp; AliciVknEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; AliciVknEdt.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; AliciVknEdt.clprosettings.BorderWidth = 1;</div><div>&nbsp; AliciVknEdt.SetClproSettings(AliciVknEdt.clprosettings);</div><div><br></div><div>&nbsp; AliciVdEdt = MyForm.AddNewProEdit(SatisScroll, 'AliciVdEdt', 'Müşteri Vergi Dairesi');</div><div>&nbsp; AliciVdEdt.Align = alTop; AliciVdEdt.Height = 40; AliciVdEdt.Margins.Top = 5; AliciVdEdt.Margins.Left = 20; AliciVdEdt.Margins.Right = 20;</div><div>&nbsp; AliciVdEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; AliciVdEdt.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; AliciVdEdt.clprosettings.BorderWidth = 1;</div><div>&nbsp; AliciVdEdt.SetClproSettings(AliciVdEdt.clprosettings);</div><div><br></div><div>&nbsp; AliciAdresEdt = MyForm.AddNewProEdit(SatisScroll, 'AliciAdresEdt', 'Müşteri Adresi (İl/İlçe)');</div><div>&nbsp; AliciAdresEdt.Align = alTop; AliciAdresEdt.Height = 40; AliciAdresEdt.Margins.Top = 5; AliciAdresEdt.Margins.Left = 20; AliciAdresEdt.Margins.Right = 20;</div><div>&nbsp; AliciAdresEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; AliciAdresEdt.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; AliciAdresEdt.clprosettings.BorderWidth = 1;</div><div>&nbsp; AliciAdresEdt.SetClproSettings(AliciAdresEdt.clprosettings);</div><div><br></div><div>&nbsp; AliciTelEdt = MyForm.AddNewProEdit(SatisScroll, 'AliciTelEdt', 'Müşteri İletişim (Tel/Mail)');</div><div>&nbsp; AliciTelEdt.Align = alTop; AliciTelEdt.Height = 40; AliciTelEdt.Margins.Top = 5; AliciTelEdt.Margins.Left = 20; AliciTelEdt.Margins.Right = 20;</div><div>&nbsp; AliciTelEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; AliciTelEdt.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; AliciTelEdt.clprosettings.BorderWidth = 1;</div><div>&nbsp; AliciTelEdt.SetClproSettings(AliciTelEdt.clprosettings);</div><div><br></div><div>&nbsp; SatisAdetEdt = MyForm.AddNewProEdit(SatisScroll, 'SatisAdetEdt', 'Satılacak Adet Giriniz');</div><div>&nbsp; SatisAdetEdt.Align = alTop; SatisAdetEdt.Height = 40; SatisAdetEdt.Margins.Top = 15; SatisAdetEdt.Margins.Left = 20; SatisAdetEdt.Margins.Right = 20;</div><div>&nbsp; SatisAdetEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; SatisAdetEdt.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; SatisAdetEdt.clprosettings.BorderWidth = 1;</div><div>&nbsp; SatisAdetEdt.SetClproSettings(SatisAdetEdt.clprosettings);</div><div><br></div><div>&nbsp; LoginBgPnl = MyForm.AddNewProPanel(MyForm, 'LoginBgPnl');</div><div>&nbsp; LoginBgPnl.Align = alClient;</div><div>&nbsp; LoginBgPnl.clprosettings.BackGroundcolor = clalphacolor.clhextoColor('#FAF7F2');&nbsp;</div><div>&nbsp; LoginBgPnl.SetClproSettings(LoginBgPnl.clprosettings);</div><div><br></div><div>&nbsp; MaskPnl = MyForm.AddNewProPanel(LoginBgPnl, 'MaskPnl');</div><div>&nbsp; MaskPnl.Align = alClient;</div><div>&nbsp; MaskPnl.clprosettings.BackGroundcolor = clalphacolor.clhextoColor('#FAF7F2');&nbsp;</div><div>&nbsp; MaskPnl.Margins.Top = -60;&nbsp;</div><div>&nbsp; MaskPnl.SetClproSettings(MaskPnl.clprosettings);</div><div><br></div><div>&nbsp; MainPnl = MyForm.AddNewProPanel(MaskPnl, 'MainPnl');</div><div>&nbsp; MainPnl.Align = alLeft; MainPnl.Width = 450;&nbsp;</div><div>&nbsp; MainPnl.clprosettings.BackGroundcolor = clalphacolor.clhextoColor('#FFFFFF');&nbsp;</div><div>&nbsp; MainPnl.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');&nbsp;</div><div>&nbsp; MainPnl.clprosettings.BorderWidth = 1;</div><div>&nbsp; MainPnl.SetClproSettings(MainPnl.clprosettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; KullaniciAdiEdt = MyForm.AddNewProEdit(MainPnl, 'KullaniciAdiEdt', 'Kullanici Adi');</div><div>&nbsp; KullaniciAdiEdt.Align = alTop; KullaniciAdiEdt.Height = 50; KullaniciAdiEdt.margins.top = 100;&nbsp;</div><div>&nbsp; KullaniciAdiEdt.margins.left = 50; KullaniciAdiEdt.margins.right = 50;</div><div>&nbsp; KullaniciAdiEdt.clprosettings.BackGroundcolor = clalphacolor.clhextoColor('#FCFAFA');&nbsp;</div><div>&nbsp; KullaniciAdiEdt.clprosettings.FontColor = clalphacolor.clhextoColor('#000000');</div><div>&nbsp; KullaniciAdiEdt.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; KullaniciAdiEdt.clprosettings.BorderWidth = 1;</div><div>&nbsp; KullaniciAdiEdt.SetClproSettings(KullaniciAdiEdt.ClproSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; SifreEdit = MyForm.AddNewProEdit(MainPnl, 'SifreEdit', 'Sifre');</div><div>&nbsp; SifreEdit.Align = alTop; SifreEdit.Height = 50; SifreEdit.Password = True;&nbsp;</div><div>&nbsp; SifreEdit.margins.top = 20; SifreEdit.margins.left = 50; SifreEdit.margins.right = 50;</div><div>&nbsp; SifreEdit.clprosettings.BackGroundcolor = clalphacolor.clhextoColor('#FCFAFA');</div><div>&nbsp; SifreEdit.clprosettings.FontColor = clalphacolor.clhextoColor('#000000');</div><div>&nbsp; SifreEdit.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; SifreEdit.clprosettings.BorderWidth = 1;</div><div>&nbsp; SifreEdit.SetClproSettings(SifreEdit.ClproSettings);</div><div><br></div><div>&nbsp; BtnGoz = MyForm.AddNewProButton(SifreEdit, 'BtnGoz', 'GÖSTER');</div><div>&nbsp; BtnGoz.Align = alRight; BtnGoz.Width = 80;</div><div>&nbsp; BtnGoz.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; BtnGoz.clprosettings.BackGroundColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; BtnGoz.SetClproSettings(BtnGoz.ClproSettings);</div><div>&nbsp; MyForm.AddNewEvent(BtnGoz, tbeOnClick, 'GozTiklandi');&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; Giris = MyForm.AddNewProButton(MainPnl, 'Giris', 'OTURUM AÇ');</div><div>&nbsp; Giris.Align = alTop; Giris.Height = 50; Giris.margins.top = 30; Giris.margins.left = 50; Giris.margins.right = 50;</div><div>&nbsp; Giris.clprosettings.BackGroundcolor = clalphacolor.clhextoColor('#E4CDA7');</div><div>&nbsp; Giris.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; Giris.SetClproSettings(Giris.ClproSettings);</div><div>&nbsp; MyForm.AddNewEvent(Giris, tbeOnClick, 'GirisYapTiklandi');&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; Kayit = MyForm.AddNewProButton(MainPnl, 'Kayit', 'HESAP OLUŞTUR');</div><div>&nbsp; Kayit.Align = alTop; Kayit.Height = 50; Kayit.margins.top = 10; Kayit.margins.left = 50; Kayit.margins.right = 50;</div><div>&nbsp; Kayit.clprosettings.BackGroundcolor = clalphacolor.clhextoColor('#E4CDA7');</div><div>&nbsp; Kayit.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; Kayit.SetClproSettings(Kayit.ClproSettings);</div><div>&nbsp; MyForm.AddNewEvent(Kayit, tbeOnClick, 'KayitOlTiklandi');&nbsp;</div><div><br></div><div>&nbsp; SocialPnl = MyForm.AddNewProPanel(MainPnl, 'SocialPnl');</div><div>&nbsp; SocialPnl.Align = alTop; SocialPnl.Height = 45; SocialPnl.margins.top = 40;</div><div>&nbsp; SocialPnl.SetClproSettings(SocialPnl.ClproSettings);</div><div><br></div><div>&nbsp; BtnGoogle = MyForm.AddNewProButton(SocialPnl, 'BtnGoogle', 'Google');</div><div>&nbsp; BtnGoogle.Align = alLeft; BtnGoogle.Width = 165; BtnGoogle.margins.left = 50;</div><div>&nbsp; BtnGoogle.clprosettings.BackGroundcolor = clalphacolor.clhextoColor('#E4CDA7');&nbsp;</div><div>&nbsp; BtnGoogle.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; BtnGoogle.SetClproSettings(BtnGoogle.ClproSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; BtnFacebook = MyForm.AddNewProButton(SocialPnl, 'BtnFacebook', 'Facebook');</div><div>&nbsp; BtnFacebook.Align = alRight; BtnFacebook.Width = 165; BtnFacebook.margins.right = 50;</div><div>&nbsp; BtnFacebook.clprosettings.BackGroundcolor = clalphacolor.clhextoColor('#E4CDA7');</div><div>&nbsp; BtnFacebook.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; BtnFacebook.SetClproSettings(BtnFacebook.ClproSettings);</div><div><br></div><div>&nbsp; MyForm.Run;</div><div>}<br><br><br>kodu inceler misin?<br><br><br></div><br><br><br><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/v8c78df7c7c0f484497ecbca7046644da1771523124516" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/v8c78df7c7c0f484497ecbca7046644da1771523124516"</a> integrity="sha512-8DS7rgIrAmghBFwoOTujcf6D9rXvH8xm8JQ1Ja01h9QX8EzXldiszufYa4IFfKdLUKTTrnSFXLDkUEOTrZQ8Qg==" 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, 04 May 2026 18:03:28 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1465&amp;PID=3345#3345</guid>
  </item> 
  <item>
   <title><![CDATA[Local data base : a&#351;&#351;a&#287;&#305;da verdi&#287;im kod blo&#287;una...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1465&amp;PID=3335#3335</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=427">ERRBAAY</a><br /><strong>Konu:</strong> 1465<br /><strong>Gönderim Zamanı:</strong> 04&nbsp;Mayıs&nbsp;2026 Saat 14:57<br /><br />aşşağıda verdiğim kod bloğuna local data base eklemek istiyorum ancak nasıl yapacağımı anlayamadım<br><br><br><div>var</div><div>&nbsp; // Ana formumuz. Uygulamanın temeli.</div><div>&nbsp; MyForm : TclForm;</div><div>&nbsp;&nbsp;</div><div>&nbsp; // --- GİRİŞ EKRANI DEĞİŞKENLERİ ---</div><div>&nbsp; // Paneller: Arka planlar ve gruplamalar için.</div><div>&nbsp; LoginBgPnl, MaskPnl, MainPnl, SocialPnl : TClProPanel;</div><div>&nbsp; // Editler: Kullanıcının metin girdiği yerler.</div><div>&nbsp; KullaniciAdiEdt, SifreEdit : TClProEdit;</div><div>&nbsp; // Butonlar: Tıklanabilir eylem araçları.</div><div>&nbsp; Giris, Kayit, BtnGoogle, BtnFacebook, BtnGoz : TClProButton;</div><div>&nbsp; // Şifrenin görünürlük durumu (True/False).</div><div>&nbsp; SifreDurum : Boolean;</div><div><br></div><div>&nbsp; // --- STOK VE SATIŞ SİSTEMİ DEĞİŞKENLERİ ---</div><div>&nbsp; // Sayfalar ve üst kısımlar için paneller.</div><div>&nbsp; BgPnl, TopPnl, MenuPnl, AnaEkranPanel, StokPanel, SatisPanel, FislerPanel, PopupPanel, OverlayPnl : TClProPanel;</div><div>&nbsp;&nbsp;</div><div>&nbsp; // --- E-FATURA TASARIM DEĞİŞKENLERİ ---</div><div>&nbsp; // Fatura kağıdının bölümleri.</div><div>&nbsp; FisDetayPanel, FaturaTopPnl, KagitPnl, UstBilgiPnl, SaticiPnl, FaturaSagPnl, AliciPnl : TClProPanel;</div><div>&nbsp; TabloPnl, TabloBaslikPnl, TabloVeriPnl, ToplamPnl, ToplamIcerikPnl : TClProPanel;</div><div>&nbsp; // ScrollBox: Kaydırılabilir alanlar (Listeler sığmazsa diye).</div><div>&nbsp; FaturaScrl, ListScrl, FislerScrl : TclVertScrollBox;</div><div>&nbsp; // Fatura ekranı butonları.</div><div>&nbsp; DetayGeriBtn, EFaturaKesBtn : TClProButton;</div><div>&nbsp; // Fatura üzerindeki yazılar (Etiketler).</div><div>&nbsp; FirmaIsimLbl, FirmaDetayLbl, EFaturaLogoLbl, FaturaSenaryoLbl, FaturaTarihLbl : TclProLabel;</div><div>&nbsp; SayinLbl, FaturaAliciLbl, FaturaAliciDetayLbl : TclProLabel;</div><div>&nbsp; Col1, Col2, Col3, Col4, Col5 : TclProLabel; // Tablo başlıkları</div><div>&nbsp; Val1, Val2, Val3, Val4, Val5 : TclProLabel; // Tablo verileri</div><div>&nbsp; OzetAltToplamLbl, OzetKdvLbl, OzetGenelToplamLbl : TclProLabel; // Fatura alt toplamları</div><div><br></div><div>&nbsp; // --- SATIŞ YAPMA EKRANI (POPUP) DEĞİŞKENLERİ ---</div><div>&nbsp; SatisScroll : TclVertScrollBox; // Popup içi kaydırma.</div><div>&nbsp; SatBaslikLbl, MusBaslikLbl : TclProLabel; // Satıcı ve Müşteri başlıkları.</div><div>&nbsp; // Satıcı bilgi giriş alanları.</div><div>&nbsp; SaticiUnvanEdt, SaticiVknEdt, SaticiVdEdt, SaticiAdresEdt, SaticiTelEdt : TClProEdit;</div><div>&nbsp; // Müşteri bilgi giriş alanları.</div><div>&nbsp; AliciAdiEdt, AliciVknEdt, AliciVdEdt, AliciAdresEdt, AliciTelEdt : TClProEdit;</div><div>&nbsp; // Satış işlem girişleri.</div><div>&nbsp; UrunAdEdt, AdetEdt, FiyatEdt, SatisAdetEdt : TClProEdit;</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Menü butonları.</div><div>&nbsp; MenuBtn, AnaEkranBtn, StokModBtn, SatisModBtn, FislerBtn, KaydetBtn, SatisOnayBtn, KapatBtn : TClProButton;</div><div>&nbsp; // Genel bilgilendirme yazıları.</div><div>&nbsp; HeaderLbl, KasaLbl, ToplamStokLbl, AnaEkranLbl, AltBilgiLbl : TclProLabel;</div><div>&nbsp; // Sayısal değer tutucular (Matematiksel işlemler için).</div><div>&nbsp; UrunSayisi, GenelStok, SeciliUrunID, FisSayisi : Integer;</div><div>&nbsp; // Kasa tutarı (Kuruşlu olabileceği için Double).</div><div>&nbsp; ToplamKasa : Double;</div><div><br></div><div>// ==========================================</div><div>// --- GİRİŞ EKRANI FONKSİYONLARI ---</div><div>// ==========================================</div><div><br></div><div>// Şifre göster/gizle butonuna tıklanınca çalışır.</div><div>void GozTiklandi;</div><div>{</div><div>&nbsp; // Durumu tam tersine çevir (Açıksa kapat, kapalıysa aç).</div><div>&nbsp; SifreDurum = not SifreDurum;</div><div>&nbsp; // Edit nesnesinin şifre modunu ayarla.</div><div>&nbsp; SifreEdit.Password = not SifreDurum;</div><div>&nbsp; // Butonun üzerindeki yazıyı duruma göre değiştir.</div><div>&nbsp; if (SifreDurum) { BtnGoz.Caption = 'GIZLE'; } else { BtnGoz.Caption = 'GÖSTER'; }</div><div>}</div><div><br></div><div>// Kayıt ol butonuna tıklanınca çalışır.</div><div>void KayitOlTiklandi;</div><div>{</div><div>&nbsp; // Ekrana uyarı mesajı ver.</div><div>&nbsp; ShowMessage('Kayıt sistemi şu an pasif durumdadır. Lütfen mevcut bilgilerinizle giriş yapınız.');</div><div>}</div><div><br></div><div>// Giriş yap butonuna tıklanınca çalışır.</div><div>void GirisYapTiklandi;</div><div>{</div><div>&nbsp; // Girilen kullanıcı adı ve şifre doğru mu kontrol et. İki farklı hesap tanımlı.</div><div>&nbsp; if (((KullaniciAdiEdt.Text == 'SONGUZZ') &amp;&amp; (SifreEdit.Text == '42AHV16.')) ||&nbsp;</div><div>&nbsp; &nbsp; &nbsp; ((KullaniciAdiEdt.Text == 'Ali ERBAY') &amp;&amp; (SifreEdit.Text == '5834')))</div><div>&nbsp; {&nbsp;</div><div>&nbsp; &nbsp; // Bilgiler doğruysa mesaj ver.</div><div>&nbsp; &nbsp; ShowMessage('Sisteme başarıyla giriş yapıldı. Hoş geldiniz.');&nbsp;</div><div>&nbsp; &nbsp; // Giriş ekranı arayüzlerini gizle.</div><div>&nbsp; &nbsp; MaskPnl.Visible = False;</div><div>&nbsp; &nbsp; LoginBgPnl.Visible = False;</div><div>&nbsp; &nbsp; // Ana uygulama ekranını görünür yap.</div><div>&nbsp; &nbsp; BgPnl.Visible = True;&nbsp;</div><div>&nbsp; }&nbsp;</div><div>&nbsp; else&nbsp;</div><div>&nbsp; {&nbsp;</div><div>&nbsp; &nbsp; // Bilgiler yanlışsa hata mesajı ver.</div><div>&nbsp; &nbsp; ShowMessage('Hatalı kullanıcı adı veya şifre girdiniz.');&nbsp;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>// ==========================================</div><div>// --- STOK/SATIŞ/FİŞ SİSTEMİ FONKSİYONLARI ---</div><div>// ==========================================</div><div><br></div><div>// Menü panelini açıp kapatır.</div><div>void ToggleMenu; { MenuPnl.Visible = not MenuPnl.Visible; }</div><div>// Satış popup'ını kapatır.</div><div>void KapatSatisPanel; { OverlayPnl.Visible = False; }</div><div><br></div><div>// Satış yap butonuna tıklanınca popup ekranını açar.</div><div>void AcSatisPanel;</div><div>var TiklananLbl : TclProLabel;</div><div>{</div><div>&nbsp; // Hangi ürünün butonuna tıklandığını bul.</div><div>&nbsp; TiklananLbl = MyForm.clSender;</div><div>&nbsp; // Tıklanan ürünün ID'sini hafızaya al.</div><div>&nbsp; SeciliUrunID = TiklananLbl.clTagInt;</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Müşteri ve adet giriş alanlarını sıfırla (Eski veriler kalmasın).</div><div>&nbsp; SatisAdetEdt.Text = '';</div><div>&nbsp; AliciAdiEdt.Text = '';</div><div>&nbsp; AliciVknEdt.Text = '';</div><div>&nbsp; AliciVdEdt.Text = '';</div><div>&nbsp; AliciAdresEdt.Text = '';</div><div>&nbsp; AliciTelEdt.Text = '';</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Popup arka planını görünür yap.</div><div>&nbsp; OverlayPnl.Visible = True;</div><div>&nbsp; // Popup'ı en öne getir (Diğer bileşenlerin üstüne çıksın).</div><div>&nbsp; OverlayPnl.BringToFront;</div><div>}</div><div><br></div><div>// Fatura detay ekranından fiş listesine geri döner.</div><div>void FisDetayKapat;</div><div>{</div><div>&nbsp; FisDetayPanel.Visible = False; // Faturayı gizle.</div><div>&nbsp; FislerPanel.Visible = True;&nbsp; &nbsp; // Fiş listesini aç.</div><div>&nbsp; HeaderLbl.Text = '&nbsp; SATIŞ FİŞLERİ'; // Üst başlığı değiştir.</div><div>}</div><div><br></div><div>// Listedeki bir fişin "İNCELE" butonuna tıklanınca çalışır. E-Fatura kağıdını doldurur.</div><div>void FisInceleTiklandi;</div><div>var</div><div>&nbsp; SecilenBtn : TClProButton;</div><div>&nbsp; HedefFisID : Integer;</div><div>&nbsp; // Okunacak gizli etiketler için geçici değişkenler.</div><div>&nbsp; RU, RM, RF, RMu, RTa, RTu : TclProLabel;</div><div>&nbsp; RVkn, RVd, RAdr, RTel : TclProLabel;</div><div>&nbsp; RSU, RSD : TclProLabel;</div><div>&nbsp; SubTotal, KDV, GrandTotal : Double; // Hesaplamalar için.</div><div>{</div><div>&nbsp; // Hangi butona tıklandığını al.</div><div>&nbsp; SecilenBtn = MyForm.clSender;</div><div>&nbsp; // Fişin ID numarasını al.</div><div>&nbsp; HedefFisID = SecilenBtn.clTagInt;</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Satış anında oluşturup gizlediğimiz bilgileri ID ile bulup çekiyoruz.</div><div>&nbsp; RU = MyForm.clFindComponent('RawUrunLbl' + IntToStr(HedefFisID));</div><div>&nbsp; RM = MyForm.clFindComponent('RawMiktarLbl' + IntToStr(HedefFisID));</div><div>&nbsp; RF = MyForm.clFindComponent('RawFiyatLbl' + IntToStr(HedefFisID));</div><div>&nbsp; RMu = MyForm.clFindComponent('RawMusteriLbl' + IntToStr(HedefFisID));</div><div>&nbsp; RTa = MyForm.clFindComponent('RawTarihLbl' + IntToStr(HedefFisID));</div><div>&nbsp; RTu = MyForm.clFindComponent('RawTutarLbl' + IntToStr(HedefFisID));</div><div>&nbsp;&nbsp;</div><div>&nbsp; RVkn = MyForm.clFindComponent('RawMusVknLbl' + IntToStr(HedefFisID));</div><div>&nbsp; RVd = MyForm.clFindComponent('RawMusVdLbl' + IntToStr(HedefFisID));</div><div>&nbsp; RAdr = MyForm.clFindComponent('RawMusAdrLbl' + IntToStr(HedefFisID));</div><div>&nbsp; RTel = MyForm.clFindComponent('RawMusTelLbl' + IntToStr(HedefFisID));</div><div><br></div><div>&nbsp; RSU = MyForm.clFindComponent('RawSatUnvanLbl' + IntToStr(HedefFisID));</div><div>&nbsp; RSD = MyForm.clFindComponent('RawSatDetayLbl' + IntToStr(HedefFisID));</div><div><br></div><div>&nbsp; // --- FATURA KAĞIDINI DOLDURMA ---</div><div>&nbsp; // Bulunan verileri faturadaki ilgili etiketlere (Label) yazdır.</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Satıcı unvanı var mı? Varsa yaz, yoksa tire (-) koy.</div><div>&nbsp; if (RSU &lt;&gt; nil) { FirmaIsimLbl.Text = RSU.Text; } else { FirmaIsimLbl.Text = '-'; }</div><div>&nbsp; if (RSD &lt;&gt; nil) { FirmaDetayLbl.Text = RSD.Text; } else { FirmaDetayLbl.Text = '-'; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (RTa &lt;&gt; nil) { FaturaTarihLbl.Text = 'Tarih: ' + RTa.Text; }</div><div>&nbsp; if (RMu &lt;&gt; nil) { FaturaAliciLbl.Text = RMu.Text; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Müşteri detaylarını birleştirip tek bir satırda göster.</div><div>&nbsp; if (RVkn &lt;&gt; nil)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; FaturaAliciDetayLbl.Text = RAdr.Text + ' | Tel: ' + RTel.Text + ' | VD: ' + RVd.Text + ' VKN: ' + RVkn.Text;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Tablo verilerini doldur.</div><div>&nbsp; if (RU &lt;&gt; nil) { Val1.Text = ' ' + RU.Text; } // Ürün adı</div><div>&nbsp; if (RM &lt;&gt; nil) { Val2.Text = ' ' + RM.Text; } // Adet</div><div>&nbsp; if (RF &lt;&gt; nil) { Val3.Text = ' ' + RF.Text; } // Birim Fiyat</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Tutar hesaplamaları ve özet ekranı doldurma.</div><div>&nbsp; if (RTu &lt;&gt; nil)&nbsp;</div><div>&nbsp; {&nbsp;</div><div>&nbsp; &nbsp; Val5.Text = ' ' + RTu.Text;&nbsp;</div><div>&nbsp; &nbsp; SubTotal = StrToFloat(RTu.Text); // Ham tutarı sayıya çevir.</div><div>&nbsp; &nbsp; KDV = SubTotal * 0.20; // %20 KDV hesapla.</div><div>&nbsp; &nbsp; GrandTotal = SubTotal + KDV; // Genel toplamı bul.</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; // Alt kısımdaki özet alanına yazdır.</div><div>&nbsp; &nbsp; OzetAltToplamLbl.Text = 'Mal Hizmet Tutarı: ' + FloatToStr(SubTotal) + ' TL';</div><div>&nbsp; &nbsp; OzetKdvLbl.Text = 'Hesaplanan KDV (%20): ' + FloatToStr(KDV) + ' TL';</div><div>&nbsp; &nbsp; OzetGenelToplamLbl.Text = 'Ödenecek Tutar: ' + FloatToStr(GrandTotal) + ' TL';</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Panelleri değiştir (Listeyi kapat, detayı aç).</div><div>&nbsp; FislerPanel.Visible = False;</div><div>&nbsp; FisDetayPanel.Visible = True;</div><div>&nbsp; HeaderLbl.Text = '&nbsp; FİŞ DETAYI / E-FATURA';</div><div>}</div><div><br></div><div>// E-Fatura Kes butonuna basılınca çalışır.</div><div>void EFaturaOlusturTiklandi;</div><div>{</div><div>&nbsp; ShowMessage('Fatura resmi olarak imzalanmaya hazır! Bir sonraki aşamada entegratöre iletilecek.');</div><div>}</div><div><br></div><div>// Müşteriye satışı onaylama işlemi.</div><div>void SatisYap;</div><div>var</div><div>&nbsp; HedefAltLbl, HedefBaslikLbl, FisBaslikLbl : TclProLabel;</div><div>&nbsp; RawUrunLbl, RawMiktarLbl, RawFiyatLbl, RawMusteriLbl, RawTarihLbl, RawTutarLbl : TclProLabel;</div><div>&nbsp; RawMusVknLbl, RawMusVdLbl, RawMusAdrLbl, RawMusTelLbl : TclProLabel;</div><div>&nbsp; RawSatUnvanLbl, RawSatDetayLbl : TclProLabel;</div><div>&nbsp; SatilacakAdet, MevcutStok : Integer;</div><div>&nbsp; BirimFiyat, SatisTutari : Double;</div><div>&nbsp; KartPanel, FisCardPnl : TClProPanel;</div><div>&nbsp; InceleBtn : TClProButton;</div><div>&nbsp; UrunAdi, SatisZamani : String;</div><div>{</div><div>&nbsp; // Zorunlu alanlar boş mu diye kontrol et.</div><div>&nbsp; if ((SatisAdetEdt.Text == '') || (AliciAdiEdt.Text == '') || (SaticiUnvanEdt.Text == ''))&nbsp;</div><div>&nbsp; {&nbsp;</div><div>&nbsp; &nbsp; ShowMessage('Lütfen Satıcı, Müşteri ve Adet bilgilerini eksiksiz giriniz.');&nbsp;</div><div>&nbsp; &nbsp; exit; // Boşsa işlemi burada kes.</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Girilen adeti sayıya çevir.</div><div>&nbsp; SatilacakAdet = StrToInt(SatisAdetEdt.Text);</div><div>&nbsp; // Ürünün mevcut stok etiketini bul.</div><div>&nbsp; HedefAltLbl = MyForm.clFindComponent('AltLbl' + IntToStr(SeciliUrunID));</div><div>&nbsp; // Ürünün adının yazdığı etiketi bul.</div><div>&nbsp; HedefBaslikLbl = MyForm.clFindComponent('BaslikLbl' + IntToStr(SeciliUrunID));&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (HedefAltLbl &lt;&gt; nil)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; // Etiketin arkasına gizlenmiş stok bilgisini al.</div><div>&nbsp; &nbsp; MevcutStok = HedefAltLbl.clTagInt;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; // İstenen adet stoktan küçük veya eşitse satış yap.</div><div>&nbsp; &nbsp; if (SatilacakAdet &lt;= MevcutStok)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; // Yeni stoku hesapla.</div><div>&nbsp; &nbsp; &nbsp; MevcutStok = MevcutStok - SatilacakAdet;</div><div>&nbsp; &nbsp; &nbsp; HedefAltLbl.clTagInt = MevcutStok; // Yeni stoku kaydet.</div><div>&nbsp; &nbsp; &nbsp; HedefAltLbl.Text = 'Stok: ' + IntToStr(MevcutStok); // Ekranda güncelle.</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // Fiyat bilgisini çek.</div><div>&nbsp; &nbsp; &nbsp; BirimFiyat = StrToFloat(HedefAltLbl.clTagStr);</div><div>&nbsp; &nbsp; &nbsp; // Toplam satış tutarını hesapla (Adet * Fiyat).</div><div>&nbsp; &nbsp; &nbsp; SatisTutari = BirimFiyat * SatilacakAdet;</div><div>&nbsp; &nbsp; &nbsp; // Kasaya parayı ekle.</div><div>&nbsp; &nbsp; &nbsp; ToplamKasa = ToplamKasa + SatisTutari;</div><div>&nbsp; &nbsp; &nbsp; // Genel stoktan düş.</div><div>&nbsp; &nbsp; &nbsp; GenelStok = GenelStok - SatilacakAdet;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // Kasa ve genel stok etiketlerini ekranda güncelle.</div><div>&nbsp; &nbsp; &nbsp; KasaLbl.Text = 'Kasa: ' + FloatToStr(ToplamKasa) + ' TL';</div><div>&nbsp; &nbsp; &nbsp; ToplamStokLbl.Text = 'Stok: ' + IntToStr(GenelStok);</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // Satılan ürünün adı ve işlem saatini al.</div><div>&nbsp; &nbsp; &nbsp; UrunAdi = HedefBaslikLbl.Text;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; SatisZamani = FormatDateTime('dd.mm.yyyy hh:nn:ss', Now);&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // Toplam fiş sayısını bir artır.</div><div>&nbsp; &nbsp; &nbsp; FisSayisi = FisSayisi + 1;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // YENİ FİŞ KARTI OLUŞTURMA İŞLEMİ</div><div>&nbsp; &nbsp; &nbsp; // Fiş listesine yeni bir panel ekliyoruz.</div><div>&nbsp; &nbsp; &nbsp; FisCardPnl = MyForm.AddNewProPanel(FislerScrl, 'FisCardPnl' + IntToStr(FisSayisi));</div><div>&nbsp; &nbsp; &nbsp; FisCardPnl.Align = alTop; FisCardPnl.Height = 50; FisCardPnl.Margins.Top = 10;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; FisCardPnl.Margins.Left = 10; FisCardPnl.Margins.Right = 10;</div><div>&nbsp; &nbsp; &nbsp; // Kart rengi beyaz olsun.</div><div>&nbsp; &nbsp; &nbsp; FisCardPnl.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FFFFFF');&nbsp;</div><div>&nbsp; &nbsp; &nbsp; FisCardPnl.clprosettings.RoundHeight = 10; // Köşeleri yuvarlat.</div><div>&nbsp; &nbsp; &nbsp; FisCardPnl.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7'); // Çerçeve rengi.</div><div>&nbsp; &nbsp; &nbsp; FisCardPnl.clprosettings.BorderWidth = 2; // Çerçeve kalınlığı.</div><div>&nbsp; &nbsp; &nbsp; FisCardPnl.SetClproSettings(FisCardPnl.clprosettings); // Ayarları UYGULA!</div><div><br></div><div>&nbsp; &nbsp; &nbsp; // Kartın içine İNCELE butonu ekle.</div><div>&nbsp; &nbsp; &nbsp; InceleBtn = MyForm.AddNewProButton(FisCardPnl, 'InceleBtn' + IntToStr(FisSayisi), 'İNCELE');</div><div>&nbsp; &nbsp; &nbsp; InceleBtn.Align = alRight; InceleBtn.Width = 80; InceleBtn.Margins.Top = 5; InceleBtn.Margins.Bottom = 5; InceleBtn.Margins.Right = 10;</div><div>&nbsp; &nbsp; &nbsp; InceleBtn.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#E4CDA7');&nbsp;</div><div>&nbsp; &nbsp; &nbsp; InceleBtn.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; &nbsp; &nbsp; InceleBtn.clprosettings.RoundHeight = 5;</div><div>&nbsp; &nbsp; &nbsp; InceleBtn.SetClproSettings(InceleBtn.clprosettings);</div><div>&nbsp; &nbsp; &nbsp; InceleBtn.clTagInt = FisSayisi; // Butona fiş ID'sini ver.</div><div>&nbsp; &nbsp; &nbsp; MyForm.AddNewEvent(InceleBtn, tbeOnClick, 'FisInceleTiklandi'); // Tıklama olayını bağla.</div><div><br></div><div>&nbsp; &nbsp; &nbsp; // Fiş başlığı (Müşteri - Ürün)</div><div>&nbsp; &nbsp; &nbsp; FisBaslikLbl = MyForm.AddNewProLabel(FisCardPnl, 'FisBaslikLbl' + IntToStr(FisSayisi), AliciAdiEdt.Text + ' - ' + UrunAdi);</div><div>&nbsp; &nbsp; &nbsp; FisBaslikLbl.Align = alClient; FisBaslikLbl.Margins.Left = 10; FisBaslikLbl.Margins.Top = 15;</div><div>&nbsp; &nbsp; &nbsp; FisBaslikLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');&nbsp;</div><div>&nbsp; &nbsp; &nbsp; FisBaslikLbl.SetClproSettings(FisBaslikLbl.clprosettings);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; // --- E-FATURA İÇİN GİZLİ VERİLER ---</div><div>&nbsp; &nbsp; &nbsp; // Faturada göstermek için bu bilgileri oluşturup 'Visible = False' ile ekranda gizliyoruz.</div><div>&nbsp; &nbsp; &nbsp; RawUrunLbl = MyForm.AddNewProLabel(FisCardPnl, 'RawUrunLbl' + IntToStr(FisSayisi), UrunAdi); RawUrunLbl.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; RawMiktarLbl = MyForm.AddNewProLabel(FisCardPnl, 'RawMiktarLbl' + IntToStr(FisSayisi), IntToStr(SatilacakAdet)); RawMiktarLbl.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; RawFiyatLbl = MyForm.AddNewProLabel(FisCardPnl, 'RawFiyatLbl' + IntToStr(FisSayisi), FloatToStr(BirimFiyat)); RawFiyatLbl.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; RawMusteriLbl = MyForm.AddNewProLabel(FisCardPnl, 'RawMusteriLbl' + IntToStr(FisSayisi), AliciAdiEdt.Text); RawMusteriLbl.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; RawTarihLbl = MyForm.AddNewProLabel(FisCardPnl, 'RawTarihLbl' + IntToStr(FisSayisi), SatisZamani); RawTarihLbl.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; RawTutarLbl = MyForm.AddNewProLabel(FisCardPnl, 'RawTutarLbl' + IntToStr(FisSayisi), FloatToStr(SatisTutari)); RawTutarLbl.Visible = False;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; RawMusVknLbl = MyForm.AddNewProLabel(FisCardPnl, 'RawMusVknLbl' + IntToStr(FisSayisi), AliciVknEdt.Text); RawMusVknLbl.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; RawMusVdLbl = MyForm.AddNewProLabel(FisCardPnl, 'RawMusVdLbl' + IntToStr(FisSayisi), AliciVdEdt.Text); RawMusVdLbl.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; RawMusAdrLbl = MyForm.AddNewProLabel(FisCardPnl, 'RawMusAdrLbl' + IntToStr(FisSayisi), AliciAdresEdt.Text); RawMusAdrLbl.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; RawMusTelLbl = MyForm.AddNewProLabel(FisCardPnl, 'RawMusTelLbl' + IntToStr(FisSayisi), AliciTelEdt.Text); RawMusTelLbl.Visible = False;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; RawSatUnvanLbl = MyForm.AddNewProLabel(FisCardPnl, 'RawSatUnvanLbl' + IntToStr(FisSayisi), SaticiUnvanEdt.Text); RawSatUnvanLbl.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; RawSatDetayLbl = MyForm.AddNewProLabel(FisCardPnl, 'RawSatDetayLbl' + IntToStr(FisSayisi), SaticiAdresEdt.Text + ' | Tel: ' + SaticiTelEdt.Text + ' | VD: ' + SaticiVdEdt.Text + ' VKN: ' + SaticiVknEdt.Text); RawSatDetayLbl.Visible = False;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; // Satış bitti, ekranı kapat.</div><div>&nbsp; &nbsp; &nbsp; KapatSatisPanel;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // Eğer stok kalmadıysa o ürünü ekrandan tamamen gizle.</div><div>&nbsp; &nbsp; &nbsp; if (MevcutStok == 0)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; KartPanel = MyForm.clFindComponent('CardPnl' + IntToStr(SeciliUrunID));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (KartPanel &lt;&gt; nil) { KartPanel.Visible = False; }</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; } else { ShowMessage('Yetersiz stok miktarı!'); } // Stok yetmezse uyar.</div><div>&nbsp; }</div><div>}</div><div><br></div><div>// Menüden ekran değiştirme fonksiyonları. İlgili paneli açar, diğerlerini gizler. Başlığı günceller.</div><div>void ShowAnaEkranMod; { AnaEkranPanel.Visible = True; StokPanel.Visible = False; SatisPanel.Visible = False; FislerPanel.Visible = False; FisDetayPanel.Visible = False; HeaderLbl.Text = '&nbsp; ANA EKRAN'; MenuPnl.Visible = False; }</div><div>void ShowStokMod; { AnaEkranPanel.Visible = False; StokPanel.Visible = True; SatisPanel.Visible = False; FislerPanel.Visible = False; FisDetayPanel.Visible = False; HeaderLbl.Text = '&nbsp; STOK YÖNETİMİ'; MenuPnl.Visible = False; }</div><div>void ShowSatisMod; { AnaEkranPanel.Visible = False; StokPanel.Visible = False; SatisPanel.Visible = True; FislerPanel.Visible = False; FisDetayPanel.Visible = False; HeaderLbl.Text = '&nbsp; ÜRÜN LİSTESİ'; MenuPnl.Visible = False; }</div><div>void ShowFislerMod; { AnaEkranPanel.Visible = False; StokPanel.Visible = False; SatisPanel.Visible = False; FislerPanel.Visible = True; FisDetayPanel.Visible = False; HeaderLbl.Text = '&nbsp; SATIŞ FİŞLERİ'; MenuPnl.Visible = False; }</div><div><br></div><div>// Yeni ürün ekleme / Stok artırma işlemi</div><div>void UrunEkle;</div><div>var</div><div>&nbsp; CardPnl : TClProPanel;</div><div>&nbsp; BaslikLbl, AltLbl, FiyatLbl, MevcutBaslik, SatisYapLbl : TclProLabel;</div><div>&nbsp; i, TargetID : Integer;</div><div>&nbsp; Bulundu : Boolean;</div><div>{</div><div>&nbsp; // İsim veya adet boşsa işlem yapma.</div><div>&nbsp; if ((UrunAdEdt.Text == '') || (AdetEdt.Text == '')) { exit; }</div><div>&nbsp; Bulundu = False; // Başlangıçta ürün bulunmadı kabul ediyoruz.</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Listedeki ürünleri tek tek kontrol et.</div><div>&nbsp; for (i = 1 to UrunSayisi)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; MevcutBaslik = MyForm.clFindComponent('BaslikLbl' + IntToStr(i));</div><div>&nbsp; &nbsp; if (MevcutBaslik &lt;&gt; nil)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; // Aynı isimde ürün var mı? (Büyük küçük harf duyarlılığını kaldırmak için UpperCase kullandık)</div><div>&nbsp; &nbsp; &nbsp; if (UpperCase(MevcutBaslik.Text) == UpperCase(UrunAdEdt.Text)) { Bulundu = True; TargetID = i; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Eğer ürün zaten varsa, sadece stok adetini artır.</div><div>&nbsp; if (Bulundu == True)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; AltLbl = MyForm.clFindComponent('AltLbl' + IntToStr(TargetID));</div><div>&nbsp; &nbsp; if (AltLbl &lt;&gt; nil)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; // Mevcut stoka yeni adeti ekle.</div><div>&nbsp; &nbsp; &nbsp; AltLbl.clTagInt = AltLbl.clTagInt + StrToInt(AdetEdt.Text);</div><div>&nbsp; &nbsp; &nbsp; AltLbl.Text = 'Stok: ' + IntToStr(AltLbl.clTagInt);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp; else&nbsp;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; // Ürün listede yoksa, tamamen YENİ bir ürün kartı oluştur.</div><div>&nbsp; &nbsp; UrunSayisi = UrunSayisi + 1;</div><div>&nbsp; &nbsp; CardPnl = MyForm.AddNewProPanel(ListScrl, 'CardPnl' + IntToStr(UrunSayisi));</div><div>&nbsp; &nbsp; CardPnl.Align = alTop; CardPnl.Height = 100; CardPnl.Margins.Top = 10;</div><div>&nbsp; &nbsp; CardPnl.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FFFFFF');&nbsp;</div><div>&nbsp; &nbsp; CardPnl.clprosettings.RoundHeight = 10;</div><div>&nbsp; &nbsp; CardPnl.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; &nbsp; CardPnl.clprosettings.BorderWidth = 2;</div><div>&nbsp; &nbsp; CardPnl.SetClproSettings(CardPnl.clprosettings); // Tasarımı kaydet.</div><div><br></div><div>&nbsp; &nbsp; // Satış Yap Butonu (ProLabel ile buton görünümü verdik)</div><div>&nbsp; &nbsp; SatisYapLbl = MyForm.AddNewProLabel(CardPnl, 'SatisYapLbl' + IntToStr(UrunSayisi), 'SATIŞ YAP');</div><div>&nbsp; &nbsp; SatisYapLbl.Align = alRight; SatisYapLbl.Width = 80;</div><div>&nbsp; &nbsp; SatisYapLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');&nbsp;</div><div>&nbsp; &nbsp; SatisYapLbl.SetClproSettings(SatisYapLbl.clprosettings);</div><div>&nbsp; &nbsp; SatisYapLbl.clTagInt = UrunSayisi; // Hangi ürüne ait olduğunu Tag'a kaydet.</div><div>&nbsp; &nbsp; MyForm.AddNewEvent(SatisYapLbl, tbeOnClick, 'AcSatisPanel'); // Tıklanınca popup açılsın.</div><div><br></div><div>&nbsp; &nbsp; // Ürün Adı Etiketi</div><div>&nbsp; &nbsp; BaslikLbl = MyForm.AddNewProLabel(CardPnl, 'BaslikLbl' + IntToStr(UrunSayisi), UrunAdEdt.Text);</div><div>&nbsp; &nbsp; BaslikLbl.Align = alTop; BaslikLbl.Height = 30; BaslikLbl.Margins.Left = 15;</div><div>&nbsp; &nbsp; BaslikLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; &nbsp; BaslikLbl.SetClproSettings(BaslikLbl.clprosettings);</div><div><br></div><div>&nbsp; &nbsp; // Stok Durumu Etiketi</div><div>&nbsp; &nbsp; AltLbl = MyForm.AddNewProLabel(CardPnl, 'AltLbl' + IntToStr(UrunSayisi), 'Stok: ' + AdetEdt.Text);</div><div>&nbsp; &nbsp; AltLbl.Align = alTop; AltLbl.Height = 20; AltLbl.Margins.Left = 15;</div><div>&nbsp; &nbsp; AltLbl.clTagInt = StrToInt(AdetEdt.Text); // Arka planda stoku tutar.</div><div>&nbsp; &nbsp; AltLbl.clTagStr = FiyatEdt.Text; // Arka planda fiyatı tutar.</div><div>&nbsp; &nbsp; AltLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#5A4A3A');</div><div>&nbsp; &nbsp; AltLbl.SetClproSettings(AltLbl.clprosettings);</div><div><br></div><div>&nbsp; &nbsp; // Fiyat Etiketi</div><div>&nbsp; &nbsp; FiyatLbl = MyForm.AddNewProLabel(CardPnl, 'FiyatLbl' + IntToStr(UrunSayisi), FiyatEdt.Text + ' TL');</div><div>&nbsp; &nbsp; FiyatLbl.Align = alTop; FiyatLbl.Height = 20; FiyatLbl.Margins.Left = 15;</div><div>&nbsp; &nbsp; FiyatLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');&nbsp;</div><div>&nbsp; &nbsp; FiyatLbl.SetClproSettings(FiyatLbl.clprosettings);</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Genel stok sayısını güncelle.</div><div>&nbsp; GenelStok = GenelStok + StrToInt(AdetEdt.Text);</div><div>&nbsp; ToplamStokLbl.Text = 'Stok: ' + IntToStr(GenelStok);</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Giriş kutularını temizle (Bir sonraki ürün için hazırlık).</div><div>&nbsp; UrunAdEdt.Text = ''; AdetEdt.Text = ''; FiyatEdt.Text = '';</div><div>}</div><div><br></div><div>// ==========================================</div><div>// --- TASARIM VE İLK KURULUM ---</div><div>// ==========================================</div><div>{</div><div>&nbsp; // Ana formu hafızada oluştur (ZORUNLU).</div><div>&nbsp; MyForm = TclForm.Create(self);</div><div><br></div><div>&nbsp; // Başlangıç değerlerini ata.</div><div>&nbsp; SifreDurum = False;</div><div>&nbsp; UrunSayisi = 0; ToplamKasa = 0; GenelStok = 0; FisSayisi = 0;</div><div><br></div><div>&nbsp; // --- ANA SİSTEM ARAYÜZÜ ---</div><div>&nbsp; // Tüm ekranları kaplayan ana zemin.</div><div>&nbsp; BgPnl = MyForm.AddNewProPanel(MyForm, 'BgPnl');</div><div>&nbsp; BgPnl.Align = alClient; // Ekrana yay.</div><div>&nbsp; BgPnl.Visible = False;&nbsp; // Başta gizli (Önce login ekranı çıkacak).</div><div>&nbsp; BgPnl.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FAF7F2');&nbsp;</div><div>&nbsp; BgPnl.SetClproSettings(BgPnl.clprosettings); // Hex renk için SetClProSettings şart!</div><div><br></div><div>&nbsp; // Üst menü barı (Header).</div><div>&nbsp; TopPnl = MyForm.AddNewProPanel(BgPnl, 'TopPnl');</div><div>&nbsp; TopPnl.Align = alTop; TopPnl.Height = 60; // Yukarıya daya.</div><div>&nbsp; TopPnl.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#D5B990');&nbsp;</div><div>&nbsp; TopPnl.SetClproSettings(TopPnl.clprosettings);</div><div><br></div><div>&nbsp; // Üst bardaki Başlık Yazısı.</div><div>&nbsp; HeaderLbl = MyForm.AddNewProLabel(TopPnl, 'HeaderLbl', '&nbsp; ANA EKRAN');</div><div>&nbsp; HeaderLbl.Align = alLeft; HeaderLbl.Width = 200;</div><div>&nbsp; HeaderLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; HeaderLbl.SetClproSettings(HeaderLbl.clprosettings);</div><div><br></div><div>&nbsp; // Menüyü açıp kapamaya yarayan buton.</div><div>&nbsp; MenuBtn = MyForm.AddNewProButton(TopPnl, 'MenuBtn', '&#8801; MENÜ');</div><div>&nbsp; MenuBtn.Align = alRight; MenuBtn.Width = 90;</div><div>&nbsp; MenuBtn.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#E4CDA7');&nbsp;</div><div>&nbsp; MenuBtn.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; MenuBtn.clprosettings.BorderColor = clAlphaColor.clHexToColor('#D5B990');</div><div>&nbsp; MenuBtn.clprosettings.BorderWidth = 1;</div><div>&nbsp; MenuBtn.clprosettings.RoundHeight = 5;</div><div>&nbsp; MenuBtn.SetClproSettings(MenuBtn.clprosettings);</div><div>&nbsp; MyForm.AddNewEvent(MenuBtn, tbeOnClick, 'ToggleMenu'); // Tıklama eylemini bağla.</div><div><br></div><div>&nbsp; // --- SAĞ YAN MENÜ TASARIMI ---</div><div>&nbsp; MenuPnl = MyForm.AddNewProPanel(BgPnl, 'MenuPnl');</div><div>&nbsp; MenuPnl.Align = alRight; MenuPnl.Width = 180; // Sağa daya.</div><div>&nbsp; MenuPnl.Visible = False; // Başlangıçta kapalı.</div><div>&nbsp; MenuPnl.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FAF7F2');&nbsp;</div><div>&nbsp; MenuPnl.clprosettings.BorderColor = clAlphaColor.clHexToColor('#D5B990');</div><div>&nbsp; MenuPnl.clprosettings.BorderWidth = 1;</div><div>&nbsp; MenuPnl.SetClproSettings(MenuPnl.clprosettings);</div><div><br></div><div>&nbsp; // Menüdeki Kasa Bilgisi</div><div>&nbsp; KasaLbl = MyForm.AddNewProLabel(MenuPnl, 'KasaLbl', 'Kasa: 0 TL');</div><div>&nbsp; KasaLbl.Align = alTop; KasaLbl.Height = 50; KasaLbl.Margins.Left = 15; KasaLbl.Margins.Top = 10;</div><div>&nbsp; KasaLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');&nbsp;</div><div>&nbsp; KasaLbl.SetClproSettings(KasaLbl.clprosettings);</div><div><br></div><div>&nbsp; // Menüdeki Stok Bilgisi</div><div>&nbsp; ToplamStokLbl = MyForm.AddNewProLabel(MenuPnl, 'ToplamStokLbl', 'Genel Stok: 0');</div><div>&nbsp; ToplamStokLbl.Align = alTop; ToplamStokLbl.Height = 50; ToplamStokLbl.Margins.Left = 15;</div><div>&nbsp; ToplamStokLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');&nbsp;</div><div>&nbsp; ToplamStokLbl.SetClproSettings(ToplamStokLbl.clprosettings);</div><div><br></div><div>&nbsp; // Menü Seçeneği: ANA EKRAN</div><div>&nbsp; AnaEkranBtn = MyForm.AddNewProButton(MenuPnl, 'AnaEkranBtn', 'ANA EKRAN');</div><div>&nbsp; AnaEkranBtn.Align = alTop; AnaEkranBtn.Height = 45; AnaEkranBtn.Margins.Left = 10; AnaEkranBtn.Margins.Right = 10; AnaEkranBtn.Margins.Top = 10;</div><div>&nbsp; AnaEkranBtn.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#E4CDA7');&nbsp;</div><div>&nbsp; AnaEkranBtn.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; AnaEkranBtn.clprosettings.BorderColor = clAlphaColor.clHexToColor('#D5B990');</div><div>&nbsp; AnaEkranBtn.clprosettings.BorderWidth = 1;</div><div>&nbsp; AnaEkranBtn.SetClproSettings(AnaEkranBtn.clprosettings);</div><div>&nbsp; MyForm.AddNewEvent(AnaEkranBtn, tbeOnClick, 'ShowAnaEkranMod');</div><div><br></div><div>&nbsp; // Menü Seçeneği: STOK EKLE</div><div>&nbsp; StokModBtn = MyForm.AddNewProButton(MenuPnl, 'StokModBtn', 'STOK EKLE');</div><div>&nbsp; StokModBtn.Align = alTop; StokModBtn.Height = 45; StokModBtn.Margins.Left = 10; StokModBtn.Margins.Right = 10; StokModBtn.Margins.Top = 10;</div><div>&nbsp; StokModBtn.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#E4CDA7');&nbsp;</div><div>&nbsp; StokModBtn.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; StokModBtn.clprosettings.BorderColor = clAlphaColor.clHexToColor('#D5B990');</div><div>&nbsp; StokModBtn.clprosettings.BorderWidth = 1;</div><div>&nbsp; StokModBtn.SetClproSettings(StokModBtn.clprosettings);</div><div>&nbsp; MyForm.AddNewEvent(StokModBtn, tbeOnClick, 'ShowStokMod');</div><div><br></div><div>&nbsp; // Menü Seçeneği: ÜRÜNLER (Satış Sayfası)</div><div>&nbsp; SatisModBtn = MyForm.AddNewProButton(MenuPnl, 'SatisModBtn', 'ÜRÜNLER');</div><div>&nbsp; SatisModBtn.Align = alTop; SatisModBtn.Height = 45; SatisModBtn.Margins.Left = 10; SatisModBtn.Margins.Right = 10; SatisModBtn.Margins.Top = 10;</div><div>&nbsp; SatisModBtn.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#E4CDA7');&nbsp;</div><div>&nbsp; SatisModBtn.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; SatisModBtn.clprosettings.BorderColor = clAlphaColor.clHexToColor('#D5B990');</div><div>&nbsp; SatisModBtn.clprosettings.BorderWidth = 1;</div><div>&nbsp; SatisModBtn.SetClproSettings(SatisModBtn.clprosettings);</div><div>&nbsp; MyForm.AddNewEvent(SatisModBtn, tbeOnClick, 'ShowSatisMod');</div><div><br></div><div>&nbsp; // Menü Seçeneği: FİŞLER (Geçmiş Satışlar)</div><div>&nbsp; FislerBtn = MyForm.AddNewProButton(MenuPnl, 'FislerBtn', 'FİŞLER');</div><div>&nbsp; FislerBtn.Align = alTop; FislerBtn.Height = 45; FislerBtn.Margins.Left = 10; FislerBtn.Margins.Right = 10; FislerBtn.Margins.Top = 10;</div><div>&nbsp; FislerBtn.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#E4CDA7');&nbsp;</div><div>&nbsp; FislerBtn.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; FislerBtn.clprosettings.BorderColor = clAlphaColor.clHexToColor('#D5B990');</div><div>&nbsp; FislerBtn.clprosettings.BorderWidth = 1;</div><div>&nbsp; FislerBtn.SetClproSettings(FislerBtn.clprosettings);</div><div>&nbsp; MyForm.AddNewEvent(FislerBtn, tbeOnClick, 'ShowFislerMod');</div><div><br></div><div><br></div><div>&nbsp; // ==========================================</div><div>&nbsp; // --- 1. ANA EKRAN PANELİ ---</div><div>&nbsp; // ==========================================</div><div>&nbsp; // Karşılama ekranı paneli.</div><div>&nbsp; AnaEkranPanel = MyForm.AddNewProPanel(BgPnl, 'AnaEkranPanel');</div><div>&nbsp; AnaEkranPanel.Align = alClient;</div><div>&nbsp; AnaEkranPanel.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FFFFFF');</div><div>&nbsp; AnaEkranPanel.SetClproSettings(AnaEkranPanel.clprosettings);</div><div><br></div><div>&nbsp; AnaEkranLbl = MyForm.AddNewProLabel(AnaEkranPanel, 'AnaEkranLbl', 'ÖZERBAYLAR SİSTEMİNE HOŞ GELDİNİZ');</div><div>&nbsp; AnaEkranLbl.Align = alTop; AnaEkranLbl.Height = 40; AnaEkranLbl.Margins.Top = 40;</div><div>&nbsp; AnaEkranLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; AnaEkranLbl.SetClproSettings(AnaEkranLbl.clprosettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; AltBilgiLbl = MyForm.AddNewProLabel(AnaEkranPanel, 'AltBilgiLbl', 'İşlem yapmak için sağ üstteki menüyü kullanın.');</div><div>&nbsp; AltBilgiLbl.Align = alTop; AltBilgiLbl.Height = 30; AltBilgiLbl.Margins.Top = 20;</div><div>&nbsp; AltBilgiLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#5A4A3A');</div><div>&nbsp; AltBilgiLbl.SetClproSettings(AltBilgiLbl.clprosettings);</div><div><br></div><div>&nbsp; // --- 2. STOK / ÜRÜN / SATIŞ EKRANLARI ---</div><div>&nbsp; // Stok ekleme formu paneli.</div><div>&nbsp; StokPanel = MyForm.AddNewProPanel(BgPnl, 'StokPanel');</div><div>&nbsp; StokPanel.Align = alTop; StokPanel.Height = 250; StokPanel.Visible = False; // Başta gizli.</div><div>&nbsp; StokPanel.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FFFFFF');</div><div>&nbsp; StokPanel.SetClproSettings(StokPanel.clprosettings);</div><div><br></div><div>&nbsp; UrunAdEdt = MyForm.AddNewProEdit(StokPanel, 'UrunAdEdt', 'Ürün Adı');</div><div>&nbsp; UrunAdEdt.Align = alTop; UrunAdEdt.Height = 40; UrunAdEdt.Margins.Top = 10;</div><div>&nbsp; UrunAdEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');&nbsp;</div><div>&nbsp; UrunAdEdt.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; UrunAdEdt.SetClproSettings(UrunAdEdt.clprosettings);</div><div><br></div><div>&nbsp; AdetEdt = MyForm.AddNewProEdit(StokPanel, 'AdetEdt', 'Adet');</div><div>&nbsp; AdetEdt.Align = alTop; AdetEdt.Height = 40; AdetEdt.Margins.Top = 5;</div><div>&nbsp; AdetEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; AdetEdt.SetClproSettings(AdetEdt.clprosettings);</div><div><br></div><div>&nbsp; FiyatEdt = MyForm.AddNewProEdit(StokPanel, 'FiyatEdt', 'Fiyat');</div><div>&nbsp; FiyatEdt.Align = alTop; FiyatEdt.Height = 40; FiyatEdt.Margins.Top = 5;</div><div>&nbsp; FiyatEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; FiyatEdt.SetClproSettings(FiyatEdt.clprosettings);</div><div><br></div><div>&nbsp; // Stok Kaydet Butonu.</div><div>&nbsp; KaydetBtn = MyForm.AddNewProButton(StokPanel, 'KaydetBtn', 'STOKLA');</div><div>&nbsp; KaydetBtn.Align = alTop; KaydetBtn.Height = 45; KaydetBtn.Margins.Top = 10;</div><div>&nbsp; KaydetBtn.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#E4CDA7');&nbsp;</div><div>&nbsp; KaydetBtn.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; KaydetBtn.SetClproSettings(KaydetBtn.clprosettings);</div><div>&nbsp; MyForm.AddNewEvent(KaydetBtn, tbeOnClick, 'UrunEkle'); // Eklemeye bağla.</div><div><br></div><div>&nbsp; // Ürünlerin listelendiği panel.</div><div>&nbsp; SatisPanel = MyForm.AddNewProPanel(BgPnl, 'SatisPanel');</div><div>&nbsp; SatisPanel.Align = alClient; SatisPanel.Visible = False;</div><div>&nbsp; // Çok ürün olursa aşağı kaydırabilmek için ScrollBox.</div><div>&nbsp; ListScrl = MyForm.AddNewVertScrollBox(SatisPanel, 'ListScrl');</div><div>&nbsp; ListScrl.Align = alClient;</div><div><br></div><div>&nbsp; // Geçmiş fişlerin listelendiği panel.</div><div>&nbsp; FislerPanel = MyForm.AddNewProPanel(BgPnl, 'FislerPanel');</div><div>&nbsp; FislerPanel.Align = alClient; FislerPanel.Visible = False;</div><div>&nbsp; // Çok fiş olursa kaydırmak için ScrollBox.</div><div>&nbsp; FislerScrl = MyForm.AddNewVertScrollBox(FislerPanel, 'FislerScrl');</div><div>&nbsp; FislerScrl.Align = alClient;</div><div><br></div><div>&nbsp; // ==========================================</div><div>&nbsp; // --- 3. E-FATURA / FİŞ DETAY EKRANI ---&nbsp;</div><div>&nbsp; // ==========================================</div><div>&nbsp; FisDetayPanel = MyForm.AddNewProPanel(BgPnl, 'FisDetayPanel');</div><div>&nbsp; FisDetayPanel.Align = alClient;</div><div>&nbsp; FisDetayPanel.Visible = False; // İncele denmeden açılmaz.</div><div>&nbsp; FisDetayPanel.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FAF7F2');</div><div>&nbsp; FisDetayPanel.SetClproSettings(FisDetayPanel.clprosettings);</div><div><br></div><div>&nbsp; // Fatura sayfasının üst buton barı.</div><div>&nbsp; FaturaTopPnl = MyForm.AddNewProPanel(FisDetayPanel, 'FaturaTopPnl');</div><div>&nbsp; FaturaTopPnl.Align = alTop; FaturaTopPnl.Height = 50;</div><div>&nbsp; FaturaTopPnl.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FAF7F2');</div><div>&nbsp; FaturaTopPnl.SetClproSettings(FaturaTopPnl.clprosettings);</div><div><br></div><div>&nbsp; // Geri Dön Butonu</div><div>&nbsp; DetayGeriBtn = MyForm.AddNewProButton(FaturaTopPnl, 'DetayGeriBtn', '&#8592; LİSTEYE DÖN');</div><div>&nbsp; DetayGeriBtn.Align = alLeft; DetayGeriBtn.Width = 120; DetayGeriBtn.Margins.Left = 10; DetayGeriBtn.Margins.Top = 5; DetayGeriBtn.Margins.Bottom = 5;</div><div>&nbsp; DetayGeriBtn.clprosettings.BackGroundcolor = clAlphaColor.clAlphaColor.clHexToColor('#EBE0D0');&nbsp;</div><div>&nbsp; DetayGeriBtn.SetClproSettings(DetayGeriBtn.clprosettings);</div><div>&nbsp; MyForm.AddNewEvent(DetayGeriBtn, tbeOnClick, 'FisDetayKapat');</div><div><br></div><div>&nbsp; // E-Fatura Oluştur Butonu</div><div>&nbsp; EFaturaKesBtn = MyForm.AddNewProButton(FaturaTopPnl, 'EFaturaKesBtn', 'E-FATURA OLUŞTUR');</div><div>&nbsp; EFaturaKesBtn.Align = alRight; EFaturaKesBtn.Width = 150; EFaturaKesBtn.Margins.Right = 10; EFaturaKesBtn.Margins.Top = 5; EFaturaKesBtn.Margins.Bottom = 5;</div><div>&nbsp; EFaturaKesBtn.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#D5B990');&nbsp;</div><div>&nbsp; EFaturaKesBtn.SetClproSettings(EFaturaKesBtn.clprosettings);</div><div>&nbsp; MyForm.AddNewEvent(EFaturaKesBtn, tbeOnClick, 'EFaturaOlusturTiklandi');</div><div><br></div><div>&nbsp; // --- BEYAZ FATURA KAĞIDI TASARIMI ---</div><div>&nbsp; // Ekran küçükse fatura kağıdı kaydırılabilsin.</div><div>&nbsp; FaturaScrl = MyForm.AddNewVertScrollBox(FisDetayPanel, 'FaturaScrl');</div><div>&nbsp; FaturaScrl.Align = alClient;</div><div><br></div><div>&nbsp; // Beyaz zemin (Kağıt Görünümü).</div><div>&nbsp; KagitPnl = MyForm.AddNewProPanel(FaturaScrl, 'KagitPnl');</div><div>&nbsp; KagitPnl.Align = alTop; KagitPnl.Height = 450; KagitPnl.Margins.Top = 10; KagitPnl.Margins.Left = 10; KagitPnl.Margins.Right = 10;</div><div>&nbsp; KagitPnl.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FFFFFF');</div><div>&nbsp; KagitPnl.clprosettings.BorderColor = clAlphaColor.clHexToColor('#D5B990');</div><div>&nbsp; KagitPnl.clprosettings.BorderWidth = 1;</div><div>&nbsp; KagitPnl.SetClproSettings(KagitPnl.clprosettings);</div><div><br></div><div>&nbsp; // Satıcı (Gönderen) bilgilerinin olacağı üst bölüm.</div><div>&nbsp; UstBilgiPnl = MyForm.AddNewProPanel(KagitPnl, 'UstBilgiPnl');</div><div>&nbsp; UstBilgiPnl.Align = alTop; UstBilgiPnl.Height = 90;</div><div>&nbsp; UstBilgiPnl.SetClproSettings(UstBilgiPnl.clprosettings);</div><div><br></div><div>&nbsp; // Faturanın Sağ Üst Kısmı (Tarih, Logo)</div><div>&nbsp; FaturaSagPnl = MyForm.AddNewProPanel(UstBilgiPnl, 'FaturaSagPnl');</div><div>&nbsp; FaturaSagPnl.Align = alRight; FaturaSagPnl.Width = 180;</div><div>&nbsp; FaturaSagPnl.SetClproSettings(FaturaSagPnl.clprosettings);</div><div><br></div><div>&nbsp; EFaturaLogoLbl = MyForm.AddNewProLabel(FaturaSagPnl, 'EFaturaLogoLbl', 'e-FATURA');</div><div>&nbsp; EFaturaLogoLbl.Align = alTop; EFaturaLogoLbl.Height = 25; EFaturaLogoLbl.Margins.Top = 10;</div><div>&nbsp; EFaturaLogoLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#D5B990');</div><div>&nbsp; EFaturaLogoLbl.SetClproSettings(EFaturaLogoLbl.clprosettings);</div><div><br></div><div>&nbsp; FaturaSenaryoLbl = MyForm.AddNewProLabel(FaturaSagPnl, 'FaturaSenaryoLbl', 'Senaryo: TICARIFATURA');</div><div>&nbsp; FaturaSenaryoLbl.Align = alTop; FaturaSenaryoLbl.Height = 20;</div><div>&nbsp; FaturaSenaryoLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#5A4A3A');</div><div>&nbsp; FaturaSenaryoLbl.SetClproSettings(FaturaSenaryoLbl.clprosettings);</div><div><br></div><div>&nbsp; FaturaTarihLbl = MyForm.AddNewProLabel(FaturaSagPnl, 'FaturaTarihLbl', 'Tarih: -');</div><div>&nbsp; FaturaTarihLbl.Align = alTop; FaturaTarihLbl.Height = 20;</div><div>&nbsp; FaturaTarihLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#5A4A3A');</div><div>&nbsp; FaturaTarihLbl.SetClproSettings(FaturaTarihLbl.clprosettings);</div><div><br></div><div>&nbsp; // Faturanın Sol Üst Kısmı (Satıcı Unvanı)</div><div>&nbsp; SaticiPnl = MyForm.AddNewProPanel(UstBilgiPnl, 'SaticiPnl');</div><div>&nbsp; SaticiPnl.Align = alClient;</div><div>&nbsp; SaticiPnl.SetClproSettings(SaticiPnl.clprosettings);</div><div><br></div><div>&nbsp; FirmaIsimLbl = MyForm.AddNewProLabel(SaticiPnl, 'FirmaIsimLbl', 'ALİ ERBAY');</div><div>&nbsp; FirmaIsimLbl.Align = alTop; FirmaIsimLbl.Height = 25; FirmaIsimLbl.Margins.Left = 10; FirmaIsimLbl.Margins.Top = 10;</div><div>&nbsp; FirmaIsimLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; FirmaIsimLbl.SetClproSettings(FirmaIsimLbl.clprosettings);</div><div><br></div><div>&nbsp; FirmaDetayLbl = MyForm.AddNewProLabel(SaticiPnl, 'FirmaDetayLbl', 'Adres ve VKN Bilgileri...');</div><div>&nbsp; FirmaDetayLbl.Align = alClient; FirmaDetayLbl.Margins.Left = 10;</div><div>&nbsp; FirmaDetayLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#5A4A3A');</div><div>&nbsp; FirmaDetayLbl.SetClproSettings(FirmaDetayLbl.clprosettings);</div><div><br></div><div>&nbsp; // Müşteri (Alıcı) Bilgileri Alanı</div><div>&nbsp; AliciPnl = MyForm.AddNewProPanel(KagitPnl, 'AliciPnl');</div><div>&nbsp; AliciPnl.Align = alTop; AliciPnl.Height = 100;</div><div>&nbsp; AliciPnl.SetClproSettings(AliciPnl.clprosettings);</div><div><br></div><div>&nbsp; SayinLbl = MyForm.AddNewProLabel(AliciPnl, 'SayinLbl', 'SAYIN');</div><div>&nbsp; SayinLbl.Align = alTop; SayinLbl.Height = 20; SayinLbl.Margins.Left = 10; SayinLbl.Margins.Top = 10;</div><div>&nbsp; SayinLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#5A4A3A');</div><div>&nbsp; SayinLbl.SetClproSettings(SayinLbl.clprosettings);</div><div><br></div><div>&nbsp; FaturaAliciLbl = MyForm.AddNewProLabel(AliciPnl, 'FaturaAliciLbl', 'Müşteri Adı Soyadı');</div><div>&nbsp; FaturaAliciLbl.Align = alTop; FaturaAliciLbl.Height = 25; FaturaAliciLbl.Margins.Left = 10;</div><div>&nbsp; FaturaAliciLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; FaturaAliciLbl.SetClproSettings(FaturaAliciLbl.clprosettings);</div><div><br></div><div>&nbsp; FaturaAliciDetayLbl = MyForm.AddNewProLabel(AliciPnl, 'FaturaAliciDetayLbl', 'Müşteri VKN, VD, Adres...');</div><div>&nbsp; FaturaAliciDetayLbl.Align = alTop; FaturaAliciDetayLbl.Height = 40; FaturaAliciDetayLbl.Margins.Left = 10;</div><div>&nbsp; FaturaAliciDetayLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#5A4A3A');</div><div>&nbsp; FaturaAliciDetayLbl.SetClproSettings(FaturaAliciDetayLbl.clprosettings);</div><div><br></div><div>&nbsp; // Satın Alınan Ürün Tablosu (Başlıklar ve İçerik)</div><div>&nbsp; TabloPnl = MyForm.AddNewProPanel(KagitPnl, 'TabloPnl');</div><div>&nbsp; TabloPnl.Align = alTop; TabloPnl.Height = 80; TabloPnl.Margins.Top = 10;</div><div>&nbsp; TabloPnl.SetClproSettings(TabloPnl.clprosettings);</div><div><br></div><div>&nbsp; TabloBaslikPnl = MyForm.AddNewProPanel(TabloPnl, 'TabloBaslikPnl');</div><div>&nbsp; TabloBaslikPnl.Align = alTop; TabloBaslikPnl.Height = 30;</div><div>&nbsp; TabloBaslikPnl.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#F9F6F0');</div><div>&nbsp; TabloBaslikPnl.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; TabloBaslikPnl.clprosettings.BorderWidth = 1;</div><div>&nbsp; TabloBaslikPnl.SetClproSettings(TabloBaslikPnl.clprosettings);</div><div><br></div><div>&nbsp; // Tablo Sütun Başlıkları (AlLeft verip yan yana diziyoruz)</div><div>&nbsp; Col1 = MyForm.AddNewProLabel(TabloBaslikPnl, 'Col1', ' Mal Hizmet'); Col1.Align = alLeft; Col1.Width = 100;</div><div>&nbsp; Col2 = MyForm.AddNewProLabel(TabloBaslikPnl, 'Col2', ' Miktar'); Col2.Align = alLeft; Col2.Width = 50;</div><div>&nbsp; Col3 = MyForm.AddNewProLabel(TabloBaslikPnl, 'Col3', ' B.Fiyat'); Col3.Align = alLeft; Col3.Width = 50;</div><div>&nbsp; Col4 = MyForm.AddNewProLabel(TabloBaslikPnl, 'Col4', ' KDV'); Col4.Align = alLeft; Col4.Width = 40;</div><div>&nbsp; Col5 = MyForm.AddNewProLabel(TabloBaslikPnl, 'Col5', ' Tutar (TL)'); Col5.Align = alClient;</div><div><br></div><div>&nbsp; // Tablo Sütun Verileri (İçeriği)</div><div>&nbsp; TabloVeriPnl = MyForm.AddNewProPanel(TabloPnl, 'TabloVeriPnl');</div><div>&nbsp; TabloVeriPnl.Align = alClient;</div><div>&nbsp; TabloVeriPnl.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FFFFFF');</div><div>&nbsp; TabloVeriPnl.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; TabloVeriPnl.clprosettings.BorderWidth = 1;</div><div>&nbsp; TabloVeriPnl.SetClproSettings(TabloVeriPnl.clprosettings);</div><div><br></div><div>&nbsp; Val1 = MyForm.AddNewProLabel(TabloVeriPnl, 'Val1', ' -'); Val1.Align = alLeft; Val1.Width = 100;</div><div>&nbsp; Val2 = MyForm.AddNewProLabel(TabloVeriPnl, 'Val2', ' -'); Val2.Align = alLeft; Val2.Width = 50;</div><div>&nbsp; Val3 = MyForm.AddNewProLabel(TabloVeriPnl, 'Val3', ' -'); Val3.Align = alLeft; Val3.Width = 50;</div><div>&nbsp; Val4 = MyForm.AddNewProLabel(TabloVeriPnl, 'Val4', ' %20'); Val4.Align = alLeft; Val4.Width = 40;</div><div>&nbsp; Val5 = MyForm.AddNewProLabel(TabloVeriPnl, 'Val5', ' -'); Val5.Align = alClient;</div><div><br></div><div>&nbsp; // Fatura En Alt Kısım (Toplamlar)</div><div>&nbsp; ToplamPnl = MyForm.AddNewProPanel(KagitPnl, 'ToplamPnl');</div><div>&nbsp; ToplamPnl.Align = alTop; ToplamPnl.Height = 100; ToplamPnl.Margins.Top = 15;</div><div>&nbsp; ToplamPnl.SetClproSettings(ToplamPnl.clprosettings);</div><div><br></div><div>&nbsp; ToplamIcerikPnl = MyForm.AddNewProPanel(ToplamPnl, 'ToplamIcerikPnl');</div><div>&nbsp; ToplamIcerikPnl.Align = alRight; ToplamIcerikPnl.Width = 220; // Toplamlar sağda dursun.</div><div>&nbsp; ToplamIcerikPnl.SetClproSettings(ToplamIcerikPnl.clprosettings);</div><div><br></div><div>&nbsp; OzetAltToplamLbl = MyForm.AddNewProLabel(ToplamIcerikPnl, 'OzetAltToplamLbl', 'Mal Hizmet: 0 TL');</div><div>&nbsp; OzetAltToplamLbl.Align = alTop; OzetAltToplamLbl.Height = 25;</div><div>&nbsp; OzetAltToplamLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#5A4A3A');</div><div>&nbsp; OzetAltToplamLbl.SetClproSettings(OzetAltToplamLbl.clprosettings);</div><div><br></div><div>&nbsp; OzetKdvLbl = MyForm.AddNewProLabel(ToplamIcerikPnl, 'OzetKdvLbl', 'Hesaplanan KDV: 0 TL');</div><div>&nbsp; OzetKdvLbl.Align = alTop; OzetKdvLbl.Height = 25;</div><div>&nbsp; OzetKdvLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#5A4A3A');</div><div>&nbsp; OzetKdvLbl.SetClproSettings(OzetKdvLbl.clprosettings);</div><div><br></div><div>&nbsp; OzetGenelToplamLbl = MyForm.AddNewProLabel(ToplamIcerikPnl, 'OzetGenelToplamLbl', 'Ödenecek Tutar: 0 TL');</div><div>&nbsp; OzetGenelToplamLbl.Align = alTop; OzetGenelToplamLbl.Height = 30;</div><div>&nbsp; OzetGenelToplamLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; OzetGenelToplamLbl.SetClproSettings(OzetGenelToplamLbl.clprosettings);</div><div><br></div><div>&nbsp; // ==========================================</div><div>&nbsp; // --- SATIŞ YAPARKEN AÇILAN POPUP PENCERESİ ---</div><div>&nbsp; // ==========================================</div><div>&nbsp; // Tüm ekranı karartacak olan yarı saydam katman (Arka plan tıklanmasın diye).</div><div>&nbsp; OverlayPnl = MyForm.AddNewProPanel(BgPnl, 'OverlayPnl');</div><div>&nbsp; OverlayPnl.Align = alClient; OverlayPnl.Visible = False;</div><div>&nbsp; OverlayPnl.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FAF7F2');&nbsp;</div><div>&nbsp; OverlayPnl.SetClproSettings(OverlayPnl.clprosettings);</div><div><br></div><div>&nbsp; // Popup kutusunun kendisi. Ortada duracak şekilde ayarlandı.</div><div>&nbsp; PopupPanel = MyForm.AddNewProPanel(OverlayPnl, 'PopupPanel');</div><div>&nbsp; PopupPanel.Align = alNone; PopupPanel.Width = 340; PopupPanel.Height = 550;&nbsp;</div><div>&nbsp; PopupPanel.Left = 20; PopupPanel.Top = 60;</div><div>&nbsp; PopupPanel.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FFFFFF');</div><div>&nbsp; PopupPanel.clprosettings.RoundHeight = 20; // Köşeleri yuvarlak beyaz kutu.</div><div>&nbsp; PopupPanel.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; PopupPanel.clprosettings.BorderWidth = 2;</div><div>&nbsp; PopupPanel.SetClproSettings(PopupPanel.clprosettings);</div><div><br></div><div>&nbsp; // Popup Kapatma (X) Butonu (Kaybolmasın diye kaydırmanın dışına koyduk).</div><div>&nbsp; KapatBtn = MyForm.AddNewProButton(PopupPanel, 'KapatBtn', 'X');</div><div>&nbsp; KapatBtn.Align = alNone; KapatBtn.Width = 35; KapatBtn.Height = 35; KapatBtn.Left = 295; KapatBtn.Top = 5;</div><div>&nbsp; KapatBtn.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FAF7F2');</div><div>&nbsp; KapatBtn.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; KapatBtn.SetClproSettings(KapatBtn.clprosettings);</div><div>&nbsp; MyForm.AddNewEvent(KapatBtn, tbeOnClick, 'KapatSatisPanel'); // Tıklayınca kapat.</div><div><br></div><div>&nbsp; // Satışı Onayla Butonu (Bu da en altta sabit kalacak).</div><div>&nbsp; SatisOnayBtn = MyForm.AddNewProButton(PopupPanel, 'SatisOnayBtn', 'SATIŞI ONAYLA');</div><div>&nbsp; SatisOnayBtn.Align = alBottom; SatisOnayBtn.Height = 45; SatisOnayBtn.Margins.Bottom = 10; SatisOnayBtn.Margins.Left = 20; SatisOnayBtn.Margins.Right = 20;</div><div>&nbsp; SatisOnayBtn.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#E4CDA7');&nbsp;</div><div>&nbsp; SatisOnayBtn.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; SatisOnayBtn.SetClproSettings(SatisOnayBtn.clprosettings);</div><div>&nbsp; MyForm.AddNewEvent(SatisOnayBtn, tbeOnClick, 'SatisYap'); // Tıklayınca satışı kaydet.</div><div><br></div><div>&nbsp; // Popup içi kaydırma kutusu (Form çok uzun, telefon ekranına sığması için).</div><div>&nbsp; SatisScroll = MyForm.AddNewVertScrollBox(PopupPanel, 'SatisScroll');</div><div>&nbsp; SatisScroll.Align = alClient;</div><div>&nbsp; SatisScroll.Margins.Top = 10;</div><div>&nbsp; SatisScroll.Margins.Bottom = 60; // Onay butonuna yer bıraktık.</div><div><br></div><div>&nbsp; // --- POPUP İÇİ: SATICI (SİZİN) BİLGİLERİNİZ ---</div><div>&nbsp; // Bu kısımdaki veriler her satışta sıfırlanmaz, orada kalır.</div><div>&nbsp; SatBaslikLbl = MyForm.AddNewProLabel(SatisScroll, 'SatBaslikLbl', '--- SATICI (SİZİN) BİLGİLERİNİZ ---');</div><div>&nbsp; SatBaslikLbl.Align = alTop; SatBaslikLbl.Height = 25; SatBaslikLbl.Margins.Top = 10; SatBaslikLbl.Margins.Left = 20;</div><div>&nbsp; SatBaslikLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#5A4A3A');</div><div>&nbsp; SatBaslikLbl.SetClproSettings(SatBaslikLbl.clprosettings);</div><div><br></div><div>&nbsp; SaticiUnvanEdt = MyForm.AddNewProEdit(SatisScroll, 'SaticiUnvanEdt', 'Firma Unvanı / Ad Soyad');</div><div>&nbsp; SaticiUnvanEdt.Align = alTop; SaticiUnvanEdt.Height = 40; SaticiUnvanEdt.Margins.Top = 5; SaticiUnvanEdt.Margins.Left = 20; SaticiUnvanEdt.Margins.Right = 20;</div><div>&nbsp; SaticiUnvanEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; SaticiUnvanEdt.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; SaticiUnvanEdt.clprosettings.BorderWidth = 1;</div><div>&nbsp; SaticiUnvanEdt.SetClproSettings(SaticiUnvanEdt.clprosettings);</div><div><br></div><div>&nbsp; SaticiVknEdt = MyForm.AddNewProEdit(SatisScroll, 'SaticiVknEdt', 'VKN / TCKN');</div><div>&nbsp; SaticiVknEdt.Align = alTop; SaticiVknEdt.Height = 40; SaticiVknEdt.Margins.Top = 5; SaticiVknEdt.Margins.Left = 20; SaticiVknEdt.Margins.Right = 20;</div><div>&nbsp; SaticiVknEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; SaticiVknEdt.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; SaticiVknEdt.clprosettings.BorderWidth = 1;</div><div>&nbsp; SaticiVknEdt.SetClproSettings(SaticiVknEdt.clprosettings);</div><div><br></div><div>&nbsp; SaticiVdEdt = MyForm.AddNewProEdit(SatisScroll, 'SaticiVdEdt', 'Vergi Dairesi');</div><div>&nbsp; SaticiVdEdt.Align = alTop; SaticiVdEdt.Height = 40; SaticiVdEdt.Margins.Top = 5; SaticiVdEdt.Margins.Left = 20; SaticiVdEdt.Margins.Right = 20;</div><div>&nbsp; SaticiVdEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; SaticiVdEdt.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; SaticiVdEdt.clprosettings.BorderWidth = 1;</div><div>&nbsp; SaticiVdEdt.SetClproSettings(SaticiVdEdt.clprosettings);</div><div><br></div><div>&nbsp; SaticiAdresEdt = MyForm.AddNewProEdit(SatisScroll, 'SaticiAdresEdt', 'Adresiniz');</div><div>&nbsp; SaticiAdresEdt.Align = alTop; SaticiAdresEdt.Height = 40; SaticiAdresEdt.Margins.Top = 5; SaticiAdresEdt.Margins.Left = 20; SaticiAdresEdt.Margins.Right = 20;</div><div>&nbsp; SaticiAdresEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; SaticiAdresEdt.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; SaticiAdresEdt.clprosettings.BorderWidth = 1;</div><div>&nbsp; SaticiAdresEdt.SetClproSettings(SaticiAdresEdt.clprosettings);</div><div><br></div><div>&nbsp; SaticiTelEdt = MyForm.AddNewProEdit(SatisScroll, 'SaticiTelEdt', 'İletişim (Tel/E-Posta)');</div><div>&nbsp; SaticiTelEdt.Align = alTop; SaticiTelEdt.Height = 40; SaticiTelEdt.Margins.Top = 5; SaticiTelEdt.Margins.Left = 20; SaticiTelEdt.Margins.Right = 20;</div><div>&nbsp; SaticiTelEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; SaticiTelEdt.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; SaticiTelEdt.clprosettings.BorderWidth = 1;</div><div>&nbsp; SaticiTelEdt.SetClproSettings(SaticiTelEdt.clprosettings);</div><div><br></div><div>&nbsp; // --- POPUP İÇİ: ALICI (MÜŞTERİ) BİLGİLERİ ---</div><div>&nbsp; // Bu kısım yeni bir müşteriye satış yaparken temizlenir.</div><div>&nbsp; MusBaslikLbl = MyForm.AddNewProLabel(SatisScroll, 'MusBaslikLbl', '--- ALICI (MÜŞTERİ) BİLGİLERİ ---');</div><div>&nbsp; MusBaslikLbl.Align = alTop; MusBaslikLbl.Height = 25; MusBaslikLbl.Margins.Top = 20; MusBaslikLbl.Margins.Left = 20;</div><div>&nbsp; MusBaslikLbl.clprosettings.FontColor = clAlphaColor.clHexToColor('#5A4A3A');</div><div>&nbsp; MusBaslikLbl.SetClproSettings(MusBaslikLbl.clprosettings);</div><div><br></div><div>&nbsp; AliciAdiEdt = MyForm.AddNewProEdit(SatisScroll, 'AliciAdiEdt', 'Müşteri Unvanı / Ad Soyad');</div><div>&nbsp; AliciAdiEdt.Align = alTop; AliciAdiEdt.Height = 40; AliciAdiEdt.Margins.Top = 5; AliciAdiEdt.Margins.Left = 20; AliciAdiEdt.Margins.Right = 20;</div><div>&nbsp; AliciAdiEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; AliciAdiEdt.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; AliciAdiEdt.clprosettings.BorderWidth = 1;</div><div>&nbsp; AliciAdiEdt.SetClproSettings(AliciAdiEdt.clprosettings);</div><div><br></div><div>&nbsp; AliciVknEdt = MyForm.AddNewProEdit(SatisScroll, 'AliciVknEdt', 'Müşteri VKN / TCKN');</div><div>&nbsp; AliciVknEdt.Align = alTop; AliciVknEdt.Height = 40; AliciVknEdt.Margins.Top = 5; AliciVknEdt.Margins.Left = 20; AliciVknEdt.Margins.Right = 20;</div><div>&nbsp; AliciVknEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; AliciVknEdt.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; AliciVknEdt.clprosettings.BorderWidth = 1;</div><div>&nbsp; AliciVknEdt.SetClproSettings(AliciVknEdt.clprosettings);</div><div><br></div><div>&nbsp; AliciVdEdt = MyForm.AddNewProEdit(SatisScroll, 'AliciVdEdt', 'Müşteri Vergi Dairesi');</div><div>&nbsp; AliciVdEdt.Align = alTop; AliciVdEdt.Height = 40; AliciVdEdt.Margins.Top = 5; AliciVdEdt.Margins.Left = 20; AliciVdEdt.Margins.Right = 20;</div><div>&nbsp; AliciVdEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; AliciVdEdt.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; AliciVdEdt.clprosettings.BorderWidth = 1;</div><div>&nbsp; AliciVdEdt.SetClproSettings(AliciVdEdt.clprosettings);</div><div><br></div><div>&nbsp; AliciAdresEdt = MyForm.AddNewProEdit(SatisScroll, 'AliciAdresEdt', 'Müşteri Adresi (İl/İlçe)');</div><div>&nbsp; AliciAdresEdt.Align = alTop; AliciAdresEdt.Height = 40; AliciAdresEdt.Margins.Top = 5; AliciAdresEdt.Margins.Left = 20; AliciAdresEdt.Margins.Right = 20;</div><div>&nbsp; AliciAdresEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; AliciAdresEdt.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; AliciAdresEdt.clprosettings.BorderWidth = 1;</div><div>&nbsp; AliciAdresEdt.SetClproSettings(AliciAdresEdt.clprosettings);</div><div><br></div><div>&nbsp; AliciTelEdt = MyForm.AddNewProEdit(SatisScroll, 'AliciTelEdt', 'Müşteri İletişim (Tel/Mail)');</div><div>&nbsp; AliciTelEdt.Align = alTop; AliciTelEdt.Height = 40; AliciTelEdt.Margins.Top = 5; AliciTelEdt.Margins.Left = 20; AliciTelEdt.Margins.Right = 20;</div><div>&nbsp; AliciTelEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; AliciTelEdt.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; AliciTelEdt.clprosettings.BorderWidth = 1;</div><div>&nbsp; AliciTelEdt.SetClproSettings(AliciTelEdt.clprosettings);</div><div><br></div><div>&nbsp; // Müşteriye satılacak adet girdisi.</div><div>&nbsp; SatisAdetEdt = MyForm.AddNewProEdit(SatisScroll, 'SatisAdetEdt', 'Satılacak Adet Giriniz');</div><div>&nbsp; SatisAdetEdt.Align = alTop; SatisAdetEdt.Height = 40; SatisAdetEdt.Margins.Top = 15; SatisAdetEdt.Margins.Left = 20; SatisAdetEdt.Margins.Right = 20;</div><div>&nbsp; SatisAdetEdt.clprosettings.BackGroundcolor = clAlphaColor.clHexToColor('#FCFAFA');</div><div>&nbsp; SatisAdetEdt.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; SatisAdetEdt.clprosettings.BorderWidth = 1;</div><div>&nbsp; SatisAdetEdt.SetClproSettings(SatisAdetEdt.clprosettings);</div><div><br></div><div><br></div><div>&nbsp; // ==========================================</div><div>&nbsp; // --- UYGULAMANIN GİRİŞ EKRANI (İLK AÇILAN YER) ---</div><div>&nbsp; // ==========================================</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Giriş ekranının en alt arka planı.</div><div>&nbsp; LoginBgPnl = MyForm.AddNewProPanel(MyForm, 'LoginBgPnl');</div><div>&nbsp; LoginBgPnl.Align = alClient;</div><div>&nbsp; LoginBgPnl.clprosettings.BackGroundcolor = clalphacolor.clhextoColor('#FAF7F2');&nbsp;</div><div>&nbsp; LoginBgPnl.SetClproSettings(LoginBgPnl.clprosettings);</div><div><br></div><div>&nbsp; // Maske Paneli (Öğeleri ortalamak için hafif yukarı kaydırılmış arka plan).</div><div>&nbsp; MaskPnl = MyForm.AddNewProPanel(LoginBgPnl, 'MaskPnl');</div><div>&nbsp; MaskPnl.Align = alClient;</div><div>&nbsp; MaskPnl.clprosettings.BackGroundcolor = clalphacolor.clhextoColor('#FAF7F2');&nbsp;</div><div>&nbsp; MaskPnl.Margins.Top = -60;&nbsp;</div><div>&nbsp; MaskPnl.SetClproSettings(MaskPnl.clprosettings);</div><div><br></div><div>&nbsp; // Formun beyaz renkli, çerçeveli orta kutusu.</div><div>&nbsp; MainPnl = MyForm.AddNewProPanel(MaskPnl, 'MainPnl');</div><div>&nbsp; MainPnl.Align = alLeft; MainPnl.Width = 450;&nbsp;</div><div>&nbsp; MainPnl.clprosettings.BackGroundcolor = clalphacolor.clhextoColor('#FFFFFF');&nbsp;</div><div>&nbsp; MainPnl.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');&nbsp;</div><div>&nbsp; MainPnl.clprosettings.BorderWidth = 1;</div><div>&nbsp; MainPnl.SetClproSettings(MainPnl.clprosettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Kullanıcı ID kutusu.</div><div>&nbsp; KullaniciAdiEdt = MyForm.AddNewProEdit(MainPnl, 'KullaniciAdiEdt', 'Kullanici Adi');</div><div>&nbsp; KullaniciAdiEdt.Align = alTop; KullaniciAdiEdt.Height = 50; KullaniciAdiEdt.margins.top = 100;&nbsp;</div><div>&nbsp; KullaniciAdiEdt.margins.left = 50; KullaniciAdiEdt.margins.right = 50;</div><div>&nbsp; KullaniciAdiEdt.clprosettings.BackGroundcolor = clalphacolor.clhextoColor('#FCFAFA');&nbsp;</div><div>&nbsp; KullaniciAdiEdt.clprosettings.FontColor = clalphacolor.clhextoColor('#000000');</div><div>&nbsp; KullaniciAdiEdt.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; KullaniciAdiEdt.clprosettings.BorderWidth = 1;</div><div>&nbsp; KullaniciAdiEdt.SetClproSettings(KullaniciAdiEdt.ClproSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Şifre kutusu.</div><div>&nbsp; SifreEdit = MyForm.AddNewProEdit(MainPnl, 'SifreEdit', 'Sifre');</div><div>&nbsp; SifreEdit.Align = alTop; SifreEdit.Height = 50; SifreEdit.Password = True; // Yazılanları gizle (yıldız yap).</div><div>&nbsp; SifreEdit.margins.top = 20; SifreEdit.margins.left = 50; SifreEdit.margins.right = 50;</div><div>&nbsp; SifreEdit.clprosettings.BackGroundcolor = clalphacolor.clhextoColor('#FCFAFA');</div><div>&nbsp; SifreEdit.clprosettings.FontColor = clalphacolor.clhextoColor('#000000');</div><div>&nbsp; SifreEdit.clprosettings.BorderColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; SifreEdit.clprosettings.BorderWidth = 1;</div><div>&nbsp; SifreEdit.SetClproSettings(SifreEdit.ClproSettings);</div><div><br></div><div>&nbsp; // Şifre Göster/Gizle Butonu (Şifre kutusunun içine sağa yapışık ekleniyor).</div><div>&nbsp; BtnGoz = MyForm.AddNewProButton(SifreEdit, 'BtnGoz', 'GÖSTER');</div><div>&nbsp; BtnGoz.Align = alRight; BtnGoz.Width = 80;</div><div>&nbsp; BtnGoz.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; BtnGoz.clprosettings.BackGroundColor = clAlphaColor.clHexToColor('#E4CDA7');</div><div>&nbsp; BtnGoz.SetClproSettings(BtnGoz.ClproSettings);</div><div>&nbsp; MyForm.AddNewEvent(BtnGoz, tbeOnClick, 'GozTiklandi'); // Olayı bağla.</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Oturum Açma Butonu.</div><div>&nbsp; Giris = MyForm.AddNewProButton(MainPnl, 'Giris', 'OTURUM AÇ');</div><div>&nbsp; Giris.Align = alTop; Giris.Height = 50; Giris.margins.top = 30; Giris.margins.left = 50; Giris.margins.right = 50;</div><div>&nbsp; Giris.clprosettings.BackGroundcolor = clalphacolor.clhextoColor('#E4CDA7');</div><div>&nbsp; Giris.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; Giris.SetClproSettings(Giris.ClproSettings);</div><div>&nbsp; MyForm.AddNewEvent(Giris, tbeOnClick, 'GirisYapTiklandi'); // Olayı bağla.</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Hesap Oluştur Butonu.</div><div>&nbsp; Kayit = MyForm.AddNewProButton(MainPnl, 'Kayit', 'HESAP OLUŞTUR');</div><div>&nbsp; Kayit.Align = alTop; Kayit.Height = 50; Kayit.margins.top = 10; Kayit.margins.left = 50; Kayit.margins.right = 50;</div><div>&nbsp; Kayit.clprosettings.BackGroundcolor = clalphacolor.clhextoColor('#E4CDA7');</div><div>&nbsp; Kayit.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; Kayit.SetClproSettings(Kayit.ClproSettings);</div><div>&nbsp; MyForm.AddNewEvent(Kayit, tbeOnClick, 'KayitOlTiklandi'); // Olayı bağla.</div><div><br></div><div>&nbsp; // Sosyal Medya ile giriş paneli (En altta durur).</div><div>&nbsp; SocialPnl = MyForm.AddNewProPanel(MainPnl, 'SocialPnl');</div><div>&nbsp; SocialPnl.Align = alTop; SocialPnl.Height = 45; SocialPnl.margins.top = 40;</div><div>&nbsp; SocialPnl.SetClproSettings(SocialPnl.ClproSettings);</div><div><br></div><div>&nbsp; // Google Butonu (Sola yapışık).</div><div>&nbsp; BtnGoogle = MyForm.AddNewProButton(SocialPnl, 'BtnGoogle', 'Google');</div><div>&nbsp; BtnGoogle.Align = alLeft; BtnGoogle.Width = 165; BtnGoogle.margins.left = 50;</div><div>&nbsp; BtnGoogle.clprosettings.BackGroundcolor = clalphacolor.clhextoColor('#E4CDA7');&nbsp;</div><div>&nbsp; BtnGoogle.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; BtnGoogle.SetClproSettings(BtnGoogle.ClproSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Facebook Butonu (Sağa yapışık).</div><div>&nbsp; BtnFacebook = MyForm.AddNewProButton(SocialPnl, 'BtnFacebook', 'Facebook');</div><div>&nbsp; BtnFacebook.Align = alRight; BtnFacebook.Width = 165; BtnFacebook.margins.right = 50;</div><div>&nbsp; BtnFacebook.clprosettings.BackGroundcolor = clalphacolor.clhextoColor('#E4CDA7');</div><div>&nbsp; BtnFacebook.clprosettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; BtnFacebook.SetClproSettings(BtnFacebook.ClproSettings);</div><div><br></div><div>&nbsp; // SON AŞAMA: Formu ekranda çalıştır ve göster. ZORUNLU!</div><div>&nbsp; MyForm.Run;</div><div>}</div><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/v8c78df7c7c0f484497ecbca7046644da1771523124516" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/v8c78df7c7c0f484497ecbca7046644da1771523124516"</a> integrity="sha512-8DS7rgIrAmghBFwoOTujcf6D9rXvH8xm8JQ1Ja01h9QX8EzXldiszufYa4IFfKdLUKTTrnSFXLDkUEOTrZQ8Qg==" 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, 04 May 2026 14:57:16 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1465&amp;PID=3335#3335</guid>
  </item> 
 </channel>
</rss>