<?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 : dizayn hatası</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : dizayn hatası]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 13:13:32 +0000</pubDate>
  <lastBuildDate>Fri, 13 Sep 2024 18:11:15 +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=932</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[dizayn hatası : Merhaba Nursena,A&#351;a&#287;&#305;da yer alan...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=932&amp;PID=1815#1815</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=106">Developer</a><br /><strong>Konu:</strong> 932<br /><strong>Gönderim Zamanı:</strong> 13&nbsp;Eylül&nbsp;2024 Saat 18:11<br /><br />Merhaba Nursena,<div>Aşağıda yer alan linki inceleyebilir misin?</div><div><a href="https://www.docs.clomosy.com/index.php/TclVertScrollBox" target="_blank" rel="nofollow">https://www.docs.clomosy.com/index.php/TclVertScrollBox</a></div>]]>
   </description>
   <pubDate>Fri, 13 Sep 2024 18:11:15 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=932&amp;PID=1815#1815</guid>
  </item> 
  <item>
   <title><![CDATA[dizayn hatası : kodumda 1.buton ve labellar olmas&#305;...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=932&amp;PID=1814#1814</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> 932<br /><strong>Gönderim Zamanı:</strong> 13&nbsp;Eylül&nbsp;2024 Saat 17:15<br /><br />kodumda 1.buton ve labellar olması gereken yere gelmiyor bide yeni buton eklediğimde öncekinin üstüne bindi nasıl düzeltebilirim ?<div><br></div><div>kod:var</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; TopOffset, i, previousButtonTop, previousButtonLeft: Integer;</div><div><br></div><div>procedure SetupDatabaseConnection;</div><div>begin</div><div>&nbsp; try</div><div>&nbsp; &nbsp; &nbsp;Clomosy.DBSQLServerConnect('SQL Server', 'su-db.database.windows.net','dbAdmin','Azure1234','suDb', 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';</div><div>&nbsp; &nbsp;&nbsp;</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><br></div><div>&nbsp; &nbsp; previousButtonLeft := 10;&nbsp; // İlk butonun sol kenardan uzaklığı</div><div>&nbsp; &nbsp; previousButtonTop := 10;&nbsp; &nbsp;// İlk butonun üst kenardan uzaklığı</div><div>&nbsp; &nbsp; i := 0;</div><div><br></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; // Yeni buton oluşturma</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Button := mainform.AddNewProButton(AtistirmaliklarPage, 'Button' + IntToStr(i), '');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Inc(i); // i'yi 1 artır</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; // Buton boyut ve pozisyon</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Button.Width := 150;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Button.Height := 150;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; // Butonun yerleşimi (yatay ve dikey)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (ProductID mod 2 = 1) then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; begin</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Tek butonlar, sol tarafa hizalanacak</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Margins.Bottom := previousButtonTop; // Önceki butonun altına yerleştirmek için</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Margins.Right := 0;&nbsp; // Sol tarafa hizalanacak</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Margins.Left := 10;&nbsp;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Sonraki butonun üst mesafesini güncelle</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; previousButtonTop := Button.Top + Button.Height + 40;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; end</div><div>&nbsp; &nbsp; &nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; &nbsp; begin</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Çift butonlar, teklerin yanında yer alacak</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Margins.Bottom := previousButtonTop;&nbsp; // Önceki butonla aynı hizaya yerleştirmek için</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Margins.Right := 300;&nbsp; // Teklerin yanında olacak</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Margins.Left := previousButtonLeft;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Sonraki butonun sol mesafesini güncelle</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; previousButtonLeft := Button.Left + Button.Width + 20;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; end;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; // Ürün resmini butona ekleme</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if Assigned(mainform) then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mainform.SetImage(Button, ProductImageURL);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; // Ürün adını göstermek için etiket oluşturma</div><div>&nbsp; &nbsp; &nbsp; &nbsp; namelabel := mainform.AddNewProLabel(AtistirmaliklarPage, 'namelabel' + IntToStr(i), '');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; namelabel.Top := Button.Top + Button.Height + 5;&nbsp; // Butonun hemen altında</div><div>&nbsp; &nbsp; &nbsp; &nbsp; namelabel.Left := Button.Left;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Butonla hizalı</div><div>&nbsp; &nbsp; &nbsp; &nbsp; namelabel.Text := ProductName;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; // Ürün fiyatını göstermek için etiket oluşturma</div><div>&nbsp; &nbsp; &nbsp; &nbsp; pricelabel := mainform.AddNewProLabel(AtistirmaliklarPage, 'pricelabel' + IntToStr(i), '');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; pricelabel.Top := namelabel.Top + namelabel.Height + 5;&nbsp; // Ürün adının altında</div><div>&nbsp; &nbsp; &nbsp; &nbsp; pricelabel.Left := Button.Left;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Butonla hizalı</div><div>&nbsp; &nbsp; &nbsp; &nbsp; pricelabel.Text := Format('Fiyat: %.2f TL', &#091;ProductPrice&#093;);</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 := alNone;&nbsp; // Manuel hizalama</div><div>&nbsp; &nbsp; &nbsp; AtistirmaliklarPage.Width := 600;&nbsp; &nbsp; &nbsp;// Panel genişliği</div><div>&nbsp; &nbsp; &nbsp; AtistirmaliklarPage.Height := 800;&nbsp; &nbsp; // Panel yüksekliği</div><div>&nbsp; &nbsp; &nbsp; AtistirmaliklarPage.Left := 50;&nbsp; &nbsp; &nbsp; &nbsp;// Panelin sol kenardan uzaklığı</div><div>&nbsp; &nbsp; &nbsp; AtistirmaliklarPage.Top := 50;&nbsp; &nbsp; &nbsp; &nbsp; // Panelin üst kenardan uzaklığı</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><br></div><div><br></div><div><img src="" border="0" /></div>]]>
   </description>
   <pubDate>Fri, 13 Sep 2024 17:15:57 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=932&amp;PID=1814#1814</guid>
  </item> 
 </channel>
</rss>