<?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 : komut</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : komut]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 13:13:14 +0000</pubDate>
  <lastBuildDate>Tue, 10 Sep 2024 13:36:11 +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=926</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[komut : Merhaba Nursena, for (i = 1 to...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=926&amp;PID=1805#1805</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=142">BilalCndn</a><br /><strong>Konu:</strong> 926<br /><strong>Gönderim Zamanı:</strong> 10&nbsp;Eylül&nbsp;2024 Saat 13:36<br /><br />Merhaba Nursena,<div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><pre style="font-family: Menlo, C&#111;nsolas, M&#111;naco, &quot;Noto Mono&quot;, &quot;Nimbus Mono L&quot;, monospace; font-size: 15.2px; : rgb248, 249, 250; border: 1px solid rgb200, 204, 209; padding: 1em; text-wrap: wrap; overflow: auto;">for (i = 1 to 7)   {     testImg = MyForm.AddNewProImage(lytContainer,'testImg'+IntToStr(i));     testImg.Align = alLeft;     testImg.Margins.Left = 10;     testImg.Width = 100;     MyForm.SetImage(testImg,'<a href="https://media1.cucuvi.com/Dic19/BD220BD4-7AEA-43FA-AF97-E62D073AFD1B.jpg" target="_blank" rel="nofollow">https://media1.cucuvi.com/Dic19/BD220BD4-7AEA-43FA-AF97-E62D073AFD1B.jpg'</a>);     lytContainer.Width = lytContainer.Width + testImg.Width + testImg.Margins.Left;   }</pre></div><div></pre></td></tr></table></div><div><br></div><div>Bu örneği inceleyerek dinamik olarak nesneler oluşturabilirsin.</div><div>Veritabanına select sorgusu atarak gelen veri sayısınca döngüye girmesini sağlayabilirsin.</div><div><br></div><div>İyi çalışmalar dilerim.</div>]]>
   </description>
   <pubDate>Tue, 10 Sep 2024 13:36:11 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=926&amp;PID=1805#1805</guid>
  </item> 
  <item>
   <title><![CDATA[komut : D&#246;k&#252;mantasyon&amp;#039;a bakt&#305;m ancak...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=926&amp;PID=1798#1798</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> 926<br /><strong>Gönderim Zamanı:</strong> 09&nbsp;Eylül&nbsp;2024 Saat 15:40<br /><br />Dökümantasyon'a baktım ancak ben database'e ürün ekledikçe bu ürünleri otomatik olarak panele ekleyebileceğim bir komut bulamadım aşşağdaki koda eklemek istiyorm bu konuda yardımcı olabilirseniz çok sevinirim.<div>&nbsp; &nbsp;var<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><br></div><div>procedure SetupDatabaseConnection;</div><div>begin</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Clomosy.DBSQLServerConnect('SQL Server', 'clomosybakkal.database.windows.net', 'nrs', 'n.12345678', 'Bakkal', 1433);</div><div>&nbsp; &nbsp; ShowMessage('Veritabanı bağlantısı başarıyla kuruldu!');</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Veritabanı bağlantısı kurulamadı: ' );</div><div>&nbsp; end;</div><div>end;</div><div><br></div><div>procedure LoadProductsToPage;</div><div>begin</div><div>&nbsp; ProductQuery := TclSqlQuery.Create(nil);</div><div>&nbsp; try</div><div>&nbsp; &nbsp; ProductQuery.Connection := Clomosy.DBSQLServerConnection;</div><div>&nbsp; &nbsp; ProductQuery.SQL.Text := 'SELECT ProductID, ProductName, ProductPrice, ProductImageURL FROM Products';&nbsp; // Category yok, sorguyu düzelttik</div><div>&nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; ProductQuery.Open;</div><div>&nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Ürün sorgusu açılamadı: ' );</div><div>&nbsp; &nbsp; end;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; while not ProductQuery.Eof do</div><div>&nbsp; &nbsp; begin</div><div>&nbsp; &nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductID := ProductQuery.FieldByName('ProductID').AsInteger;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductName := ProductQuery.FieldByName('ProductName').AsString;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductPrice := ProductQuery.FieldByName('ProductPrice').AsFloat;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductImageURL := ProductQuery.FieldByName('ProductImageURL').AsString;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; // Buton oluştur ve yapılandır&nbsp;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Button := mainform.AddNewProButton(AtistirmaliklarPage, 'Button', '');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;// Button := TClProButton.Create(AtistirmaliklarPage);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Width := 120;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Height := 120;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Button.Text := ProductName;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if Assigned(mainform) then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mainform.SetImage(Button, ProductImageURL);&nbsp;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Diğer buton özelliklerini ayarla</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Margins.Bottom := 400;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Margins.Right := 100;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.RoundHeight := 10;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.RoundWidth := 10;</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('#d1d1d1');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.BorderWidth := 1;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.SetclProSettings(Button.clProSettings);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Buton oluşturulurken hata: ' );</div><div>&nbsp; &nbsp; &nbsp; &nbsp; end;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductQuery.Next;</div><div>&nbsp; &nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Ürün bilgileri işlenirken hata: ' );</div><div>&nbsp; &nbsp; &nbsp; end;</div><div>&nbsp; &nbsp; end;</div><div>&nbsp; finally</div><div>&nbsp; &nbsp; ProductQuery.Close;</div><div>&nbsp; &nbsp; ProductQuery.Free;</div><div>&nbsp; end;</div><div>end;</div><div><br></div><div>procedure AddProductPage;</div><div>begin</div><div>&nbsp; try</div><div>&nbsp; &nbsp; AtistirmaliklarPage := mainform.AddNewProPanel(mainform, 'AtistirmaliklarPage');</div><div>&nbsp; &nbsp; if Assigned(AtistirmaliklarPage) then</div><div>&nbsp; &nbsp; begin</div><div>&nbsp; &nbsp; &nbsp; AtistirmaliklarPage.Align := alClient;</div><div>&nbsp; &nbsp; &nbsp; AtistirmaliklarPage.Margins.Left := 10;</div><div>&nbsp; &nbsp; &nbsp; AtistirmaliklarPage.Margins.Right := 10;</div><div>&nbsp; &nbsp; &nbsp; AtistirmaliklarPage.Margins.Top := 5;</div><div>&nbsp; &nbsp; &nbsp; AtistirmaliklarPage.Margins.Bottom := 10;</div><div>&nbsp; &nbsp; &nbsp; AtistirmaliklarPage.clProSettings.BackgroundColor := clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; &nbsp; &nbsp; AtistirmaliklarPage.SetclProSettings(AtistirmaliklarPage.clProSettings);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; // Ürünleri sayfaya yükle</div><div>&nbsp; &nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LoadProductsToPage;</div><div>&nbsp; &nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Ürünleri sayfaya yüklerken hata: ' );</div><div>&nbsp; &nbsp; &nbsp; end;</div><div>&nbsp; &nbsp; end</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Atıştırmalıklar sayfası oluşturulamadı');</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Panel oluşturulurken hata: ' );</div><div>&nbsp; end;</div><div>end;</div><div><br></div><div>begin</div><div>&nbsp; mainform := TCLForm.Create(nil);</div><div>&nbsp; try</div><div>&nbsp; &nbsp; mainform.SetFormColor('#CBEDD5', '', clGNone);</div><div>&nbsp; &nbsp; SetupDatabaseConnection;</div><div>&nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; AddProductPage;</div><div>&nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Ana form çalıştırılırken hata: ' );</div><div>&nbsp; &nbsp; end;</div><div>&nbsp; &nbsp; mainform.Run;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Ana form çalıştırılırken hata: ' );</div><div>&nbsp; end;</div><div>end.</div></div>]]>
   </description>
   <pubDate>Mon, 09 Sep 2024 15:40:00 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=926&amp;PID=1798#1798</guid>
  </item> 
 </channel>
</rss>