<?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 : label ekleme</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : label ekleme]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 20:03:50 +0000</pubDate>
  <lastBuildDate>Tue, 10 Sep 2024 14:53:29 +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=929</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[label ekleme : Merhaba Nursena,LoadProductsToPage...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=929&amp;PID=1807#1807</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=142">BilalCndn</a><br /><strong>Konu:</strong> 929<br /><strong>Gönderim Zamanı:</strong> 10&nbsp;Eylül&nbsp;2024 Saat 14:53<br /><br />Merhaba Nursena,<div><br></div><div>LoadProductsToPage procedure'ü içinde var kısmında local bir şekilde PriceLabel ve NameLabel TclLabel nesnesi olarak tanımlanmış. Global olarak TclProLabel nesnelerini doğru tanımlamışsın. Yapılan local tanımlamayı silersen sorunun çözülecektir.</div><div><br></div><div>İyi çalışmalar dilerim.</div>]]>
   </description>
   <pubDate>Tue, 10 Sep 2024 14:53:29 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=929&amp;PID=1807#1807</guid>
  </item> 
  <item>
   <title><![CDATA[label ekleme : te&#351;ekk&#252;r ederim d&#252;zelttim ancak...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=929&amp;PID=1806#1806</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=226">kacar.nursena</a><br /><strong>Konu:</strong> 929<br /><strong>Gönderim Zamanı:</strong> 10&nbsp;Eylül&nbsp;2024 Saat 13:41<br /><br />teşekkür ederim düzelttim ancak bu sefer de bu hatayı alıyorum :<span style=": rgb255, 255, 254; font-family: C&#111;nsolas, C&#111;nsolas, &quot;Courier New&quot;, monospace; font-size: 12px; white-space: pre;">Unknown member identifier: </span><span style=": rgb255, 255, 254; font-family: C&#111;nsolas, C&#111;nsolas, &quot;Courier New&quot;, monospace; font-size: 12px; white-space: pre; color: rgb163, 21, 21;">'clProSettings'</span><span style=": rgb255, 255, 254; font-family: C&#111;nsolas, C&#111;nsolas, &quot;Courier New&quot;, monospace; font-size: 12px; white-space: pre;">.</span><div style=": rgb255, 255, 254; font-family: C&#111;nsolas, C&#111;nsolas, &quot;Courier New&quot;, monospace; font-size: 12px; line-height: 16px; white-space: pre;"><div>Source position: <span style="color: #098658;">72</span>,<span style="color: #098658;">34</span></div><div>Clomosy Build : <span style="color: #098658;">20240709.111531</span></div></div>]]>
   </description>
   <pubDate>Tue, 10 Sep 2024 13:41:57 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=929&amp;PID=1806#1806</guid>
  </item> 
  <item>
   <title><![CDATA[label ekleme : Merhaba Nursena,AddNewProLabel...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=929&amp;PID=1802#1802</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=142">BilalCndn</a><br /><strong>Konu:</strong> 929<br /><strong>Gönderim Zamanı:</strong> 10&nbsp;Eylül&nbsp;2024 Saat 13:18<br /><br />Merhaba Nursena,<div><br></div><div>AddNewProLabel metodu TclForm nesnesinin bir metodur. Form isminizin mainform olduğunu görüyorum. Doğru kullanımı aşağıdaki gibidir.</div><div><br></div><div><span style="font-family: C&#111;nsolas, C&#111;nsolas, &quot;Courier New&quot;, monospace; font-size: 12px; white-space: pre; : rgb251, 251, 253;">PriceLabel := mainform.AddNewProLabel(AtistirmaliklarPage,</span><span style="font-family: C&#111;nsolas, C&#111;nsolas, &quot;Courier New&quot;, monospace; font-size: 12px; white-space: pre; : rgb251, 251, 253; color: rgb163, 21, 21;">'PriceLabel'</span><span style="font-family: C&#111;nsolas, C&#111;nsolas, &quot;Courier New&quot;, monospace; font-size: 12px; white-space: pre; : rgb251, 251, 253;">+IntToStr(i),</span><span style="font-family: C&#111;nsolas, C&#111;nsolas, &quot;Courier New&quot;, monospace; font-size: 12px; white-space: pre; : rgb251, 251, 253; color: rgb163, 21, 21;">''</span><span style="font-family: C&#111;nsolas, C&#111;nsolas, &quot;Courier New&quot;, monospace; font-size: 12px; white-space: pre; : rgb251, 251, 253;">);</span></div><div><span style="font-family: C&#111;nsolas, C&#111;nsolas, &quot;Courier New&quot;, monospace; font-size: 12px; white-space: pre; : rgb251, 251, 253;"><br></span></div><div>İyi çalışmalar dilerim.</div>]]>
   </description>
   <pubDate>Tue, 10 Sep 2024 13:18:38 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=929&amp;PID=1802#1802</guid>
  </item> 
  <item>
   <title><![CDATA[label ekleme : kodda panelelabel eklemeye &#231;al&#305;&#351;&#305;yorum...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=929&amp;PID=1801#1801</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=226">kacar.nursena</a><br /><strong>Konu:</strong> 929<br /><strong>Gönderim Zamanı:</strong> 10&nbsp;Eylül&nbsp;2024 Saat 10:27<br /><br />kodda panelelabel eklemeye çalışıyorum ancak hata alıyorum:<div><div style=": rgb255, 255, 254; font-family: C&#111;nsolas, C&#111;nsolas, &quot;Courier New&quot;, monospace; font-size: 12px; line-height: 16px; white-space: pre;"><div><span style="color: #0000ff;">var</span></div><div>&nbsp; mainform: TCLForm;</div><div>&nbsp; AtistirmaliklarPage: TclProPanel;</div><div>&nbsp; Button: TClProButton;</div><div>&nbsp; ProductID: Integer;</div><div>&nbsp; ProductName: string;</div><div>&nbsp; ProductPrice: Double;</div><div>&nbsp; ProductImageURL: string;</div><div>&nbsp; ProductQuery: TclSqlQuery;</div><div>&nbsp; PriceLabel,NameLabel:TClProLabel;</div><div>&nbsp; i:integer;</div><div><span style="color: #0000ff;">procedure</span> SetupDatabaseConnection;</div><div><span style="color: #0000ff;">begin</span></div><div>&nbsp; <span style="color: #0000ff;">try</span></div><div>&nbsp; &nbsp; Clomosy.DBSQLServerConnect(<span style="color: #a31515;">'SQL Server'</span>, <span style="color: #a31515;">'clomosybakkal.database.windows.net'</span>, <span style="color: #a31515;">'nrs'</span>, <span style="color: #a31515;">'n.12345678'</span>, <span style="color: #a31515;">'Bakkal'</span>, <span style="color: #098658;">1433</span>);</div><div>&nbsp; &nbsp; ShowMessage(<span style="color: #a31515;">'Veritabanı bağlantısı başarıyla kuruldu!'</span>);</div><div>&nbsp; <span style="color: #0000ff;">except</span></div><div>&nbsp; &nbsp; ShowMessage(<span style="color: #a31515;">'Veritabanı bağlantısı kurulamadı: '</span> );</div><div>&nbsp; <span style="color: #0000ff;">end</span>;</div><div><span style="color: #0000ff;">end</span>;</div><br><div><span style="color: #0000ff;">procedure</span> LoadProductsToPage;</div><div><span style="color: #0000ff;">var</span></div><div>&nbsp; PriceLabel, NameLabel: TClLabel; &nbsp;<span style="color: #008000;">// Fiyat ve ürün adını göstermek için label eklendi</span></div><div><span style="color: #0000ff;">begin</span></div><div>&nbsp; ProductQuery := TclSqlQuery.Create(nil);</div><div>&nbsp; <span style="color: #0000ff;">try</span></div><div>&nbsp; &nbsp; ProductQuery.Connection := Clomosy.DBSQLServerConnection;</div><div>&nbsp; &nbsp; ProductQuery.SQL.Text := <span style="color: #a31515;">'SELECT ProductID, ProductName, ProductPrice, ProductImageURL FROM Products'</span>; &nbsp;</div><div>&nbsp; &nbsp; <span style="color: #0000ff;">try</span></div><div>&nbsp; &nbsp; &nbsp; ProductQuery.Open;</div><div>&nbsp; &nbsp; <span style="color: #0000ff;">except</span></div><div>&nbsp; &nbsp; &nbsp; ShowMessage(<span style="color: #a31515;">'Ürün sorgusu açılamadı: '</span> );</div><div>&nbsp; &nbsp; <span style="color: #0000ff;">end</span>;</div><div>&nbsp; &nbsp; </div><div>&nbsp; &nbsp; <span style="color: #0000ff;">while</span> <span style="color: #0000ff;">not</span> ProductQuery.Eof <span style="color: #0000ff;">do</span></div><div>&nbsp; &nbsp; <span style="color: #0000ff;">begin</span></div><div>&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">try</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductID := ProductQuery.FieldByName(<span style="color: #a31515;">'ProductID'</span>).AsInteger;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductName := ProductQuery.FieldByName(<span style="color: #a31515;">'ProductName'</span>).AsString;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductPrice := ProductQuery.FieldByName(<span style="color: #a31515;">'ProductPrice'</span>).AsFloat;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductImageURL := ProductQuery.FieldByName(<span style="color: #a31515;">'ProductImageURL'</span>).AsString;</div><br><div>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">// Buton oluştur ve yapılandır </span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; Button := mainform.AddNewProButton(AtistirmaliklarPage, <span style="color: #a31515;">'Button'</span>+IntToStr(i), <span style="color: #a31515;">''</span>);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">try</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i := i + <span style="color: #098658;">1</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Width := <span style="color: #098658;">120</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Height := <span style="color: #098658;">120</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">if</span> Assigned(mainform) <span style="color: #0000ff;">then</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mainform.SetImage(Button, ProductImageURL); </div><br><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">// Diğer buton özelliklerini ayarla</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Margins.Bottom := <span style="color: #098658;">400</span> - i * <span style="color: #098658;">300</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Margins.Right := <span style="color: #098658;">100</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.RoundHeight := <span style="color: #098658;">10</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.RoundWidth := <span style="color: #098658;">10</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.FontVertAlign := palCenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.FontHorzAlign := palCenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.TextSettings.Font.Style := &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.BorderColor := clAlphaColor.clHexToColor(<span style="color: #a31515;">'#d1d1d1'</span>);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.BorderWidth := <span style="color: #098658;">1</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.SetclProSettings(Button.clProSettings);</div><br><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">// Create and configure the price label</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000;">// PriceLabel := TClProLabel.Create(AtistirmaliklarPage);</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel := AtistirmaliklarPage.AddNewProLabel(AtistirmaliklarPage,<span style="color: #a31515;">'PriceLabel'</span>+IntToStr(i),<span style="color: #a31515;">''</span>);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.Margins.Bottom := Button.Margins.Bottom + Button.Height + <span style="color: #098658;">10</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.Margins.Right := Button.Margins.Right;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.Width := Button.Width;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.Text := <span style="color: #a31515;">'Fiyat: '</span> + FloatToStr(ProductPrice) + <span style="color: #a31515;">' TL'</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.clProSettings.TextSettings.Font.Style := &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.clProSettings.FontColor := clAlphaColor.clHexToColor(<span style="color: #a31515;">'#000000'</span>);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.FontVertAlign := palCenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.FontHorzAlign := palCenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.SetclProSettings(PriceLabel.clProSettings);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; </div><div>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">// Create and configure the name label</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">//NameLabel := TClProLabel.Create(AtistirmaliklarPage);</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000;">// NameLabel.Parent := AtistirmaliklarPage;</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel := MyForm.AddNewProLabel(AtistirmaliklarPage,<span style="color: #a31515;">'NameLabel'</span>+IntToStr(i),<span style="color: #a31515;">''</span>);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.Top := PriceLabel.Top + PriceLabel.Height + <span style="color: #098658;">5</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.Margins.Right := Button.Margins.Right;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.Width := Button.Width;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.Text := ProductName;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.clProSettings.TextSettings.Font.Style := &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.clProSettings.FontColor := clAlphaColor.clHexToColor(<span style="color: #a31515;">'#000000'</span>);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.FontVertAlign := palCenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.FontHorzAlign := palCenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.SetclProSettings(NameLabel.clProSettings);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">except</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowMessage(<span style="color: #a31515;">'Buton oluşturulurken hata: '</span> );</div><div>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">end</span>;</div><br><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductQuery.Next;</div><div>&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">except</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage(<span style="color: #a31515;">'Ürün bilgileri işlenirken hata: '</span> );</div><div>&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">end</span>;</div><div>&nbsp; &nbsp; <span style="color: #0000ff;">end</span>;</div><div>&nbsp; <span style="color: #0000ff;">finally</span></div><div>&nbsp; &nbsp; ProductQuery.Close;</div><div>&nbsp; &nbsp; ProductQuery.Free;</div><div>&nbsp; <span style="color: #0000ff;">end</span>;</div><div><span style="color: #0000ff;">end</span>;</div><div><span style="color: #0000ff;">begin</span></div><div>&nbsp;mainform := TCLForm.Create(self);</div><div>&nbsp;mainform.Run;</div><div>&nbsp;<span style="color: #0000ff;">end</span>;</div><br><div>--------------------------------------------------------------------</div><div>Unknown member method: <span style="color: #a31515;">'AddNewProLabel'</span>.</div><div>Source position: <span style="color: #098658;">67</span>,<span style="color: #098658;">106</span></div><div>Clomosy Build : <span style="color: #098658;">20240709.111531</span></div><div>--------------------------------------------------------------------</div><div>LastUnitName:AtistirmaliklarPage</div><div><span style="color: #0000ff;">var</span></div><div>&nbsp; mainform: TCLForm;</div><div>&nbsp; AtistirmaliklarPage: TclProPanel;</div><div>&nbsp; Button: TClProButton;</div><div>&nbsp; ProductID: Integer;</div><div>&nbsp; ProductName: string;</div><div>&nbsp; ProductPrice: Double;</div><div>&nbsp; ProductImageURL: string;</div><div>&nbsp; ProductQuery: TclSqlQuery;</div><div>&nbsp; PriceLabel,NameLabel:TClProLabel;</div><div>&nbsp; i:integer;</div><div><span style="color: #0000ff;">procedure</span> SetupDatabaseConnection;</div><div><span style="color: #0000ff;">begin</span></div><div>&nbsp; <span style="color: #0000ff;">try</span></div><div>&nbsp; &nbsp; Clomosy.DBSQLServerConnect(<span style="color: #a31515;">'SQL Server'</span>, <span style="color: #a31515;">'clomosybakkal.database.windows.net'</span>, <span style="color: #a31515;">'nrs'</span>, <span style="color: #a31515;">'n.12345678'</span>, <span style="color: #a31515;">'Bakkal'</span>, <span style="color: #098658;">1433</span>);</div><div>&nbsp; &nbsp; ShowMessage(<span style="color: #a31515;">'Veritabanı bağlantısı başarıyla kuruldu!'</span>);</div><div>&nbsp; <span style="color: #0000ff;">except</span></div><div>&nbsp; &nbsp; ShowMessage(<span style="color: #a31515;">'Veritabanı bağlantısı kurulamadı: '</span> );</div><div>&nbsp; <span style="color: #0000ff;">end</span>;</div><div><span style="color: #0000ff;">end</span>;</div><br><div><span style="color: #0000ff;">procedure</span> LoadProductsToPage;</div><div><span style="color: #0000ff;">var</span></div><div>&nbsp; PriceLabel, NameLabel: TClLabel; &nbsp;<span style="color: #008000;">// Fiyat ve ürün adını göstermek için label eklendi</span></div><div><span style="color: #0000ff;">begin</span></div><div>&nbsp; ProductQuery := TclSqlQuery.Create(nil);</div><div>&nbsp; <span style="color: #0000ff;">try</span></div><div>&nbsp; &nbsp; ProductQuery.Connection := Clomosy.DBSQLServerConnection;</div><div>&nbsp; &nbsp; ProductQuery.SQL.Text := <span style="color: #a31515;">'SELECT ProductID, ProductName, ProductPrice, ProductImageURL FROM Products'</span>; &nbsp;</div><div>&nbsp; &nbsp; <span style="color: #0000ff;">try</span></div><div>&nbsp; &nbsp; &nbsp; ProductQuery.Open;</div><div>&nbsp; &nbsp; <span style="color: #0000ff;">except</span></div><div>&nbsp; &nbsp; &nbsp; ShowMessage(<span style="color: #a31515;">'Ürün sorgusu açılamadı: '</span> );</div><div>&nbsp; &nbsp; <span style="color: #0000ff;">end</span>;</div><div>&nbsp; &nbsp; </div><div>&nbsp; &nbsp; <span style="color: #0000ff;">while</span> <span style="color: #0000ff;">not</span> ProductQuery.Eof <span style="color: #0000ff;">do</span></div><div>&nbsp; &nbsp; <span style="color: #0000ff;">begin</span></div><div>&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">try</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductID := ProductQuery.FieldByName(<span style="color: #a31515;">'ProductID'</span>).AsInteger;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductName := ProductQuery.FieldByName(<span style="color: #a31515;">'ProductName'</span>).AsString;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductPrice := ProductQuery.FieldByName(<span style="color: #a31515;">'ProductPrice'</span>).AsFloat;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductImageURL := ProductQuery.FieldByName(<span style="color: #a31515;">'ProductImageURL'</span>).AsString;</div><br><div>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">// Buton oluştur ve yapılandır </span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; Button := mainform.AddNewProButton(AtistirmaliklarPage, <span style="color: #a31515;">'Button'</span>+IntToStr(i), <span style="color: #a31515;">''</span>);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">try</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i := i + <span style="color: #098658;">1</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Width := <span style="color: #098658;">120</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Height := <span style="color: #098658;">120</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">if</span> Assigned(mainform) <span style="color: #0000ff;">then</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mainform.SetImage(Button, ProductImageURL); </div><br><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">// Diğer buton özelliklerini ayarla</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Margins.Bottom := <span style="color: #098658;">400</span> - i * <span style="color: #098658;">300</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Margins.Right := <span style="color: #098658;">100</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.RoundHeight := <span style="color: #098658;">10</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.RoundWidth := <span style="color: #098658;">10</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.FontVertAlign := palCenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.FontHorzAlign := palCenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.TextSettings.Font.Style := &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.BorderColor := clAlphaColor.clHexToColor(<span style="color: #a31515;">'#d1d1d1'</span>);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.BorderWidth := <span style="color: #098658;">1</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.SetclProSettings(Button.clProSettings);</div><br><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">// Create and configure the price label</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000;">// PriceLabel := TClProLabel.Create(AtistirmaliklarPage);</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel := AtistirmaliklarPage.AddNewProLabel(AtistirmaliklarPage,<span style="color: #a31515;">'PriceLabel'</span>+IntToStr(i),<span style="color: #a31515;">''</span>);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.Margins.Bottom := Button.Margins.Bottom + Button.Height + <span style="color: #098658;">10</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.Margins.Right := Button.Margins.Right;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.Width := Button.Width;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.Text := <span style="color: #a31515;">'Fiyat: '</span> + FloatToStr(ProductPrice) + <span style="color: #a31515;">' TL'</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.clProSettings.TextSettings.Font.Style := &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.clProSettings.FontColor := clAlphaColor.clHexToColor(<span style="color: #a31515;">'#000000'</span>);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.FontVertAlign := palCenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.FontHorzAlign := palCenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.SetclProSettings(PriceLabel.clProSettings);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; </div><div>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">// Create and configure the name label</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">//NameLabel := TClProLabel.Create(AtistirmaliklarPage);</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000;">// NameLabel.Parent := AtistirmaliklarPage;</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel := MyForm.AddNewProLabel(AtistirmaliklarPage,<span style="color: #a31515;">'NameLabel'</span>+IntToStr(i),<span style="color: #a31515;">''</span>);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.Top := PriceLabel.Top + PriceLabel.Height + <span style="color: #098658;">5</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.Margins.Right := Button.Margins.Right;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.Width := Button.Width;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.Text := ProductName;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.clProSettings.TextSettings.Font.Style := &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.clProSettings.FontColor := clAlphaColor.clHexToColor(<span style="color: #a31515;">'#000000'</span>);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.FontVertAlign := palCenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.FontHorzAlign := palCenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.SetclProSettings(NameLabel.clProSettings);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">except</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowMessage(<span style="color: #a31515;">'Buton oluşturulurken hata: '</span> );</div><div>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">end</span>;</div><br><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductQuery.Next;</div><div>&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">except</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage(<span style="color: #a31515;">'Ürün bilgileri işlenirken hata: '</span> );</div><div>&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">end</span>;</div><div>&nbsp; &nbsp; <span style="color: #0000ff;">end</span>;</div><div>&nbsp; <span style="color: #0000ff;">finally</span></div><div>&nbsp; &nbsp; ProductQuery.Close;</div><div>&nbsp; &nbsp; ProductQuery.Free;</div><div>&nbsp; <span style="color: #0000ff;">end</span>;</div><div><span style="color: #0000ff;">end</span>;</div><div><span style="color: #0000ff;">begin</span></div><div>&nbsp;mainform := TCLForm.Create(self);</div><div>&nbsp;mainform.Run;</div><div>&nbsp;<span style="color: #0000ff;">end</span>;</div><br><div><span style="color: #0000ff;">var</span></div><div>&nbsp; mainform: TCLForm;</div><div>&nbsp; AtistirmaliklarPage: TclProPanel;</div><div>&nbsp; Button: TClProButton;</div><div>&nbsp; ProductID: Integer;</div><div>&nbsp; ProductName: string;</div><div>&nbsp; ProductPrice: Double;</div><div>&nbsp; ProductImageURL: string;</div><div>&nbsp; ProductQuery: TclSqlQuery;</div><div>&nbsp; PriceLabel,NameLabel:TClProLabel;</div><div>&nbsp; i:integer;</div><div><span style="color: #0000ff;">procedure</span> SetupDatabaseConnection;</div><div><span style="color: #0000ff;">begin</span></div><div>&nbsp; <span style="color: #0000ff;">try</span></div><div>&nbsp; &nbsp; Clomosy.DBSQLServerConnect(<span style="color: #a31515;">'SQL Server'</span>, <span style="color: #a31515;">'clomosybakkal.database.windows.net'</span>, <span style="color: #a31515;">'nrs'</span>, <span style="color: #a31515;">'n.12345678'</span>, <span style="color: #a31515;">'Bakkal'</span>, <span style="color: #098658;">1433</span>);</div><div>&nbsp; &nbsp; ShowMessage(<span style="color: #a31515;">'Veritabanı bağlantısı başarıyla kuruldu!'</span>);</div><div>&nbsp; <span style="color: #0000ff;">except</span></div><div>&nbsp; &nbsp; ShowMessage(<span style="color: #a31515;">'Veritabanı bağlantısı kurulamadı: '</span> );</div><div>&nbsp; <span style="color: #0000ff;">end</span>;</div><div><span style="color: #0000ff;">end</span>;</div><br><div><span style="color: #0000ff;">procedure</span> LoadProductsToPage;</div><div><span style="color: #0000ff;">var</span></div><div>&nbsp; PriceLabel, NameLabel: TClLabel; &nbsp;<span style="color: #008000;">// Fiyat ve ürün adını göstermek için label eklendi</span></div><div><span style="color: #0000ff;">begin</span></div><div>&nbsp; ProductQuery := TclSqlQuery.Create(nil);</div><div>&nbsp; <span style="color: #0000ff;">try</span></div><div>&nbsp; &nbsp; ProductQuery.Connection := Clomosy.DBSQLServerConnection;</div><div>&nbsp; &nbsp; ProductQuery.SQL.Text := <span style="color: #a31515;">'SELECT ProductID, ProductName, ProductPrice, ProductImageURL FROM Products'</span>; &nbsp;</div><div>&nbsp; &nbsp; <span style="color: #0000ff;">try</span></div><div>&nbsp; &nbsp; &nbsp; ProductQuery.Open;</div><div>&nbsp; &nbsp; <span style="color: #0000ff;">except</span></div><div>&nbsp; &nbsp; &nbsp; ShowMessage(<span style="color: #a31515;">'Ürün sorgusu açılamadı: '</span> );</div><div>&nbsp; &nbsp; <span style="color: #0000ff;">end</span>;</div><div>&nbsp; &nbsp; </div><div>&nbsp; &nbsp; <span style="color: #0000ff;">while</span> <span style="color: #0000ff;">not</span> ProductQuery.Eof <span style="color: #0000ff;">do</span></div><div>&nbsp; &nbsp; <span style="color: #0000ff;">begin</span></div><div>&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">try</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductID := ProductQuery.FieldByName(<span style="color: #a31515;">'ProductID'</span>).AsInteger;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductName := ProductQuery.FieldByName(<span style="color: #a31515;">'ProductName'</span>).AsString;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductPrice := ProductQuery.FieldByName(<span style="color: #a31515;">'ProductPrice'</span>).AsFloat;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductImageURL := ProductQuery.FieldByName(<span style="color: #a31515;">'ProductImageURL'</span>).AsString;</div><br><div>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">// Buton oluştur ve yapılandır </span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; Button := mainform.AddNewProButton(AtistirmaliklarPage, <span style="color: #a31515;">'Button'</span>+IntToStr(i), <span style="color: #a31515;">''</span>);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">try</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i := i + <span style="color: #098658;">1</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Width := <span style="color: #098658;">120</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Height := <span style="color: #098658;">120</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">if</span> Assigned(mainform) <span style="color: #0000ff;">then</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mainform.SetImage(Button, ProductImageURL); </div><br><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">// Diğer buton özelliklerini ayarla</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Margins.Bottom := <span style="color: #098658;">400</span> - i * <span style="color: #098658;">300</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Margins.Right := <span style="color: #098658;">100</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.RoundHeight := <span style="color: #098658;">10</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.RoundWidth := <span style="color: #098658;">10</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.FontVertAlign := palCenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.FontHorzAlign := palCenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.TextSettings.Font.Style := &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.BorderColor := clAlphaColor.clHexToColor(<span style="color: #a31515;">'#d1d1d1'</span>);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.BorderWidth := <span style="color: #098658;">1</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.SetclProSettings(Button.clProSettings);</div><br><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">// Create and configure the price label</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000;">// PriceLabel := TClProLabel.Create(AtistirmaliklarPage);</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel := AtistirmaliklarPage.AddNewProLabel(AtistirmaliklarPage,<span style="color: #a31515;">'PriceLabel'</span>+IntToStr(i),<span style="color: #a31515;">''</span>);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.Margins.Bottom := Button.Margins.Bottom + Button.Height + <span style="color: #098658;">10</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.Margins.Right := Button.Margins.Right;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.Width := Button.Width;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.Text := <span style="color: #a31515;">'Fiyat: '</span> + FloatToStr(ProductPrice) + <span style="color: #a31515;">' TL'</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.clProSettings.TextSettings.Font.Style := &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.clProSettings.FontColor := clAlphaColor.clHexToColor(<span style="color: #a31515;">'#000000'</span>);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.FontVertAlign := palCenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.FontHorzAlign := palCenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PriceLabel.SetclProSettings(PriceLabel.clProSettings);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; </div><div>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">// Create and configure the name label</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">//NameLabel := TClProLabel.Create(AtistirmaliklarPage);</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000;">// NameLabel.Parent := AtistirmaliklarPage;</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel := MyForm.AddNewProLabel(AtistirmaliklarPage,<span style="color: #a31515;">'NameLabel'</span>+IntToStr(i),<span style="color: #a31515;">''</span>);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.Top := PriceLabel.Top + PriceLabel.Height + <span style="color: #098658;">5</span>;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.Margins.Right := Button.Margins.Right;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.Width := Button.Width;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.Text := ProductName;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.clProSettings.TextSettings.Font.Style := &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.clProSettings.FontColor := clAlphaColor.clHexToColor(<span style="color: #a31515;">'#000000'</span>);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.FontVertAlign := palCenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.FontHorzAlign := palCenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NameLabel.SetclProSettings(NameLabel.clProSettings);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">except</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowMessage(<span style="color: #a31515;">'Buton oluşturulurken hata: '</span> );</div><div>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">end</span>;</div><br><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductQuery.Next;</div><div>&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">except</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage(<span style="color: #a31515;">'Ürün bilgileri işlenirken hata: '</span> );</div><div>&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">end</span>;</div><div>&nbsp; &nbsp; <span style="color: #0000ff;">end</span>;</div><div>&nbsp; <span style="color: #0000ff;">finally</span></div><div>&nbsp; &nbsp; ProductQuery.Close;</div><div>&nbsp; &nbsp; ProductQuery.Free;</div><div>&nbsp; <span style="color: #0000ff;">end</span>;</div><div><span style="color: #0000ff;">end</span>;</div><div><span style="color: #0000ff;">begin</span></div><div>&nbsp;mainform := TCLForm.Create(self);</div><div>&nbsp;mainform.Run;</div><div>&nbsp;<span style="color: #0000ff;">end</span>;</div><br><div>--------------------------------------------------------------------</div><div>Unknown member method: <span style="color: #a31515;">'AddNewProLabel'</span>.</div><div>Source position: <span style="color: #098658;">67</span>,<span style="color: #098658;">106</span></div><div>Clomosy Build : <span style="color: #098658;">20240709.111531</span></div><div>--------------------------------------------------------------------</div><div>LastUnitName:AtistirmaliklarPage</div><div>--------------------------------------------------------------------</div><div>Unknown member method: <span style="color: #a31515;">'AddNewProLabel'</span>.</div><div>Source position: <span style="color: #098658;">67</span>,<span style="color: #098658;">106</span></div><div>Clomosy Build : <span style="color: #098658;">20240709.111531</span></div><div>--------------------------------------------------------------------</div><div>LastUnitName:AtistirmaliklarPage</div></div></div>]]>
   </description>
   <pubDate>Tue, 10 Sep 2024 10:27:56 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=929&amp;PID=1801#1801</guid>
  </item> 
 </channel>
</rss>