<?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 : ScrollBox buton</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : ScrollBox buton]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 13:00:40 +0000</pubDate>
  <lastBuildDate>Thu, 08 Aug 2024 11:29:10 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.clomosy.com.tr/RSS_post_feed.asp?TID=838</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[ScrollBox buton : void LoadIlanlarFromDatabase(CategoryFilter:...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=838&amp;PID=1558#1558</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=205">cafer kosker</a><br /><strong>Konu:</strong> 838<br /><strong>Gönderim Zamanı:</strong> 08&nbsp;Ağustos&nbsp;2024 Saat 11:29<br /><br /><div>void LoadIlanlarFromDatabase(CategoryFilter: string);</div><div>{</div><div>&nbsp; try</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; IlanQuery.Connection = Clomosy.DBSQLServerConnection;</div><div>&nbsp; &nbsp; if (CategoryFilter == '')&nbsp;</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; IlanQuery.SQL.Text = 'SELECT ResimURL as IlanPicture, Adres as IlanAdres, Konum as IlanKonum, Tarih as IlanTarih, &nbsp;CONCAT(Fiyat, '' TL gece'') as IlanPrice, CONCAT(Puan, ''/5'') as IlanPuan &nbsp;FROM Ilanlar';</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; IlanQuery.SQL.Text = 'SELECT ResimURL as IlanPicture, Adres as IlanAdres, Konum as IlanKonum, Tarih as IlanTarih, &nbsp;CONCAT(Fiyat, '' TL gece'') as IlanPrice, CONCAT(Puan, ''/5'') as IlanPuan &nbsp;FROM Ilanlar WHERE Kategori = ' + QuotedStr(CategoryFilter);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; IlanQuery.Open;</div><div>&nbsp; &nbsp; if (IlanQuery.Found)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; IlanListView.ClLoadProListViewDataFromDataset(IlanQuery);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Kayıt Bulunamadı!');</div><div>&nbsp; &nbsp; }&nbsp;</div><div>&nbsp; finally</div><div>&nbsp; &nbsp; IlanQuery.Close;</div><div>&nbsp; &nbsp; //IlanQuery.Free; <b><font color="#990000">(Hata free den dolayı runtime error veriyormuş sildikten sonra çözüldü.)</font></b></div><div>&nbsp; }</div><div>}</div><div><br></div><div><br></div><div>void CategoryButtonClick;</div><div>{</div><div>&nbsp; CategoryButton = TclProButton(IlanForm.Clsender);</div><div>&nbsp; LoadIlanlarFromDatabase(CategoryButton.Hint);</div><div>}</div><div>Hata çözüldü çok teşekkürler</div>]]>
   </description>
   <pubDate>Thu, 08 Aug 2024 11:29:10 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=838&amp;PID=1558#1558</guid>
  </item> 
  <item>
   <title><![CDATA[ScrollBox buton : Butona t&#305;kland&#305;&#287;&#305;nda donma sorunu...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=838&amp;PID=1557#1557</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=205">cafer kosker</a><br /><strong>Konu:</strong> 838<br /><strong>Gönderim Zamanı:</strong> 08&nbsp;Ağustos&nbsp;2024 Saat 11:20<br /><br />Butona tıklandığında donma sorunu devam ediyor.]]>
   </description>
   <pubDate>Thu, 08 Aug 2024 11:20:23 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=838&amp;PID=1557#1557</guid>
  </item> 
  <item>
   <title><![CDATA[ScrollBox buton : Merhaba Cafer,A&#351;a&#287;&#305;daki kod ile...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=838&amp;PID=1553#1553</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=106">Developer</a><br /><strong>Konu:</strong> 838<br /><strong>Gönderim Zamanı:</strong> 08&nbsp;Ağustos&nbsp;2024 Saat 10:22<br /><br />Merhaba Cafer,<div>Aşağıdaki kod ile değiştirir misin:<br><div><div>void CategoryButtonClick;</div><div>var</div><div>&nbsp; btn:TclProButton;</div><div>{</div><div>&nbsp; btn = TclProButton(IlanForm.Clsender);</div><div>&nbsp; LoadIlanlarFromDatabase(btn.hint);</div><div>}</div></div></div>]]>
   </description>
   <pubDate>Thu, 08 Aug 2024 10:22:23 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=838&amp;PID=1553#1553</guid>
  </item> 
  <item>
   <title><![CDATA[ScrollBox buton : void CategoryButtonClick(Sender...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=838&amp;PID=1552#1552</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=205">cafer kosker</a><br /><strong>Konu:</strong> 838<br /><strong>Gönderim Zamanı:</strong> 08&nbsp;Ağustos&nbsp;2024 Saat 10:15<br /><br /><div>void CategoryButtonClick(Sender : Tobject);</div><div>{</div><div>&nbsp;try</div><div>&nbsp; &nbsp;LoadIlanlarFromDatabase(TclProButton(IlanForm.Clsender).Hint);</div><div>&nbsp;except</div><div>&nbsp; &nbsp;ShowMessage('Exception Class : ' + LastExceptionClassName + 'Exception Message : ' + LastExceptionMessage);</div><div>&nbsp;}</div><div>}</div><div><br></div><div>Syntax hatasını çözdüm fakat uygulamaya girip herhangi bir butona tıkladıktan sonra uygulama donuyor.</div>]]>
   </description>
   <pubDate>Thu, 08 Aug 2024 10:15:47 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=838&amp;PID=1552#1552</guid>
  </item> 
  <item>
   <title><![CDATA[ScrollBox buton : var IlanForm: TclForm; IlansearchEdit:...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=838&amp;PID=1548#1548</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=205">cafer kosker</a><br /><strong>Konu:</strong> 838<br /><strong>Gönderim Zamanı:</strong> 07&nbsp;Ağustos&nbsp;2024 Saat 21:55<br /><br /><div>var</div><div>&nbsp; IlanForm: TclForm;</div><div>&nbsp; IlansearchEdit: TclProSearchEdit;</div><div>&nbsp; IlansearchPanel, TopPanel, HorzPanel: TclProPanel;</div><div>&nbsp; CategoryScrollBox: TclHorzScrollBox;</div><div>&nbsp; ButtonPanel: TclProPanel;</div><div>&nbsp; CategoryButton: TclProButton;</div><div>&nbsp; CategoryLabel: TclProLabel;</div><div>&nbsp; counter: Integer;</div><div>&nbsp; ImageURLs: array&#091;0..11&#093; of string;</div><div>&nbsp; CategoryNames: array&#091;0..11&#093; of string;</div><div>&nbsp; IlanListView : TClProListView;</div><div>&nbsp; IlanDesignerPanel : TClProListViewDesignerPanel;</div><div>&nbsp; IlanPicture : TclProImage;</div><div>&nbsp; IlanName,IlanAdres,IlanKonum,IlanPrice,IlanTarih,IlanPuan,IlanLabelGece : TclProLabel;</div><div>&nbsp; IlanQuery: TClSqlQuery;</div><div>&nbsp; ResimPanel : TclProPanel;</div><div><br></div><div><br></div><div>void CreateIlanListView;</div><div>{</div><div>&nbsp; IlanListView = IlanForm.AddNewProListView(IlanForm, 'IlanListView');</div><div>&nbsp; IlanListView.Height = IlanForm.clHeight - TopPanel.Height - HorzPanel.Height;</div><div>&nbsp; IlanListView.Width = 500;</div><div>&nbsp; IlanListView.Align = alClient;</div><div>&nbsp; IlanListView.clProSettings.BorderColor = clAlphaColor.clHexToColor('#070807');</div><div>&nbsp; IlanListView.ListType = 'Cart';</div><div>&nbsp; IlanListView.clProSettings.ItemSpace = 50;</div><div>&nbsp; IlanListView.clProSettings.ItemHeight = 400;</div><div>&nbsp; &nbsp;IlanListView.clProSettings.ItemWidth = 800;</div><div>&nbsp; IlanListView.clProSettings.BorderWidth = 1;</div><div>&nbsp; IlanListView.SetclProSettings(IlanListView.clProSettings);</div><div>&nbsp; IlansearchEdit.TargetListView = IlanListView;</div><div>}</div><div><br></div><div>void CreateListDesignerPanel;</div><div>{</div><div>&nbsp; IlanDesignerPanel = IlanForm.AddNewProListViewDesignerPanel(IlanListView, 'IlanDesignerPanel');</div><div>&nbsp; IlanDesignerPanel.Align = alClient;</div><div>&nbsp; IlanDesignerPanel.Height = 400;</div><div>&nbsp; IlanDesignerPanel.Width = 700;</div><div>&nbsp; IlanDesignerPanel.Margins.Top = 5;</div><div>&nbsp; IlanDesignerPanel.Margins.Bottom = 5;</div><div>&nbsp; IlanDesignerPanel.Margins.Right = 5;</div><div>&nbsp; IlanDesignerPanel.Margins.Left = 5;</div><div>&nbsp; IlanDesignerPanel.clProSettings.RoundHeight = 10;</div><div>&nbsp; IlanDesignerPanel.clProSettings.RoundWidth = 10;</div><div>&nbsp; IlanListView.SetDesignerPanel(IlanDesignerPanel);</div><div>&nbsp; IlanDesignerPanel.SetclProSettings(IlanDesignerPanel.clProSettings);</div><div>}</div><div><br></div><div><br></div><div>void ResimEkle;</div><div>{</div><div>&nbsp; ResimPanel = IlanForm.AddNewProPanel(IlanDesignerPanel, 'ResimPanel');</div><div>&nbsp; ResimPanel.Align = alClient;</div><div>&nbsp; ResimPanel.Width = IlanDesignerPanel.Width;</div><div>&nbsp; ResimPanel.Height = 100;</div><div>&nbsp; ResimPanel.Margins.Top = 0;</div><div>&nbsp; ResimPanel.Margins.Bottom = 0;</div><div>&nbsp; ResimPanel.Margins.Left = 0;</div><div>&nbsp; ResimPanel.Margins.Right = 0;</div><div>&nbsp; ResimPanel.clProSettings.RoundHeight = 10;</div><div>&nbsp; ResimPanel.clProSettings.RoundWidth = 10;</div><div>&nbsp; ResimPanel.clProSettings.IsTransparent = False;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div><br></div><div>&nbsp; ResimPanel.SetclProSettings(ResimPanel.clProSettings);</div><div><br></div><div>&nbsp; IlanPicture = IlanForm.AddNewProImage(ResimPanel, 'IlanPicture');</div><div>&nbsp; IlanDesignerPanel.AddPanelObject(IlanPicture, clImage1);</div><div>&nbsp; IlanPicture.Align = alClient;</div><div>&nbsp; IlanPicture.clProSettings.IsFill = True;</div><div>&nbsp; IlanPicture.clProSettings.RoundHeight = 10;</div><div>&nbsp; IlanPicture.clProSettings.RoundWidth = 10;</div><div>&nbsp; IlanPicture.clProSettings.IsRound = True; &nbsp;</div><div>&nbsp; IlanPicture.Height = ResimPanel.Height;</div><div>&nbsp; IlanPicture.Width = ResimPanel.Width;</div><div>&nbsp;&nbsp;</div><div>&nbsp; IlanPicture.clProSettings.PictureAutoFit = True;</div><div>&nbsp; IlanPicture.clProSettings.PictureStretch = True;</div><div>&nbsp; IlanPicture.SetclProSettings(IlanPicture.clProSettings);</div><div>}</div><div><br></div><div><br></div><div>void TarihEkle;</div><div>{</div><div>&nbsp; IlanTarih = IlanForm.AddNewProLabel(IlanDesignerPanel, 'IlanTarih', 'Tarih');</div><div>&nbsp; IlanDesignerPanel.AddPanelObject(IlanTarih, clText3);</div><div>&nbsp; IlanTarih.Align = alBottom;</div><div>&nbsp; IlanTarih.Margins.Bottom =5;</div><div>&nbsp; IlanTarih.Properties.AutoSize = True;</div><div>&nbsp; IlanTarih.clProSettings.FontSize = 14;</div><div>&nbsp; IlanTarih.SetclProSettings(IlanTarih.clProSettings);</div><div>}</div><div><br></div><div>void KonumEkle;</div><div>{</div><div>&nbsp; IlanKonum = IlanForm.AddNewProLabel(IlanDesignerPanel, 'IlanKonum', 'Konum');</div><div>&nbsp; IlanDesignerPanel.AddPanelObject(IlanKonum, clText2);</div><div>&nbsp; IlanKonum.Align = alBottom;</div><div>&nbsp; IlanKonum.Properties.AutoSize = True;</div><div>&nbsp; IlanKonum.clProSettings.FontSize = 14;</div><div>&nbsp; IlanKonum.Margins.Bottom = 5;</div><div><br></div><div>&nbsp; IlanKonum.SetclProSettings(IlanKonum.clProSettings);</div><div>}</div><div><br></div><div>void AdresEkle;</div><div>{</div><div>&nbsp; IlanAdres = IlanForm.AddNewProLabel(IlanDesignerPanel, 'IlanAdres', 'Adres');</div><div>&nbsp; IlanDesignerPanel.AddPanelObject(IlanAdres, clText);</div><div>&nbsp; IlanAdres.Align = alBottom;</div><div>&nbsp; IlanAdres.Margins.Bottom =5;</div><div>&nbsp; IlanAdres.Properties.AutoSize = True;</div><div>&nbsp; IlanAdres.clProSettings.FontSize = 14;</div><div>&nbsp; IlanAdres.SetclProSettings(IlanAdres.clProSettings);</div><div>}</div><div><br></div><div><br></div><div>void FiyatEkle;</div><div>{</div><div>&nbsp; IlanPrice = IlanForm.AddNewProLabel(IlanDesignerPanel, 'IlanPrice', 'Fiyat');</div><div>&nbsp; IlanDesignerPanel.AddPanelObject(IlanPrice, clText4);</div><div>&nbsp; IlanPrice.Align = alMostBottom;</div><div>&nbsp; IlanPrice.Properties.AutoSize = True;</div><div>&nbsp; IlanPrice.Margins.Bottom =5;</div><div>&nbsp; IlanPrice.clProSettings.FontSize = 14;</div><div>&nbsp; IlanPrice.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; IlanPrice.SetclProSettings(IlanPrice.clProSettings);</div><div>}</div><div><br></div><div>void PuanEkle;</div><div>{</div><div>&nbsp; IlanPuan = IlanForm.AddNewProLabel(IlanDesignerPanel, 'IlanPuan', 'Puan');</div><div>&nbsp; IlanDesignerPanel.AddPanelObject(IlanPuan, clText5);</div><div>&nbsp; IlanPuan.Align = alBottom;</div><div>&nbsp; IlanPuan.Margins.Top = 5;</div><div>&nbsp; IlanPuan.Properties.AutoSize = True;</div><div>&nbsp; IlanPuan.clProSettings.FontSize = 14;</div><div>&nbsp; IlanPuan.SetclProSettings(IlanPuan.clProSettings);</div><div>}</div><div><br></div><div><br></div><div>void LoadIlanlarFromDatabase(CategoryFilter: string);</div><div>{</div><div>&nbsp; try</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; IlanQuery.Connection = Clomosy.DBSQLServerConnection;</div><div>&nbsp; &nbsp; if (CategoryFilter == '')&nbsp;</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; IlanQuery.SQL.Text = 'SELECT ResimURL as IlanPicture, Adres as IlanAdres, Konum as IlanKonum, Tarih as IlanTarih, &nbsp;CONCAT(Fiyat, '' TL gece'') as IlanPrice, CONCAT(Puan, ''/5'') as IlanPuan &nbsp;FROM Ilanlar';</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; IlanQuery.SQL.Text = 'SELECT ResimURL as IlanPicture, Adres as IlanAdres, Konum as IlanKonum, Tarih as IlanTarih, &nbsp;CONCAT(Fiyat, '' TL gece'') as IlanPrice, CONCAT(Puan, ''/5'') as IlanPuan &nbsp;FROM Ilanlar WHERE Kategori = ' + QuotedStr(CategoryFilter);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; IlanQuery.Open;</div><div>&nbsp; &nbsp; if (IlanQuery.Found)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; IlanListView.ClLoadProListViewDataFromDataset(IlanQuery);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Kayıt Bulunamadı!');</div><div>&nbsp; &nbsp; }&nbsp;</div><div>&nbsp; finally</div><div>&nbsp; &nbsp; IlanQuery.Close;</div><div>&nbsp; &nbsp; IlanQuery.Free;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div><br></div><div>void CategoryButtonClick;</div><div>{</div><div>&nbsp; LoadIlanlarFromDatabase(TclProButton(IlanForm.Clsender).Hint);</div><div>}</div><div><br></div><div><br></div><div>{</div><div>&nbsp; IlanForm = TclForm.Create(Self);</div><div>&nbsp;&nbsp;</div><div>&nbsp; IlanQuery = TClSqlQuery.Create(nil);</div><div>&nbsp; Clomosy.DBSQLServerConnect('SQL Server', '192.168.68.106', 'SA', 'reallyStrongPwd123', 'Clomosy', 1433);</div><div><br></div><div>&nbsp; TopPanel = IlanForm.AddNewProPanel(IlanForm, 'TopPanel');</div><div>&nbsp; TopPanel.Align = alTop;</div><div>&nbsp; TopPanel.Height = 150;</div><div>&nbsp; TopPanel.Width = 300;</div><div>&nbsp; TopPanel.Margins.Top = 10;</div><div>&nbsp; TopPanel.clProSettings.BorderColor = clAlphaColor.clHexToColor('#070807');</div><div>&nbsp; TopPanel.clProSettings.BorderWidth = 1;</div><div>&nbsp; TopPanel.clProSettings.IsTransparent = True;</div><div>&nbsp; TopPanel.SetclProSettings(TopPanel.clProSettings);</div><div><br></div><div>&nbsp; // Arama Paneli oluşturma</div><div>&nbsp; IlansearchPanel = IlanForm.AddNewProPanel(TopPanel, 'IlansearchPanel');</div><div>&nbsp; IlansearchPanel.Align = alTop;</div><div>&nbsp; IlansearchPanel.Height = 60;</div><div>&nbsp; IlansearchPanel.Width = 300;</div><div>&nbsp; IlansearchPanel.Margins.Left = 20;</div><div>&nbsp; IlansearchPanel.Margins.Right = 20;</div><div>&nbsp; IlansearchPanel.Margins.Top = 10;</div><div>&nbsp; IlansearchPanel.clProSettings.RoundHeight = 30;</div><div>&nbsp; IlansearchPanel.clProSettings.RoundWidth = 30;</div><div>&nbsp; IlansearchPanel.clProSettings.BorderColor = clAlphaColor.clHexToColor('#070807');</div><div>&nbsp; IlansearchPanel.clProSettings.BorderWidth = 1;</div><div>&nbsp; IlansearchPanel.clProSettings.IsTransparent = True;</div><div>&nbsp; IlansearchPanel.SetclProSettings(IlansearchPanel.clProSettings);</div><div><br></div><div>&nbsp; // Arama Edit alanı oluşturma</div><div>&nbsp; IlansearchEdit = IlanForm.AddNewProSearchEdit(IlansearchPanel, 'IlansearchEdit', 'Nereye gitmek istiyorsunuz?');</div><div>&nbsp; IlansearchEdit.Align = alClient;</div><div>&nbsp; IlansearchEdit.Margins.Top = 15;</div><div>&nbsp; IlansearchEdit.Margins.Left = 15;</div><div>&nbsp; IlansearchEdit.Margins.Right = 15;</div><div>&nbsp; IlansearchEdit.Margins.Bottom = 10;</div><div>&nbsp; IlansearchEdit.Height = 35;</div><div>&nbsp; IlansearchEdit.SetclProSettings(IlansearchEdit.clProSettings);</div><div><br></div><div>&nbsp; HorzPanel = IlanForm.AddNewProPanel(TopPanel, 'HorzPanel');</div><div>&nbsp; HorzPanel.Align = alTop;</div><div>&nbsp; HorzPanel.Height = 80; // Yüksekliği arttırarak buton ve etiket için alan bırakıyoruz</div><div>&nbsp; HorzPanel.Width = 70;</div><div>&nbsp; HorzPanel.Margins.Top = 10;</div><div>&nbsp; HorzPanel.clProSettings.IsTransparent = True;</div><div>&nbsp; HorzPanel.SetclProSettings(HorzPanel.clProSettings);</div><div><br></div><div>&nbsp; // HorizontalScrollBox oluşturma</div><div>&nbsp; CategoryScrollBox = IlanForm.AddNewHorzScrollBox(HorzPanel, 'CategoryScrollBox');</div><div>&nbsp; CategoryScrollBox.Align = alClient;</div><div>&nbsp; CategoryScrollBox.Height = 100; &nbsp;// Yüksekliği arttırarak butonun altına label eklemek için alan bırakıyoruz</div><div>&nbsp; CategoryScrollBox.Width = 300;</div><div><br></div><div>&nbsp; // Resim URL'lerinin ve Kategori İsimlerinin tanımlanması</div><div>&nbsp; ImageURLs&#091;0&#093; = '<a href="https://i.imgur.com/rQOm9Uv.png" target="_blank" rel="nofollow">https://i.imgur.com/rQOm9Uv.png</a>';</div><div>&nbsp; ImageURLs&#091;1&#093; = '<a href="https://i.imgur.com/mOSXbt0.png" target="_blank" rel="nofollow">https://i.imgur.com/mOSXbt0.png</a>';</div><div>&nbsp; ImageURLs&#091;2&#093; = '<a href="https://i.imgur.com/i1YL3D3.png" target="_blank" rel="nofollow">https://i.imgur.com/i1YL3D3.png</a>';</div><div>&nbsp; ImageURLs&#091;3&#093; = '<a href="https://i.imgur.com/XGpNyoc.png" target="_blank" rel="nofollow">https://i.imgur.com/XGpNyoc.png</a>';</div><div>&nbsp; ImageURLs&#091;4&#093; = '<a href="https://i.imgur.com/rrL8Yhn.png" target="_blank" rel="nofollow">https://i.imgur.com/rrL8Yhn.png</a>';</div><div>&nbsp; ImageURLs&#091;5&#093; = '<a href="https://i.imgur.com/C2wBjUE.png" target="_blank" rel="nofollow">https://i.imgur.com/C2wBjUE.png</a>';</div><div>&nbsp; ImageURLs&#091;6&#093; = '<a href="https://i.imgur.com/bkxANR8.png" target="_blank" rel="nofollow">https://i.imgur.com/bkxANR8.png</a>';</div><div>&nbsp; ImageURLs&#091;7&#093; = '<a href="https://i.imgur.com/QZ8vfPg.png" target="_blank" rel="nofollow">https://i.imgur.com/QZ8vfPg.png</a>';</div><div>&nbsp; ImageURLs&#091;8&#093; = '<a href="https://i.imgur.com/PSbHzMr.png" target="_blank" rel="nofollow">https://i.imgur.com/PSbHzMr.png</a>';</div><div>&nbsp; ImageURLs&#091;9&#093; = '<a href="https://i.imgur.com/0Otuk1o.png" target="_blank" rel="nofollow">https://i.imgur.com/0Otuk1o.png</a>';</div><div>&nbsp; ImageURLs&#091;10&#093; = '<a href="https://i.imgur.com/FY0fFLU.png" target="_blank" rel="nofollow">https://i.imgur.com/FY0fFLU.png</a>';</div><div>&nbsp; ImageURLs&#091;11&#093; = '<a href="https://i.imgur.com/jMvyQaW.png" target="_blank" rel="nofollow">https://i.imgur.com/jMvyQaW.png</a>';</div><div><br></div><div>&nbsp; CategoryNames&#091;0&#093; = 'Efsaneler';</div><div>&nbsp; CategoryNames&#091;1&#093; = 'Muhteşem havuzlar';</div><div>&nbsp; CategoryNames&#091;2&#093; = 'Denize sıfır';</div><div>&nbsp; CategoryNames&#091;3&#093; = 'Üçgen evler';</div><div>&nbsp; CategoryNames&#091;4&#093; = 'Tasarım';</div><div>&nbsp; CategoryNames&#091;5&#093; = 'Kırsal';</div><div>&nbsp; CategoryNames&#091;6&#093; = 'Güzel manzaralar';</div><div>&nbsp; CategoryNames&#091;7&#093; = 'Küçük evler';</div><div>&nbsp; CategoryNames&#091;8&#093; = 'Tekneler';</div><div>&nbsp; CategoryNames&#091;9&#093; = 'Şatolar';</div><div>&nbsp; CategoryNames&#091;10&#093; = 'Göl yakınında';</div><div>&nbsp; CategoryNames&#091;11&#093; = 'Olağanüstü';</div><div><br></div><div>&nbsp; for counter = 0 to 11&nbsp;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; // Panel oluşturma</div><div>&nbsp; &nbsp; ButtonPanel = IlanForm.AddNewProPanel(CategoryScrollBox, 'ButtonPanel' + IntToStr(counter));</div><div>&nbsp; &nbsp; ButtonPanel.Align = alLeft;</div><div>&nbsp; &nbsp; ButtonPanel.Margins.Right = 5;</div><div>&nbsp; &nbsp; ButtonPanel.Margins.Top = 2;</div><div>&nbsp; &nbsp; ButtonPanel.Margins.Bottom = 2;</div><div>&nbsp; &nbsp; ButtonPanel.Width = 90;</div><div>&nbsp; &nbsp; ButtonPanel.Height = 180;</div><div>&nbsp; &nbsp; ButtonPanel.clProSettings.IsTransparent = True;</div><div>&nbsp; &nbsp; ButtonPanel.SetclProSettings(ButtonPanel.clProSettings);</div><div><br></div><div>&nbsp; &nbsp; // Buton oluşturma</div><div>&nbsp; &nbsp; CategoryButton = IlanForm.AddNewProButton(ButtonPanel, 'CategoryButton' + IntToStr(counter), '');</div><div>&nbsp; &nbsp; CategoryButton.Align = alTop;</div><div>&nbsp; &nbsp; CategoryButton.Width = 38;</div><div>&nbsp; &nbsp; CategoryButton.Height = 38;</div><div>&nbsp; &nbsp; CategoryButton.clProSettings.PictureSource = ImageURLs&#091;counter&#093;;</div><div>&nbsp; &nbsp; CategoryButton.clProSettings.PictureAutoFit = True;</div><div>&nbsp; &nbsp; CategoryButton.clProSettings.PictureStretch = False;</div><div>&nbsp; &nbsp; CategoryButton.clProSettings.IsTransparent = True;</div><div>&nbsp; &nbsp; CategoryButton.Padding.Top = 30;</div><div>&nbsp; &nbsp; CategoryButton.Padding.Right = 30;</div><div>&nbsp; &nbsp; CategoryButton.Padding.Bottom = 30;</div><div>&nbsp; &nbsp; CategoryButton.Padding.Left = 30;</div><div>&nbsp; &nbsp; CategoryButton.Hint = CategoryNames&#091;counter&#093;;</div><div>&nbsp; &nbsp; CategoryButton.SetclProSettings(CategoryButton.clProSettings);</div><div>&nbsp; &nbsp; IlanForm.AddNewEvent(CategoryButton, tbeOnClick, 'CategoryButtonClick');</div><div><br></div><div><br></div><div>&nbsp; &nbsp; // Label oluşturma</div><div>&nbsp; &nbsp; CategoryLabel = IlanForm.AddNewProLabel(ButtonPanel, 'CategoryLabel' + IntToStr(counter), CategoryNames&#091;counter&#093;);</div><div>&nbsp; &nbsp; CategoryLabel.Align = alBottom;</div><div>&nbsp; &nbsp; CategoryLabel.Margins.Top = 20;</div><div>&nbsp; &nbsp; CategoryLabel.Margins.Bottom = 10;</div><div>&nbsp; &nbsp; CategoryLabel.Width = 100;</div><div>&nbsp; &nbsp; CategoryLabel.Height = 20;</div><div>&nbsp; &nbsp; CategoryLabel.clProSettings.FontSize = 10;</div><div>&nbsp; &nbsp; CategoryLabel.clProSettings.IsTransparent = True;</div><div>&nbsp; &nbsp; CategoryLabel.clProSettings.FontHorzAlign = palCenter;</div><div>&nbsp; &nbsp; CategoryLabel.Padding.Top = 2; &nbsp; &nbsp;// Üst padding</div><div>&nbsp; &nbsp; CategoryLabel.Padding.Right = 2; &nbsp;// Sağ padding</div><div>&nbsp; &nbsp; CategoryLabel.Padding.Bottom = 2; // Alt padding</div><div>&nbsp; &nbsp; CategoryLabel.Padding.Left = 2; &nbsp; // Sol padding</div><div>&nbsp; &nbsp; CategoryLabel.SetclProSettings(CategoryLabel.clProSettings);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; }</div><div><br></div><div>&nbsp; CreateIlanListView;</div><div>&nbsp; CreateListDesignerPanel;</div><div>&nbsp;&nbsp;</div><div>&nbsp; ResimEkle;</div><div>&nbsp; AdresEkle;</div><div>&nbsp; KonumEkle;</div><div>&nbsp; TarihEkle;</div><div>&nbsp; FiyatEkle;</div><div><br></div><div>&nbsp; PuanEkle;</div><div>&nbsp; LoadIlanlarFromDatabase('');</div><div><br></div><div>&nbsp; // Formu çalıştırma</div><div>&nbsp; IlanForm.Run;</div><div>}&nbsp;</div><div><br></div><div><b><font color="#990033">KODUN TAM HALİ</font></b></div>]]>
   </description>
   <pubDate>Wed, 07 Aug 2024 21:55:01 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=838&amp;PID=1548#1548</guid>
  </item> 
  <item>
   <title><![CDATA[ScrollBox buton : void CategoryButtonClick;{ Loa...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=838&amp;PID=1547#1547</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=205">cafer kosker</a><br /><strong>Konu:</strong> 838<br /><strong>Gönderim Zamanı:</strong> 07&nbsp;Ağustos&nbsp;2024 Saat 21:53<br /><br /><div>void CategoryButtonClick;</div><div>{</div><div>&nbsp; LoadIlanlarFromDatabase(TclProButton(IlanForm.Clsender).Hint);</div><div>}</div><div><span style="font-size: medium;"><b><font color="#990000">scroolboxtaki butonlar a tıklandığında mesela denize sıfır butonuna tıkladığımda sql veritabanında Kategorisi Denize sıfır olan tüm ilanları getirsin istiyorum </font><font color="#0000cc">(Bunu categoryfilter la yapıyorum fakat&nbsp;</font></b></span><b><font color="#0000cc">CategoryButtonClick VOİD İ hata veriyor)</font><font color="#990000">&nbsp;normalde hata vermiyor uygulamaya girdikten sonra butona basınca uygulama donuyordu şimdi o kodu sildim başka bir kod yazdım syntax hatası veriyor uygulamaya hiç girmiyor.</font></b></div><div>(<a href="https://i.imgur.com/PLIb7C7.jpeg" target="_blank" rel="nofollow">https://i.imgur.com/PLIb7C7.jpeg</a>) Çalışır haldeki görüntüsü.</div>]]>
   </description>
   <pubDate>Wed, 07 Aug 2024 21:53:41 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=838&amp;PID=1547#1547</guid>
  </item> 
 </channel>
</rss>