<?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 : Panellerin açılıp kapanması</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : Panellerin açılıp kapanması]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 10:53:20 +0000</pubDate>
  <lastBuildDate>Wed, 19 Nov 2025 13:39:09 +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=1232</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[Panellerin açılıp kapanması : Cevap i&#231;in te&#351;ekk&#252;r ederim verdi&#287;iniz...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1232&amp;PID=2724#2724</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=345">kaanl0</a><br /><strong>Konu:</strong> 1232<br /><strong>Gönderim Zamanı:</strong> 19&nbsp;Kasım&nbsp;2025 Saat 13:39<br /><br />Cevap için teşekkür ederim verdiğiniz kod çalışıyor fakat panellerin yerleri karışıyordu problemi ise&nbsp;&nbsp;TempPnl.Visible = True; ve&nbsp; TempPnl.Visible = False; satırlarını silerek düzelttim şuanda paneller karışmıyor.<a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015"</a> integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" 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>Wed, 19 Nov 2025 13:39:09 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1232&amp;PID=2724#2724</guid>
  </item> 
  <item>
   <title><![CDATA[Panellerin açılıp kapanması : var MainForm: TclForm; TitlePnl,...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1232&amp;PID=2723#2723</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> 1232<br /><strong>Gönderim Zamanı:</strong> 19&nbsp;Kasım&nbsp;2025 Saat 09:56<br /><br /><div>var</div><div>&nbsp; MainForm: TclForm;</div><div>&nbsp; TitlePnl, NavbarPnl, StocksPnl: TclProPanel;</div><div>&nbsp; StocksCategoryPnl: TClProButton;&nbsp;</div><div>&nbsp; TitleLbl, CategoryNameLbl, StocksNameLbl: TClProLabel;</div><div>&nbsp; HomeBtn, BackBtn, SortBtn, DetailsBtn: TClProButton;</div><div>&nbsp; CategoryItemImage, StocksImage: TClProImage;</div><div>&nbsp; StocksCategoryCount: integer;</div><div>&nbsp; vScroll: TCLVertScrollBox;</div><div>&nbsp; StocksCount: integer;</div><div><br></div><div>void SetObjectMargins(AObject, AValue)</div><div>{</div><div>&nbsp; AObject.Margins.Top = AValue;</div><div>&nbsp; AObject.Margins.Bottom = AValue;</div><div>&nbsp; AObject.Margins.Left = AValue;</div><div>&nbsp; AObject.Margins.Right = AValue;</div><div>}</div><div><br></div><div>function IconSelect(IconUI): String</div><div>var</div><div>&nbsp; Output: String;</div><div>{</div><div>&nbsp; case IconUI of</div><div>&nbsp; {</div><div>&nbsp; &nbsp; 'HomePageBtnUI': Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1fIT.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1fIT.png</a>';</div><div>&nbsp; &nbsp; 'BackArrowBtnUI': Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1STG.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1STG.png</a>';</div><div>&nbsp; &nbsp; 'SortBtnUI': Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1rXI.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1rXI.png</a>';</div><div>&nbsp; &nbsp; 'CategoryItemImageUI': Output = '<a href="https://resmim.net/cdn/2025/11/14/jFyEzn.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/11/14/jFyEzn.png</a>';</div><div>&nbsp; &nbsp; else&nbsp;</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Output = '';</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp; Result = Output;</div><div>}</div><div><br></div><div>void TitlePnlV</div><div>{</div><div>&nbsp; TitlePnl = MainForm.AddNewProPanel(MainForm, 'TitlePnl');</div><div>&nbsp; TitlePnl.Align = alMostTop;</div><div>&nbsp; TitlePnl.Height = (MainForm.clHeight * 18) / 100;</div><div>&nbsp; TitlePnl.Width = (MainForm.clWidth * 100) / 100;</div><div>&nbsp; TitlePnl.Margins.Top = (MainForm.clHeight * -0.0715);</div><div>&nbsp; TitlePnl.Margins.Left = (MainForm.clWidth * -0.0254);</div><div>&nbsp; TitlePnl.Margins.Right = (MainForm.clWidth * -0.0254);</div><div>&nbsp; TitlePnl.clProSettings.BorderWidth = 3;</div><div>&nbsp; TitlePnl.clProSettings.BorderColor = clAlphaColor.clHexToColor('#3a3a3a');</div><div>&nbsp; TitlePnl.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#4caf50');</div><div>&nbsp; TitlePnl.SetclProSettings(TitlePnl.clProSettings);</div><div><br></div><div>&nbsp; TitleLbl = MainForm.AddNewProLabel(TitlePnl, 'TitleLbl', 'STOKLAR');</div><div>&nbsp; TitleLbl.Align = alCenter;</div><div>&nbsp; TitleLbl.Width = (MainForm.clWidth * 1.0178);</div><div>&nbsp; TitleLbl.Height = (MainForm.clHeight * 0.1073);</div><div>&nbsp; TitleLbl.Margins.Top = (MainForm.clHeight * 0.0715);</div><div>&nbsp; TitleLbl.clProSettings.FontSize = 30;</div><div>&nbsp; TitleLbl.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; TitleLbl.clProSettings.FontHorzAlign = palcenter;</div><div>&nbsp; TitleLbl.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; TitleLbl.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; TitleLbl.SetclProSettings(TitleLbl.clProSettings);</div><div>}</div><div><br></div><div>void NavbarPnlV</div><div>{</div><div>&nbsp; NavbarPnl = MainForm.AddNewProPanel(MainForm, 'NavbarPnl');</div><div>&nbsp; NavbarPnl.Align = alMostBottom;</div><div>&nbsp; NavbarPnl.Height = (MainForm.clHeight * 8) / 100;</div><div>&nbsp; NavbarPnl.Width = (MainForm.clWidth * 100) / 100;</div><div>&nbsp; NavbarPnl.Margins.Left = (MainForm.clWidth * -0.0254);</div><div>&nbsp; NavbarPnl.Margins.Right = (MainForm.clWidth * -0.0254);</div><div>&nbsp; NavbarPnl.Margins.Bottom = (MainForm.clHeight * -0.0119);</div><div>&nbsp; NavbarPnl.clProSettings.BorderWidth = 3;</div><div>&nbsp; NavbarPnl.clProSettings.BorderColor = clAlphaColor.clHexToColor('#3a3a3a');</div><div>&nbsp; NavbarPnl.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#4caf50');</div><div>&nbsp; NavbarPnl.SetclProSettings(NavbarPnl.clProSettings);</div><div><br></div><div>&nbsp; HomeBtn = MainForm.AddNewProButton(NavbarPnl, 'HomeBtn', '');</div><div>&nbsp; HomeBtn.Align = alCenter;</div><div>&nbsp; HomeBtn.Height = (NavbarPnl.Height * 105) / 100;</div><div>&nbsp; HomeBtn.Width = (NavbarPnl.Width * 30) / 100;</div><div>&nbsp; HomeBtn.Margins.Top = (MainForm.clHeight * -0.0596);</div><div>&nbsp; HomeBtn.clProSettings.PictureSource = IconSelect('HomePageBtnUI');</div><div>&nbsp; HomeBtn.SetclProSettings(HomeBtn.clProSettings);</div><div><br></div><div>&nbsp; BackBtn = MainForm.AddNewProButton(NavbarPnl, 'BackBtn', '');</div><div>&nbsp; BackBtn.Align = alCenter;</div><div>&nbsp; BackBtn.Height = (NavbarPnl.Height * 105) / 100;</div><div>&nbsp; BackBtn.Width = (NavbarPnl.Width * 30) / 100;</div><div>&nbsp; BackBtn.Margins.Top = (MainForm.clHeight * -0.0596);</div><div>&nbsp; BackBtn.Margins.Right = (MainForm.clWidth * -0.6361);</div><div>&nbsp; BackBtn.clProSettings.PictureSource = IconSelect('BackArrowBtnUI');</div><div>&nbsp; BackBtn.SetclProSettings(BackBtn.clProSettings);</div><div><br></div><div>&nbsp; SortBtn = MainForm.AddNewProButton(NavbarPnl, 'SortBtn', '');</div><div>&nbsp; SortBtn.Align = alCenter;</div><div>&nbsp; SortBtn.Height = (NavbarPnl.Height * 105) / 100;</div><div>&nbsp; SortBtn.Width = (NavbarPnl.Width * 30) / 100;</div><div>&nbsp; SortBtn.Margins.Top = (MainForm.clHeight * -0.0596);</div><div>&nbsp; SortBtn.Margins.left = (MainForm.clWidth * -0.6361);</div><div>&nbsp; SortBtn.clProSettings.PictureSource = IconSelect('SortBtnUI');</div><div>&nbsp; SortBtn.SetclProSettings(SortBtn.clProSettings);</div><div>}</div><div><br></div><div>void MainPnlV</div><div>{</div><div>&nbsp; vScroll = MainForm.AddNewVertScrollBox(MainForm, 'vScroll');</div><div>&nbsp; vScroll.Align = alCenter;</div><div>&nbsp; vScroll.Height = (MainForm.clHeight * 80) / 100;</div><div>&nbsp; vScroll.Width = (MainForm.clWidth * 98) / 100;</div><div>&nbsp; vScroll.Margins.bottom = 50;</div><div>}</div><div><br></div><div>void ToggleCategories(Sender)</div><div>var</div><div>&nbsp; J: Integer;</div><div>&nbsp; TempPnl: TclProPanel;</div><div>&nbsp; TempCategoryPnl: TClProButton;</div><div>&nbsp; CategoryIndex: Integer;</div><div>&nbsp; CategoryIndexStr: String;</div><div>&nbsp; NormalHeight: Single;</div><div>&nbsp; NormalMargin: Integer;</div><div>&nbsp; IsCategoryOpen: Boolean;</div><div>{</div><div>&nbsp; Try</div><div>&nbsp; &nbsp; TempCategoryPnl = MainForm.ClSender as TClProButton;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (TempCategoryPnl == nil) Exit;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; CategoryIndexStr = TempCategoryPnl.ClTagStr;</div><div>&nbsp; &nbsp; if (CategoryIndexStr == '') Exit;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Try</div><div>&nbsp; &nbsp; &nbsp; CategoryIndex = StrToInt(CategoryIndexStr);</div><div>&nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; // Durum Kontrolü (TagInt 1 ise AÇIK, 0 ise KAPALI)</div><div>&nbsp; &nbsp; IsCategoryOpen = (TempCategoryPnl.ClTagInt == 1);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (IsCategoryOpen)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; TempCategoryPnl.ClTagInt = 0;&nbsp; // Şimdi Kapa</div><div>&nbsp; &nbsp; &nbsp; IsCategoryOpen = False;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; TempCategoryPnl.ClTagInt = 1;&nbsp; // Şimdi Aç</div><div>&nbsp; &nbsp; &nbsp; IsCategoryOpen = True;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; NormalHeight = 74;</div><div>&nbsp; &nbsp; NormalMargin = 5;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; for (J = 1 to StocksCount)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; TempPnl = MainForm.clFindComponent('StocksPnl' + IntToStr(CategoryIndex) + '_' + IntToStr(J)) as TclProPanel;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; if (TempPnl &lt;&gt; nil)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (IsCategoryOpen)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempPnl.Height = NormalHeight;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempPnl.Margins.Top = NormalMargin;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempPnl.Margins.Bottom = NormalMargin;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempPnl.Visible = True;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempPnl.Height = 0;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempPnl.Margins.Top = 0;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempPnl.Margins.Bottom = 0;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempPnl.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Hata: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void StocksCategoryPnlVD</div><div>var</div><div>&nbsp; I, J: Integer;</div><div>{</div><div>&nbsp; Try</div><div>&nbsp; &nbsp; for (I = 1 to StocksCategoryCount)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl = MainForm.AddNewProButton(vScroll, 'StocksCategoryPnl' + IntToStr(I), '');</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl.Align = alTop;</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl.Height = 74;</div><div>&nbsp; &nbsp; &nbsp; SetObjectMargins(StocksCategoryPnl, 5);</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl.Margins.Left = (MainForm.clWidth * 0.0382);</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl.Margins.Right = (MainForm.clWidth * 0.0382);</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl.clProSettings.BorderWidth = 2;</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl.clProSettings.RoundHeight = 3.5;</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl.clProSettings.RoundWidth = 3.5;</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#1e1e1e');</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl.clProSettings.BorderColor = clAlphaColor.clHexToColor('#3a3a3a');</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl.SetclProSettings(StocksCategoryPnl.clProSettings);</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // --- TAG AYARLARI ---</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl.ClTagStr = IntToStr(I);</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl.ClTagInt = 1; // Başlangıçta AÇIK (1)</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; MainForm.AddNewEvent(StocksCategoryPnl, tbeOnClick, 'ToggleCategories');</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; CategoryItemImage = MainForm.AddNewProImage(StocksCategoryPnl, 'CategoryItemImage' + IntToStr(I));</div><div>&nbsp; &nbsp; &nbsp; CategoryItemImage.Align = alCenter;</div><div>&nbsp; &nbsp; &nbsp; CategoryItemImage.Height = (MainForm.clHeight * 0.0775);</div><div>&nbsp; &nbsp; &nbsp; CategoryItemImage.Width = (MainForm.clWidth * 0.1654);</div><div>&nbsp; &nbsp; &nbsp; CategoryItemImage.Margins.Right = (MainForm.clWidth * 0.6743);</div><div>&nbsp; &nbsp; &nbsp; CategoryItemImage.clProSettings.PictureSource = IconSelect('CategoryItemImageUI');</div><div>&nbsp; &nbsp; &nbsp; CategoryItemImage.clProSettings.PictureAutoFit = True;</div><div>&nbsp; &nbsp; &nbsp; CategoryItemImage.SetclProSettings(CategoryItemImage.clProSettings);</div><div>&nbsp; &nbsp; &nbsp; CategoryItemImage.HitTest = false;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; CategoryNameLbl = MainForm.AddNewProLabel(StocksCategoryPnl, 'CategoryNameLbl' + IntToStr(I), 'Kategori ' + IntToStr(I));</div><div>&nbsp; &nbsp; &nbsp; CategoryNameLbl.Align = alCenter;</div><div>&nbsp; &nbsp; &nbsp; CategoryNameLbl.Width = 150;</div><div>&nbsp; &nbsp; &nbsp; CategoryNameLbl.Height = 30;</div><div>&nbsp; &nbsp; &nbsp; CategoryNameLbl.Margins.Right = 15;</div><div>&nbsp; &nbsp; &nbsp; CategoryNameLbl.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; &nbsp; &nbsp; CategoryNameLbl.clProSettings.FontSize = 20;</div><div>&nbsp; &nbsp; &nbsp; CategoryNameLbl.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; &nbsp; &nbsp; CategoryNameLbl.clProSettings.FontHorzAlign = palleading;</div><div>&nbsp; &nbsp; &nbsp; CategoryNameLbl.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; &nbsp; CategoryNameLbl.HitTest = false;</div><div>&nbsp; &nbsp; &nbsp; CategoryNameLbl.SetclProSettings(CategoryNameLbl.clProSettings);</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; for (J = 1 to StocksCount)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksPnl = MainForm.AddNewProPanel(vScroll, 'StocksPnl' + IntToStr(I) + '_' + IntToStr(J));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksPnl.Align = alTop;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksPnl.Height = 74;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; SetObjectMargins(StocksPnl, 5);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksPnl.Margins.Left = (MainForm.clWidth * 0.0382);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksPnl.Margins.Right = (MainForm.clWidth * 0.0382);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksPnl.clProSettings.BorderWidth = 2;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksPnl.clProSettings.RoundHeight = 3.5;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksPnl.clProSettings.RoundWidth = 3.5;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksPnl.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#1e1e1e');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksPnl.clProSettings.BorderColor = clAlphaColor.clHexToColor('#3a3a3a');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksPnl.SetclProSettings(StocksPnl.clProSettings);</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksImage = MainForm.AddNewProImage(StocksPnl, 'StocksImage' + IntToStr(I) + '_' + IntToStr(J));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksImage.Align = alCenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksImage.Height = (MainForm.clHeight * 0.0775);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksImage.Width = (MainForm.clWidth * 0.1654);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksImage.Margins.Right = (MainForm.clWidth * 0.6743);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksImage.clProSettings.PictureSource = '<a href="https://resmim.net/cdn/2025/10/27/jAJjr1.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/27/jAJjr1.png</a>';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksImage.clProSettings.PictureAutoFit = True;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksImage.SetclProSettings(StocksImage.clProSettings);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksNameLbl = MainForm.AddNewProLabel(StocksPnl, 'StocksNameLbl' + IntToStr(I) + '_' + IntToStr(J), 'Ürün ' + IntToStr(J));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksNameLbl.Align = alCenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksNameLbl.Width = (MainForm.clWidth * 0.3817);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksNameLbl.Height = (MainForm.clHeight * 0.0358);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksNameLbl.Margins.Right = (MainForm.clWidth * 0.0382);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksNameLbl.Margins.Bottom = 30;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksNameLbl.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksNameLbl.clProSettings.FontSize = 20;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksNameLbl.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksNameLbl.clProSettings.FontHorzAlign = palleading;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksNameLbl.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksNameLbl.SetclProSettings(StocksNameLbl.clProSettings);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; DetailsBtn = MainForm.AddNewProButton(StocksPnl, 'DetailsBtn' + IntToStr(I) + '_' + IntToStr(J), 'DETAYLAR');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; DetailsBtn.Align = alCenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; DetailsBtn.Width = 74;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; DetailsBtn.Height = 74;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; DetailsBtn.Margins.Left = 282;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; DetailsBtn.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; DetailsBtn.clProSettings.FontSize = 12;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; DetailsBtn.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; DetailsBtn.clProSettings.FontHorzAlign = palcenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; DetailsBtn.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; DetailsBtn.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#4caf50');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; DetailsBtn.clProSettings.RoundWidth = 3.5;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; DetailsBtn.clProSettings.RoundHeight = 3.5;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; DetailsBtn.clProSettings.BorderColor = clAlphaColor.clHexToColor('#3a3a3a');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; DetailsBtn.clProSettings.BorderWidth = 2;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; DetailsBtn.SetclProSettings(DetailsBtn.clProSettings);</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Hata: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>{</div><div>&nbsp; MainForm = tclForm.Create(self);</div><div>&nbsp; StocksCategoryCount = 3;</div><div>&nbsp; StocksCount = 5;</div><div>&nbsp;&nbsp;</div><div>&nbsp; TitlePnlV;</div><div>&nbsp; MainPnlV;</div><div>&nbsp; NavbarPnlV;</div><div>&nbsp; StocksCategoryPnlVD;</div><div><br></div><div>&nbsp; MainForm.SetFormColor('#121212', '', clGNone);</div><div>&nbsp; MainForm.FormWaiting.Visible = False;</div><div>&nbsp; MainForm.BtnFormMenu.Visible = False;</div><div>&nbsp; MainForm.BtnGoBack.Visible = False;</div><div>&nbsp; MainForm.run;</div><div>}<br><br>&nbsp;bu kodu direk çalıştırır mısın</div><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015"</a> integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" 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>Wed, 19 Nov 2025 09:56:15 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1232&amp;PID=2723#2723</guid>
  </item> 
  <item>
   <title><![CDATA[Panellerin açılıp kapanması : var MainForm: TclForm; TitlePnl,...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1232&amp;PID=2722#2722</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> 1232<br /><strong>Gönderim Zamanı:</strong> 19&nbsp;Kasım&nbsp;2025 Saat 09:52<br /><br /><div><br></div><div>var</div><div>&nbsp; MainForm: TclForm;</div><div>&nbsp; TitlePnl, NavbarPnl, StocksCategoryPnl, StocksPnl, OpacityPnl, AddEditStockPopUp: TclProPanel;</div><div>&nbsp; TitleLbl, ItemPieceValueLbl, ItemPieceLbl, CategoryNameLbl, ItemPriceLbl, StocksNameLbl, SupplyTimeLbl, SupplyTimeValueLbl, Piecelbl, PieceXlbl, PieceValuelbl, AddStockLbl, EditStockLbl: TClProLabel;</div><div>&nbsp; HomeBtn, BackBtn, SortBtn, AddStockBtn, DetailsBtn, EditStockBtn, CloseBtn, AddBtn: TClProButton;</div><div>&nbsp; CategoryItemImage, StocksImage: TClProImage;</div><div>&nbsp; StocksCategoryCount: Integer;</div><div>&nbsp; vScroll: TCLVertScrollBox;</div><div>&nbsp; StocksCount: Integer;</div><div>&nbsp; AllCategoriesOpen: boolean;</div><div>&nbsp;&nbsp;</div><div>&nbsp; function IconSelect(IconUI):String</div><div>&nbsp; var</div><div>&nbsp; Output: String;</div><div>&nbsp; {</div><div>&nbsp; case IconUI of</div><div>&nbsp; {</div><div>&nbsp; &nbsp; 'ClosmosyLogo':Output = '<a href="https://resmim.net/cdn/2025/10/22/jV6v6Q.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/22/jV6v6Q.png</a>';</div><div>&nbsp; &nbsp; 'AdminManagementBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju0eoT.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju0eoT.png</a>';</div><div>&nbsp; &nbsp; 'BackArrowBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1STG.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1STG.png</a>';</div><div>&nbsp; &nbsp; 'HomePageBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1fIT.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1fIT.png</a>';</div><div>&nbsp; &nbsp; 'ItemsBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1mZL.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1mZL.png</a>';</div><div>&nbsp; &nbsp; 'ManagementBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1Tqh.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1Tqh.png</a>';</div><div>&nbsp; &nbsp; 'OrderChecklistBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1jdK.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1jdK.png</a>';&nbsp;</div><div>&nbsp; &nbsp; 'OrdersBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1CGQ.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1CGQ.png</a>';</div><div>&nbsp; &nbsp; 'QRBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1kI7.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1kI7.png</a>';</div><div>&nbsp; &nbsp; 'SaveBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1gBc.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1gBc.png</a>';&nbsp; &nbsp;</div><div>&nbsp; &nbsp; 'ShiftBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju18QR.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju18QR.png</a>';</div><div>&nbsp; &nbsp; 'ShiftsBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1Bzj.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1Bzj.png</a>';</div><div>&nbsp; &nbsp; 'SortBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1rXI.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1rXI.png</a>';</div><div>&nbsp; &nbsp; 'StocksBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju15f6.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju15f6.png</a>';</div><div>&nbsp; &nbsp; 'TablesBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1RK8.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1RK8.png</a>';</div><div>&nbsp; &nbsp; 'ItemBookBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/30/jJzG6h.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/30/jJzG6h.png</a>';</div><div>&nbsp; &nbsp; 'CategoryItemImageUI':Output ='<a href="https://resmim.net/cdn/2025/11/14/jFyEzn.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/11/14/jFyEzn.png</a>';</div><div>&nbsp; &nbsp; 'AddStockBtnUI':Output = '<a href="https://resmim.net/cdn/2025/11/17/jqzzkG.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/11/17/jqzzkG.png</a>';</div><div><br></div><div>&nbsp; &nbsp; else{</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Resim Yok');</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp; Result=Output;</div><div>}</div><div>void TitlePnlV</div><div>&nbsp; {</div><div>&nbsp; TitlePnl = MainForm.AddNewProPanel(MainForm,'TitlePnl');</div><div>&nbsp; TitlePnl.Align = alMostTop;</div><div>&nbsp; TitlePnl.Height = (MainForm.clHeight*18)/100;</div><div>&nbsp; TitlePnl.Width = (MainForm.clWidth*100)/100;</div><div>&nbsp; TitlePnl.Margins.Top = (MainForm.clHeight * -0.0715); // -60 / 839 &#8776; -0.0715</div><div>&nbsp; TitlePnl.Margins.Left = (MainForm.clWidth * -0.0254); // -10 / 393 &#8776; -0.0254</div><div>&nbsp; TitlePnl.Margins.Right = (MainForm.clWidth * -0.0254); // -10 / 393 &#8776; -0.0254</div><div>&nbsp; TitlePnl.clProSettings.BorderWidth = 3;</div><div>&nbsp; TitlePnl.clProSettings.BorderColor = clAlphaColor.clHexToColor('#3a3a3a');</div><div>&nbsp; TitlePnl.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#4caf50');</div><div>&nbsp; TitlePnl.SetclProSettings(TitlePnl.clProSettings);</div><div><br></div><div><br></div><div>&nbsp; TitleLbl = MainForm.AddNewProLabel(TitlePnl,'TitleLbl','STOKLAR');</div><div>&nbsp; TitleLbl.Align = alCenter;</div><div>&nbsp; TitleLbl.Width = (MainForm.clWidth * 1.0178);</div><div>&nbsp; TitleLbl.Height = (MainForm.clHeight * 0.1073);</div><div>&nbsp; TitleLbl.Margins.Top = (MainForm.clHeight * 0.0715); // 60 / 839 &#8776; 0.0715</div><div>&nbsp; TitleLbl.clProSettings.FontSize = 30;</div><div>&nbsp; TitleLbl.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; TitleLbl.clProSettings.FontHorzAlign = palcenter;</div><div>&nbsp; //TitleLbl.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#1e1e1e');</div><div>&nbsp; TitleLbl.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; TitleLbl.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; MainForm.AddNewEvent(TitleLbl,tbeOnClick,'');</div><div>&nbsp; TitleLbl.SetclProSettings(TitleLbl.clProSettings);</div><div>&nbsp;&nbsp;</div><div>}</div><div>void NavbarPnlV</div><div>&nbsp; {</div><div>&nbsp; NavbarPnl = MainForm.AddNewProPanel(MainForm,'NavbarPnl');</div><div>&nbsp; NavbarPnl.Align = alMostBottom;</div><div>&nbsp; NavbarPnl.Height = (MainForm.clHeight*8)/100;</div><div>&nbsp; NavbarPnl.Width = (MainForm.clWidth*100)/100;</div><div>&nbsp; NavbarPnl.Margins.Left = (MainForm.clWidth * -0.0254); // -10 / 393 &#8776; -0.0254</div><div>&nbsp; NavbarPnl.Margins.Right = (MainForm.clWidth * -0.0254); // -10 / 393 &#8776; -0.0254</div><div>&nbsp; NavbarPnl.Margins.Bottom = (MainForm.clHeight * -0.0119); // -10 / 839 &#8776; -0.0119</div><div>&nbsp; NavbarPnl.clProSettings.BorderWidth = 3;</div><div>&nbsp; NavbarPnl.clProSettings.BorderColor = clAlphaColor.clHexToColor('#3a3a3a');</div><div>&nbsp; NavbarPnl.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#4caf50');</div><div>&nbsp; NavbarPnl.SetclProSettings(NavbarPnl.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; HomeBtn = MainForm.AddNewProButton(NavbarPnl,'HomeBtn','');</div><div>&nbsp; HomeBtn.Align = alCenter;</div><div>&nbsp; HomeBtn.Height = (NavbarPnl.Height*105)/100;</div><div>&nbsp; HomeBtn.Width = (NavbarPnl.Width*30)/100;</div><div>&nbsp; HomeBtn.Margins.Top = (MainForm.clHeight * -0.0596); // -50 / 839 &#8776; -0.0596</div><div>&nbsp; HomeBtn.clProSettings.PictureSource = IconSelect('HomePageBtnUI');</div><div>&nbsp; HomeBtn.SetclProSettings(HomeBtn.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; BackBtn = MainForm.AddNewProButton(NavbarPnl,'BackBtn','');</div><div>&nbsp; BackBtn.Align = alCenter;</div><div>&nbsp; BackBtn.Height = (NavbarPnl.Height*105)/100;</div><div>&nbsp; BackBtn.Width = (NavbarPnl.Width*30)/100;</div><div>&nbsp; BackBtn.Margins.Top = (MainForm.clHeight * -0.0596); // -50 / 839 &#8776; -0.0596</div><div>&nbsp; BackBtn.Margins.Right = (MainForm.clWidth * -0.6361); // -250 / 393 &#8776; -0.6361</div><div>&nbsp; BackBtn.clProSettings.PictureSource = IconSelect('BackArrowBtnUI');</div><div>&nbsp; BackBtn.SetclProSettings(BackBtn.clProSettings);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; SortBtn = MainForm.AddNewProButton(NavbarPnl,'SortBtn','');</div><div>&nbsp; SortBtn.Align = alCenter;</div><div>&nbsp; SortBtn.Height = (NavbarPnl.Height*105)/100;</div><div>&nbsp; SortBtn.Width = (NavbarPnl.Width*30)/100;</div><div>&nbsp; SortBtn.Margins.Top = (MainForm.clHeight * -0.0596); // -50 / 839 &#8776; -0.0596</div><div>&nbsp; SortBtn.Margins.left = (MainForm.clWidth * -0.6361); // -250 / 393 &#8776; -0.6361</div><div>&nbsp; SortBtn.clProSettings.PictureSource = IconSelect('SortBtnUI');</div><div>&nbsp; SortBtn.SetclProSettings(SortBtn.clProSettings);</div><div>&nbsp;&nbsp;</div><div>}</div><div>void MainPnlV&nbsp; &nbsp;</div><div>&nbsp; {</div><div>&nbsp; vScroll = MainForm.AddNewVertScrollBox(MainForm,'vScroll');</div><div>&nbsp; vScroll.Align = alCenter;</div><div>&nbsp; vScroll.Height = (MainForm.clHeight*80)/100;</div><div>&nbsp; vScroll.Width = (MainForm.clWidth*98)/100;</div><div>&nbsp; vScroll.Margins.bottom = 50;</div><div>}</div><div>void ToggleCategories(Sender)</div><div>var</div><div>&nbsp; J: Integer;</div><div>&nbsp; TempPnl: TclProPanel;</div><div>&nbsp; TempCategoryPnl: TClProButton;</div><div>&nbsp; CategoryIndex: Integer;</div><div>&nbsp; CategoryIndexStr: String;</div><div>&nbsp; NormalHeight: Single;</div><div>&nbsp; NormalMargin: Integer;</div><div>&nbsp; IsCategoryOpen: Boolean;</div><div>{</div><div>&nbsp; Try</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; TempCategoryPnl = MainForm.ClSender as TClProButton;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (TempCategoryPnl == nil)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage(' HATA: Kategori paneli bulunamadı!');</div><div>&nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; CategoryIndexStr = TempCategoryPnl.ClTagStr;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (CategoryIndexStr == '')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage(' HATA: Kategori numarası bulunamadı! clTagStr boş.');</div><div>&nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Try</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; CategoryIndex = StrToInt(CategoryIndexStr);</div><div>&nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp; ShowMessage(' HATA: Kategori numarası geçersiz: ' + CategoryIndexStr);</div><div>&nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if ((CategoryIndex &gt;= 1) &amp;&amp; (CategoryIndex &lt;= 100))</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; IsCategoryOpen = (TempCategoryPnl.ClTagInt == 1);</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; if (IsCategoryOpen)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; TempCategoryPnl.ClTagInt = 0;&nbsp; // Kapat</div><div>&nbsp; &nbsp; &nbsp; &nbsp; IsCategoryOpen = False;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; TempCategoryPnl.ClTagInt = 1;&nbsp; // Aç</div><div>&nbsp; &nbsp; &nbsp; &nbsp; IsCategoryOpen = True;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage(' HATA: Geçersiz kategori indeksi: ' + IntToStr(CategoryIndex));</div><div>&nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; NormalHeight = 74;</div><div>&nbsp; &nbsp; NormalMargin = 5;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; for (J = 1 to StocksCount)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; TempPnl = MainForm.clFindComponent('StocksPnl' + IntToStr(CategoryIndex) + '_' + IntToStr(J)) as TclProPanel;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; if (TempPnl &lt;&gt; nil)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (IsCategoryOpen)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempPnl.Height = NormalHeight;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempPnl.Margins.Top = NormalMargin;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempPnl.Margins.Bottom = NormalMargin;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempPnl.Visible = True;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempPnl.Height = 0;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempPnl.Margins.Top = 0;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempPnl.Margins.Bottom = 0;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempPnl.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage(' ToggleCategories hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div>void SetObjectMargins(AObject,AValue)</div><div>&nbsp; {</div><div>&nbsp; AObject.Margins.Top = AValue;</div><div>&nbsp; AObject.Margins.Bottom = AValue;</div><div>&nbsp; AObject.Margins.Left = AValue;</div><div>&nbsp; AObject.Margins.Right = AValue;</div><div>}</div><div><br></div><div><br></div><div><br></div><div>void StocksCategoryPnlVD</div><div>var</div><div>&nbsp; I, J: Integer;</div><div>{</div><div>&nbsp; Try</div><div>&nbsp; &nbsp; for (I = 1 to StocksCategoryCount)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl = MainForm.AddNewProButton(vScroll, 'StocksCategoryPnl' + IntToStr(I), '');</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl.Align = alTop;</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl.Height = 74;</div><div>&nbsp; &nbsp; &nbsp; SetObjectMargins(StocksCategoryPnl, 5);</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl.Margins.Left = (MainForm.clWidth * 0.0382);</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl.Margins.Right = (MainForm.clWidth * 0.0382);</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl.clProSettings.BorderWidth = 2;</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl.clProSettings.RoundHeight = 3.5;</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl.clProSettings.RoundWidth = 3.5;</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#1e1e1e');</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl.clProSettings.BorderColor = clAlphaColor.clHexToColor('#3a3a3a');</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl.SetclProSettings(StocksCategoryPnl.clProSettings);</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl.ClTagStr = IntToStr(I);</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; StocksCategoryPnl.ClTagInt = 1;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; MainForm.AddNewEvent(StocksCategoryPnl, tbeOnClick, 'ToggleCategories');</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; CategoryItemImage = MainForm.AddNewProImage(StocksCategoryPnl, 'CategoryItemImage' + IntToStr(I));</div><div>&nbsp; &nbsp; &nbsp; CategoryItemImage.Align = alCenter;</div><div>&nbsp; &nbsp; &nbsp; CategoryItemImage.Height = (MainForm.clHeight * 0.0775);</div><div>&nbsp; &nbsp; &nbsp; CategoryItemImage.Width = (MainForm.clWidth * 0.1654);</div><div>&nbsp; &nbsp; &nbsp; CategoryItemImage.Margins.Right = (MainForm.clWidth * 0.6743);</div><div>&nbsp; &nbsp; &nbsp; CategoryItemImage.clProSettings.PictureSource = IconSelect('CategoryItemImageUI');</div><div>&nbsp; &nbsp; &nbsp; CategoryItemImage.clProSettings.PictureAutoFit = True;</div><div>&nbsp; &nbsp; &nbsp; CategoryItemImage.SetclProSettings(CategoryItemImage.clProSettings);</div><div>&nbsp; &nbsp; &nbsp; CategoryItemImage.HitTest = false;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; CategoryNameLbl = MainForm.AddNewProLabel(StocksCategoryPnl, 'CategoryNameLbl' + IntToStr(I), 'Tatlılar');</div><div>&nbsp; &nbsp; &nbsp; CategoryNameLbl.Align = alCenter;</div><div>&nbsp; &nbsp; &nbsp; CategoryNameLbl.Width = 150;</div><div>&nbsp; &nbsp; &nbsp; CategoryNameLbl.Height = 30;</div><div>&nbsp; &nbsp; &nbsp; CategoryNameLbl.Margins.Right = 15;</div><div>&nbsp; &nbsp; &nbsp; CategoryNameLbl.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; &nbsp; &nbsp; CategoryNameLbl.clProSettings.FontSize = 20;</div><div>&nbsp; &nbsp; &nbsp; CategoryNameLbl.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; &nbsp; &nbsp; CategoryNameLbl.clProSettings.FontHorzAlign = palleading;</div><div>&nbsp; &nbsp; &nbsp; CategoryNameLbl.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; &nbsp; CategoryNameLbl.HitTest = false;</div><div>&nbsp; &nbsp; &nbsp; CategoryNameLbl.SetclProSettings(CategoryNameLbl.clProSettings);</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; for (J = 1 to StocksCount)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksPnl = MainForm.AddNewProPanel(vScroll, 'StocksPnl' + IntToStr(I) + '_' + IntToStr(J));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksPnl.Align = alTop;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksPnl.Height = 74;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; SetObjectMargins(StocksPnl, 5);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksPnl.Margins.Left = (MainForm.clWidth * 0.0382);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksPnl.Margins.Right = (MainForm.clWidth * 0.0382);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksPnl.clProSettings.BorderWidth = 2;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksPnl.clProSettings.RoundHeight = 3.5;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksPnl.clProSettings.RoundWidth = 3.5;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksPnl.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#1e1e1e');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksPnl.clProSettings.BorderColor = clAlphaColor.clHexToColor('#3a3a3a');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StocksPnl.SetclProSettings(StocksPnl.clProSettings);</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage(' StocksCategoryPnlVD hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div>{</div><div>MainForm = tclForm.Create(self);</div><div>StocksCategoryCount=3;</div><div>StocksCount =5;</div><div>TitlePnlV;</div><div>AllCategoriesOpen = True;&nbsp;&nbsp;</div><div>MainPnlV;</div><div>NavbarPnlV;</div><div>StocksCategoryPnlVD;</div><div><br></div><div><br></div><div>MainForm.SetFormColor('#121212','',clGNone);</div><div>MainForm.FormWaiting.Visible = False;</div><div>MainForm.BtnFormMenu.Visible = False;</div><div>MainForm.BtnGoBack.Visible = False;</div><div>MainForm.run;</div><div>}</div><div><br></div><br>< defer="" ="https://static.cloudflareinsights.com/beac&#111;n.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28&#111;n72PdrCzSjY4U6VaAw1EQ==" -cf-beac&#111;n="&quot;versi&#111;n&quot;:&quot;2024.11.0&quot;,&quot;token&quot;:&quot;439455f3e46c40b98dbd42a2f1a954d8&quot;,&quot;r&quot;:1,&quot;_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;locati&#111;n_startswith&quot;:null" crossorigin="an&#111;nymous"><span style="font-size:10px"><br /><br />Düzenleyen Emr.Erkmn - 19&nbsp;Kasım&nbsp;2025 Saat 09:53</span>]]>
   </description>
   <pubDate>Wed, 19 Nov 2025 09:52:29 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1232&amp;PID=2722#2722</guid>
  </item> 
  <item>
   <title><![CDATA[Panellerin açılıp kapanması : Merhaba Kaan,ya&#351;anan sorunTogg...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1232&amp;PID=2721#2721</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> 1232<br /><strong>Gönderim Zamanı:</strong> 19&nbsp;Kasım&nbsp;2025 Saat 09:41<br /><br />Merhaba Kaan,&nbsp;<br>yaşanan sorun&nbsp;<code>ToggleCategories&nbsp;</code><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015"</a> integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" 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"><div><code>fonksiyonun hangi kategoriye tıklandığını bilmemesinden ver her tıklandığından tüm kategorilerin altındaki panelleri döngüye sokmasından kaynaklanıyor.&nbsp;<br><a href="https://www.docs.clomosy.com/index.php?title=ClTagInt" target="_blank" rel="nofollow">https://www.docs.clomosy.com/index.php?title=ClTagInt</a> kullanarak yapmaya çalışalım</code></div><div><code><br></code></div>]]>
   </description>
   <pubDate>Wed, 19 Nov 2025 09:41:34 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1232&amp;PID=2721#2721</guid>
  </item> 
  <item>
   <title><![CDATA[Panellerin açılıp kapanması : Projede i&#231; i&#231;e paneller olu&#351;turuyorum...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1232&amp;PID=2714#2714</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=345">kaanl0</a><br /><strong>Konu:</strong> 1232<br /><strong>Gönderim Zamanı:</strong> 18&nbsp;Kasım&nbsp;2025 Saat 14:31<br /><br />Projede iç içe paneller oluşturuyorum dıştaki panele bastığımızda sadece onun içindeki panellerin kapanmasını istiyorum ama şuanki halinde&nbsp; bütün iç paneller kapanıyor. Sadece kendi içindeki panellerin kapanması için çok deneme yaptım ama sürekli hata aldım. istediğim şeyi nasıl yapabilirim. Kodun çalışan halini atıyorum.<div><br></div><div><div><div>var</div><div>MainForm:tclForm;</div><div>TitlePnl,NavbarPnl,StocksCategoryPnl,StocksPnl,OpacityPnl,AddEditStockPopUp:TclProPanel;</div><div>TitleLbl,ItemPieceValueLbl,ItemPieceLbl,CategoryNameLbl,ItemPriceLbl,StocksNameLbl,SupplyTimeLbl,SupplyTimeValueLbl,Piecelbl,PieceXlbl,PieceValuelbl,AddStockLbl,EditStockLbl:TClProLabel;</div><div>HomeBtn,BackBtn,SortBtn,AddStockBtn,DetailsBtn,EditStockBtn,CloseBtn,AddBtn:TClProButton;</div><div>CategoryItemImage,StocksImage:TClProImage;</div><div>StocksCategoryCount:integer;</div><div>vScroll:TCLVertScrollBox;</div><div>StocksCount:integer;</div><div>AllCategoriesOpen: boolean;</div><div><br></div><div><br></div><div><br></div><div>&nbsp;void SetObjectMargins(AObject,AValue)</div><div>&nbsp; {</div><div>&nbsp; AObject.Margins.Top = AValue;</div><div>&nbsp; AObject.Margins.Bottom = AValue;</div><div>&nbsp; AObject.Margins.Left = AValue;</div><div>&nbsp; AObject.Margins.Right = AValue;</div><div>}</div><div><br></div><div>function IconSelect(IconUI):String</div><div>&nbsp; var</div><div>&nbsp; Output: String;</div><div>&nbsp; {</div><div>&nbsp; case IconUI of</div><div>&nbsp; {</div><div>&nbsp; &nbsp; 'ClosmosyLogo':Output = '<a href="https://resmim.net/cdn/2025/10/22/jV6v6Q.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/22/jV6v6Q.png</a>';</div><div>&nbsp; &nbsp; 'AdminManagementBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju0eoT.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju0eoT.png</a>';</div><div>&nbsp; &nbsp; 'BackArrowBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1STG.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1STG.png</a>';</div><div>&nbsp; &nbsp; 'HomePageBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1fIT.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1fIT.png</a>';</div><div>&nbsp; &nbsp; 'ItemsBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1mZL.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1mZL.png</a>';</div><div>&nbsp; &nbsp; 'ManagementBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1Tqh.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1Tqh.png</a>';</div><div>&nbsp; &nbsp; 'OrderChecklistBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1jdK.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1jdK.png</a>';&nbsp;</div><div>&nbsp; &nbsp; 'OrdersBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1CGQ.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1CGQ.png</a>';</div><div>&nbsp; &nbsp; 'QRBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1kI7.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1kI7.png</a>';</div><div>&nbsp; &nbsp; 'SaveBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1gBc.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1gBc.png</a>';&nbsp; &nbsp;</div><div>&nbsp; &nbsp; 'ShiftBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju18QR.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju18QR.png</a>';</div><div>&nbsp; &nbsp; 'ShiftsBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1Bzj.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1Bzj.png</a>';</div><div>&nbsp; &nbsp; 'SortBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1rXI.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1rXI.png</a>';</div><div>&nbsp; &nbsp; 'StocksBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju15f6.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju15f6.png</a>';</div><div>&nbsp; &nbsp; 'TablesBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/24/ju1RK8.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/24/ju1RK8.png</a>';</div><div>&nbsp; &nbsp; 'ItemBookBtnUI':Output = '<a href="https://resmim.net/cdn/2025/10/30/jJzG6h.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/30/jJzG6h.png</a>';</div><div>&nbsp; &nbsp; 'CategoryItemImageUI':Output ='<a href="https://resmim.net/cdn/2025/11/14/jFyEzn.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/11/14/jFyEzn.png</a>';</div><div>&nbsp; &nbsp; 'AddStockBtnUI':Output = '<a href="https://resmim.net/cdn/2025/11/17/jqzzkG.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/11/17/jqzzkG.png</a>';</div><div><br></div><div>&nbsp; &nbsp; else{</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Resim Yok');</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp; Result=Output;</div><div>}</div><div><br></div><div><br></div><div>void TitlePnlV</div><div>&nbsp; {</div><div>&nbsp; TitlePnl = MainForm.AddNewProPanel(MainForm,'TitlePnl');</div><div>&nbsp; TitlePnl.Align = alMostTop;</div><div>&nbsp; TitlePnl.Height = (MainForm.clHeight*18)/100;</div><div>&nbsp; TitlePnl.Width = (MainForm.clWidth*100)/100;</div><div>&nbsp; TitlePnl.Margins.Top = (MainForm.clHeight * -0.0715); // -60 / 839 &#8776; -0.0715</div><div>&nbsp; TitlePnl.Margins.Left = (MainForm.clWidth * -0.0254); // -10 / 393 &#8776; -0.0254</div><div>&nbsp; TitlePnl.Margins.Right = (MainForm.clWidth * -0.0254); // -10 / 393 &#8776; -0.0254</div><div>&nbsp; TitlePnl.clProSettings.BorderWidth = 3;</div><div>&nbsp; TitlePnl.clProSettings.BorderColor = clAlphaColor.clHexToColor('#3a3a3a');</div><div>&nbsp; TitlePnl.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#4caf50');</div><div>&nbsp; TitlePnl.SetclProSettings(TitlePnl.clProSettings);</div><div><br></div><div><br></div><div>&nbsp; TitleLbl = MainForm.AddNewProLabel(TitlePnl,'TitleLbl','STOKLAR');</div><div>&nbsp; TitleLbl.Align = alCenter;</div><div>&nbsp; TitleLbl.Width = (MainForm.clWidth * 1.0178);</div><div>&nbsp; TitleLbl.Height = (MainForm.clHeight * 0.1073);</div><div>&nbsp; TitleLbl.Margins.Top = (MainForm.clHeight * 0.0715); // 60 / 839 &#8776; 0.0715</div><div>&nbsp; TitleLbl.clProSettings.FontSize = 30;</div><div>&nbsp; TitleLbl.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; TitleLbl.clProSettings.FontHorzAlign = palcenter;</div><div>&nbsp; //TitleLbl.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#1e1e1e');</div><div>&nbsp; TitleLbl.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; TitleLbl.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; MainForm.AddNewEvent(TitleLbl,tbeOnClick,'');</div><div>&nbsp; TitleLbl.SetclProSettings(TitleLbl.clProSettings);</div><div>&nbsp;&nbsp;</div><div>}</div><div>void NavbarPnlV</div><div>&nbsp; {</div><div>&nbsp; NavbarPnl = MainForm.AddNewProPanel(MainForm,'NavbarPnl');</div><div>&nbsp; NavbarPnl.Align = alMostBottom;</div><div>&nbsp; NavbarPnl.Height = (MainForm.clHeight*8)/100;</div><div>&nbsp; NavbarPnl.Width = (MainForm.clWidth*100)/100;</div><div>&nbsp; NavbarPnl.Margins.Left = (MainForm.clWidth * -0.0254); // -10 / 393 &#8776; -0.0254</div><div>&nbsp; NavbarPnl.Margins.Right = (MainForm.clWidth * -0.0254); // -10 / 393 &#8776; -0.0254</div><div>&nbsp; NavbarPnl.Margins.Bottom = (MainForm.clHeight * -0.0119); // -10 / 839 &#8776; -0.0119</div><div>&nbsp; NavbarPnl.clProSettings.BorderWidth = 3;</div><div>&nbsp; NavbarPnl.clProSettings.BorderColor = clAlphaColor.clHexToColor('#3a3a3a');</div><div>&nbsp; NavbarPnl.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#4caf50');</div><div>&nbsp; NavbarPnl.SetclProSettings(NavbarPnl.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; HomeBtn = MainForm.AddNewProButton(NavbarPnl,'HomeBtn','');</div><div>&nbsp; HomeBtn.Align = alCenter;</div><div>&nbsp; HomeBtn.Height = (NavbarPnl.Height*105)/100;</div><div>&nbsp; HomeBtn.Width = (NavbarPnl.Width*30)/100;</div><div>&nbsp; HomeBtn.Margins.Top = (MainForm.clHeight * -0.0596); // -50 / 839 &#8776; -0.0596</div><div>&nbsp; HomeBtn.clProSettings.PictureSource = IconSelect('HomePageBtnUI');</div><div>&nbsp; HomeBtn.SetclProSettings(HomeBtn.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; BackBtn = MainForm.AddNewProButton(NavbarPnl,'BackBtn','');</div><div>&nbsp; BackBtn.Align = alCenter;</div><div>&nbsp; BackBtn.Height = (NavbarPnl.Height*105)/100;</div><div>&nbsp; BackBtn.Width = (NavbarPnl.Width*30)/100;</div><div>&nbsp; BackBtn.Margins.Top = (MainForm.clHeight * -0.0596); // -50 / 839 &#8776; -0.0596</div><div>&nbsp; BackBtn.Margins.Right = (MainForm.clWidth * -0.6361); // -250 / 393 &#8776; -0.6361</div><div>&nbsp; BackBtn.clProSettings.PictureSource = IconSelect('BackArrowBtnUI');</div><div>&nbsp; BackBtn.SetclProSettings(BackBtn.clProSettings);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; SortBtn = MainForm.AddNewProButton(NavbarPnl,'SortBtn','');</div><div>&nbsp; SortBtn.Align = alCenter;</div><div>&nbsp; SortBtn.Height = (NavbarPnl.Height*105)/100;</div><div>&nbsp; SortBtn.Width = (NavbarPnl.Width*30)/100;</div><div>&nbsp; SortBtn.Margins.Top = (MainForm.clHeight * -0.0596); // -50 / 839 &#8776; -0.0596</div><div>&nbsp; SortBtn.Margins.left = (MainForm.clWidth * -0.6361); // -250 / 393 &#8776; -0.6361</div><div>&nbsp; SortBtn.clProSettings.PictureSource = IconSelect('SortBtnUI');</div><div>&nbsp; SortBtn.SetclProSettings(SortBtn.clProSettings);</div><div>&nbsp;&nbsp;</div><div>}</div><div>void MainPnlV&nbsp; &nbsp;</div><div>&nbsp; {</div><div>&nbsp; vScroll = MainForm.AddNewVertScrollBox(MainForm,'vScroll');</div><div>&nbsp; vScroll.Align = alCenter;</div><div>&nbsp; vScroll.Height = (MainForm.clHeight*80)/100;</div><div>&nbsp; vScroll.Width = (MainForm.clWidth*98)/100;</div><div>&nbsp; vScroll.Margins.bottom = 50;</div><div>}</div><div><br></div><div><br></div><div><br></div><div>void ToggleCategories(Sender: TObject)</div><div>var</div><div>&nbsp; I, J: integer;</div><div>&nbsp; TempPnl: TclProPanel;</div><div>&nbsp; NormalHeight: single;</div><div>&nbsp; NormalMargin: integer;</div><div>{</div><div>&nbsp; NormalHeight = 74; // Panelin orijinal yüksekliği</div><div>&nbsp; NormalMargin = 5; //&nbsp; SetObjectMargins'tan (7)</div><div><br></div><div>&nbsp; // Durumu tersine çevir (açık &#8594; kapalı, kapalı &#8594; açık)</div><div>&nbsp; AllCategoriesOpen = not AllCategoriesOpen;</div><div><br></div><div>&nbsp; // TÜM alt panellerin yüksekliğini ve margin'ini değiştir</div><div>&nbsp; for (I = 1 to StocksCategoryCount) {</div><div>&nbsp; &nbsp; for (J = 1 to StocksCount) {</div><div>&nbsp; &nbsp; &nbsp; TempPnl = MainForm.clFindComponent('StocksPnl' + IntToStr(I) + '_' + IntToStr(J));</div><div>&nbsp; &nbsp; &nbsp; if (TempPnl &lt;&gt; nil) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (AllCategoriesOpen) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempPnl.Height = NormalHeight;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempPnl.Margins.Top = NormalMargin;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempPnl.Margins.Bottom = NormalMargin;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; } else {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempPnl.Height = 0;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempPnl.Margins.Top = 0;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempPnl.Margins.Bottom = 0;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div><br></div><div><br></div><div>}</div><div><br></div><div>void StocksCategoryPnlVD</div><div>&nbsp; var</div><div>&nbsp; I,J:integer;</div><div>&nbsp; {</div><div>&nbsp;&nbsp;</div><div>&nbsp; for (I = 1 to StocksCategoryCount) {</div><div>&nbsp; StocksCategoryPnl = MainForm.AddNewProButton(vScroll,'StocksCategoryPnl'+IntToStr(I),'');</div><div>&nbsp; StocksCategoryPnl.Align = alTop;</div><div>&nbsp; StocksCategoryPnl.Height = 74;</div><div>&nbsp; //StocksCategoryPnl.Height = (MainForm.clHeight * 0.0930); // 78 / 839 &#8776; 0.0930</div><div>&nbsp; SetObjectMargins(StocksCategoryPnl,5);</div><div>&nbsp; StocksCategoryPnl.Margins.Left = (MainForm.clWidth * 0.0382); // 15 / 393 &#8776; 0.0382</div><div>&nbsp; StocksCategoryPnl.Margins.Right = (MainForm.clWidth * 0.0382); // 15 / 393 &#8776; 0.0382</div><div>&nbsp; StocksCategoryPnl.clProSettings.BorderWidth = 2;</div><div>&nbsp; StocksCategoryPnl.clProSettings.RoundHeight=3.5;</div><div>&nbsp; StocksCategoryPnl.clProSettings.RoundWidth=3.5;</div><div>&nbsp; StocksCategoryPnl.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#1e1e1e');</div><div>&nbsp; StocksCategoryPnl.clProSettings.BorderColor = clAlphaColor.clHexToColor('#3a3a3a');</div><div>&nbsp; StocksCategoryPnl.SetclProSettings(StocksCategoryPnl.clProSettings);</div><div>&nbsp; MainForm.AddNewEvent(StocksCategoryPnl, tbeOnClick, 'ToggleCategories');</div><div>&nbsp; &nbsp;</div><div>&nbsp; CategoryItemImage = MainForm.AddNewProImage(StocksCategoryPnl,'CategoryItemImage'+IntToStr(I));</div><div>&nbsp; CategoryItemImage.Align = alCenter;</div><div>&nbsp; CategoryItemImage.Height = (MainForm.clHeight * 0.0775); // 65 / 839 &#8776; 0.0775</div><div>&nbsp; CategoryItemImage.Width = (MainForm.clWidth * 0.1654); // 65 / 393 &#8776; 0.1654</div><div>&nbsp; CategoryItemImage.Margins.Right = (MainForm.clWidth * 0.6743); // 265 / 393 &#8776; 0.6743</div><div>&nbsp; CategoryItemImage.clProSettings.PictureSource = IconSelect('CategoryItemImageUI');</div><div>&nbsp; CategoryItemImage.clProSettings.PictureAutoFit = True;</div><div>&nbsp; CategoryItemImage.SetclProSettings(CategoryItemImage.clProSettings);</div><div>&nbsp; CategoryItemImage.HitTest = false;</div><div>&nbsp; //CategoryItemImage.ClTagStr = IntToStr(I);</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; CategoryNameLbl = MainForm.AddNewProLabel(StocksCategoryPnl,'CategoryNameLbl'+IntToStr(I),'Tatlılar');</div><div>&nbsp; CategoryNameLbl.Align = alCenter;</div><div>&nbsp; CategoryNameLbl.Width = 150;</div><div>&nbsp; CategoryNameLbl.Height = 30;</div><div>&nbsp; CategoryNameLbl.Margins.Right = 15;</div><div>&nbsp; //CategoryNameLbl.Margins.Top =15;</div><div>&nbsp; CategoryNameLbl.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; CategoryNameLbl.clProSettings.FontSize = 20;</div><div>&nbsp; //CategoryNameLbl.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#fff700');</div><div>&nbsp; CategoryNameLbl.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; CategoryNameLbl.clProSettings.FontHorzAlign = palleading;</div><div>&nbsp; CategoryNameLbl.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; CategoryNameLbl.HitTest = false;</div><div>&nbsp; CategoryNameLbl.SetclProSettings(CategoryNameLbl.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; for (J = 1 to&nbsp; StocksCount ) {</div><div>&nbsp; StocksPnl = MainForm.addnewpropanel(vScroll, 'StocksPnl'+IntToStr(I)+'_'+IntToStr(J));</div><div>&nbsp; StocksPnl.Align = alTop;</div><div>&nbsp; //StocksPnl.Height = (MainForm.clHeight * 0.0930); // 78 / 839 &#8776; 0.0930</div><div>&nbsp; StocksPnl.Height = 74;</div><div>&nbsp; SetObjectMargins(StocksPnl,5);</div><div>&nbsp; StocksPnl.Margins.Left = (MainForm.clWidth * 0.0382); // 15 / 393 &#8776; 0.0382</div><div>&nbsp; StocksPnl.Margins.Right = (MainForm.clWidth * 0.0382); // 15 / 393 &#8776; 0.0382</div><div>&nbsp; StocksPnl.clProSettings.BorderWidth = 2;</div><div>&nbsp; StocksPnl.clProSettings.RoundHeight=3.5;</div><div>&nbsp; StocksPnl.clProSettings.RoundWidth=3.5;</div><div>&nbsp; StocksPnl.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#1e1e1e');</div><div>&nbsp; StocksPnl.clProSettings.BorderColor = clAlphaColor.clHexToColor('#3a3a3a');</div><div>&nbsp; StocksPnl.SetclProSettings(StocksPnl.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; StocksImage = MainForm.AddNewProImage(StocksPnl,'StocksImage'+IntToStr(I)+'_'+IntToStr(J));</div><div>&nbsp; StocksImage.Align = alCenter;</div><div>&nbsp; StocksImage.Height = (MainForm.clHeight * 0.0775); // 65 / 839 &#8776; 0.0775</div><div>&nbsp; StocksImage.Width = (MainForm.clWidth * 0.1654); // 65 / 393 &#8776; 0.1654</div><div>&nbsp; StocksImage.Margins.Right = (MainForm.clWidth * 0.6743); // 265 / 393 &#8776; 0.6743</div><div>&nbsp; StocksImage.clProSettings.PictureSource = '<a href="https://resmim.net/cdn/2025/10/27/jAJjr1.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/10/27/jAJjr1.png</a>';</div><div>&nbsp; StocksImage.clProSettings.PictureAutoFit = True;</div><div>&nbsp; StocksImage.SetclProSettings(StocksImage.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; StocksNameLbl = MainForm.AddNewProLabel(StocksPnl,'StocksNameLbl'+IntToStr(I)+'_'+IntToStr(J),'Tiramisu');</div><div>&nbsp; StocksNameLbl.Align = alCenter;</div><div>&nbsp; StocksNameLbl.Width = (MainForm.clWidth * 0.3817); // 150 / 393 &#8776; 0.3817</div><div>&nbsp; StocksNameLbl.Height = (MainForm.clHeight * 0.0358); // 30 / 839 &#8776; 0.0358</div><div>&nbsp; StocksNameLbl.Margins.Right = (MainForm.clWidth * 0.0382); // 15 / 393 &#8776; 0.0382</div><div>&nbsp; StocksNameLbl.Margins.Bottom=30;</div><div>&nbsp; StocksNameLbl.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; StocksNameLbl.clProSettings.FontSize = 20;</div><div>&nbsp; //StocksNameLbl.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#fff700');</div><div>&nbsp; StocksNameLbl.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; StocksNameLbl.clProSettings.FontHorzAlign = palleading;</div><div>&nbsp; StocksNameLbl.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; StocksNameLbl.SetclProSettings(StocksNameLbl.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; DetailsBtn= MainForm.AddNewProButton(StocksPnl, 'DetailsBtn'+IntToStr(I)+'_'+IntToStr(J), 'DETAYLAR');</div><div>&nbsp; DetailsBtn.Align = alCenter;</div><div>&nbsp; DetailsBtn.Width =74;</div><div>&nbsp; DetailsBtn.Height=74;</div><div>&nbsp; DetailsBtn.Margins.Left=282;</div><div>&nbsp; DetailsBtn.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; DetailsBtn.clProSettings.FontSize = 12;</div><div>&nbsp; DetailsBtn.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; DetailsBtn.clProSettings.FontHorzAlign = palcenter;</div><div>&nbsp; DetailsBtn.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; DetailsBtn.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#4caf50');</div><div>&nbsp; DetailsBtn.clProSettings.RoundWidth = 3.5;</div><div>&nbsp; DetailsBtn.clProSettings.RoundHeight = 3.5;</div><div>&nbsp; DetailsBtn.clProSettings.BorderColor= clAlphaColor.clHexToColor('#3a3a3a')</div><div>&nbsp; DetailsBtn.clProSettings.BorderWidth =2;</div><div>&nbsp; MainForm.AddNewEvent(DetailsBtn,tbeOnClick,'');</div><div>&nbsp; DetailsBtn.SetclProSettings(DetailsBtn.clProSettings);</div><div>&nbsp; }</div><div>&nbsp; }</div><div>}</div><div>{</div><div><br></div><div>MainForm = tclForm.Create(self);</div><div>StocksCategoryCount=3;</div><div>StocksCount =5;</div><div>TitlePnlV;</div><div>AllCategoriesOpen = True;&nbsp;&nbsp;</div><div>MainPnlV;</div><div>NavbarPnlV;</div><div>StocksCategoryPnlVD;</div><div><br></div><div><br></div><div>MainForm.SetFormColor('#121212','',clGNone);</div><div>MainForm.FormWaiting.Visible = False;</div><div>MainForm.BtnFormMenu.Visible = False;</div><div>MainForm.BtnGoBack.Visible = False;</div><div>MainForm.run;</div><div>}</div></div></div><div><br></div>]]>
   </description>
   <pubDate>Tue, 18 Nov 2025 14:31:42 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1232&amp;PID=2714#2714</guid>
  </item> 
 </channel>
</rss>