<?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 : butonun içinde panel kullanımı</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : butonun içinde panel kullanımı]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 14:38:54 +0000</pubDate>
  <lastBuildDate>Thu, 01 Aug 2024 11:07:51 +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=707</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[butonun içinde panel kullanımı : Merhaba Zeynep,Hatan hala devam...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=707&amp;PID=1354#1354</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=106">Developer</a><br /><strong>Konu:</strong> 707<br /><strong>Gönderim Zamanı:</strong> 01&nbsp;Ağustos&nbsp;2024 Saat 11:07<br /><br />Merhaba Zeynep,<div>Hatan hala devam ediyor mu?</div>]]>
   </description>
   <pubDate>Thu, 01 Aug 2024 11:07:51 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=707&amp;PID=1354#1354</guid>
  </item> 
  <item>
   <title><![CDATA[butonun içinde panel kullanımı : // Maalesef tekrardan ayn&#305; yerde...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=707&amp;PID=1125#1125</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=203">zeynep irem</a><br /><strong>Konu:</strong> 707<br /><strong>Gönderim Zamanı:</strong> 23&nbsp;Temmuz&nbsp;2024 Saat 16:03<br /><br /><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;">// Maalesef tekrardan aynı yerde hata veriyor.</span></div><div><span style="color: #0000ff;">var</span></div><div>&nbsp; Form1: TclStyleForm;</div><div>&nbsp; btnS: TclProButton;</div><div>&nbsp; vScroll: TCLVertScrollBox;</div><div>&nbsp; BtnCaptionArr, BtnNameArr, btnImgArr: <span style="color: #0000ff;">array</span> <span style="color: #0000ff;">of</span> String;</div><div>&nbsp; i: Integer;</div><div>&nbsp; trfPanel: TclProPanel;</div><div>&nbsp; Panels: <span style="color: #0000ff;">array</span>&#091;<span style="color: #098658;">0</span>.<span style="color: #098658;">.4</span>&#093; <span style="color: #0000ff;">of</span> TclProPanel; </div><br><div><span style="color: #0000ff;">procedure</span> ShowPanel(<span style="color: #0000ff;">index</span>: Integer);</div><div><span style="color: #0000ff;">var</span></div><div>&nbsp; j: Integer;</div><div><span style="color: #0000ff;">begin</span></div><div>&nbsp; <span style="color: #008000;">// Tüm panelleri gizle</span></div><div>&nbsp; <span style="color: #0000ff;">for</span> j := <span style="color: #098658;">0</span> <span style="color: #0000ff;">to</span> <span style="color: #098658;">4</span> <span style="color: #0000ff;">do</span></div><div>&nbsp; <span style="color: #0000ff;">begin</span></div><div>&nbsp; &nbsp; Panels&#091;j&#093;.Visible := <span style="color: #0000ff;">False</span>;</div><div>&nbsp; <span style="color: #0000ff;">end</span>;</div><br><div>&nbsp; <span style="color: #008000;">// Belirli paneli görünür yap</span></div><div>&nbsp; Panels&#091;<span style="color: #0000ff;">index</span>&#093;.Visible := <span style="color: #0000ff;">True</span>;</div><div><span style="color: #0000ff;">end</span>;</div><br><div><span style="color: #0000ff;">procedure</span> BtnOnClick;</div><div><span style="color: #0000ff;">var</span></div><div>&nbsp; clickedBtn: TClProButton;</div><div>&nbsp; <span style="color: #0000ff;">index</span>: Integer;</div><div><span style="color: #0000ff;">begin</span></div><div>&nbsp; clickedBtn := TClProButton(Form1.clSender);</div><br><div>&nbsp; </div><div>&nbsp; <span style="color: #0000ff;">for</span> <span style="color: #0000ff;">index</span> := <span style="color: #098658;">0</span> <span style="color: #0000ff;">to</span> <span style="color: #098658;">4</span> <span style="color: #0000ff;">do</span></div><div>&nbsp; <span style="color: #0000ff;">begin</span></div><div>&nbsp; &nbsp; <span style="color: #0000ff;">if</span> clickedBtn.Caption = BtnNameArr&#091;<span style="color: #0000ff;">index</span>&#093; <span style="color: #0000ff;">then</span></div><div>&nbsp; &nbsp; <span style="color: #0000ff;">begin</span></div><div>&nbsp; &nbsp; &nbsp; ShowPanel(<span style="color: #0000ff;">index</span>);</div><div>&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Break</span>;</div><div>&nbsp; &nbsp; <span style="color: #0000ff;">end</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;">begin</span></div><div>&nbsp; Form1 := TclStyleForm.Create(Self);</div><div>&nbsp; Form1.SetFormColor(<span style="color: #a31515;">'#ffffff'</span>, <span style="color: #a31515;">''</span>, clGNone);</div><div>&nbsp; Form1.clSetCaption(<span style="color: #a31515;">'Menu Listesi'</span>);</div><br><br><div>&nbsp; vScroll := Form1.AddNewVertScrollBox(Form1, <span style="color: #a31515;">'ScrollBoxY'</span>);</div><div>&nbsp; vScroll.Align := alMostTop;</div><div>&nbsp; vScroll.Height := Form1.ClHeight - <span style="color: #098658;">50</span>; </div><br><br><div>&nbsp; BtnNameArr := &#091;<span style="color: #a31515;">'btntkrdg'</span>, <span style="color: #a31515;">'btnpd'</span>, <span style="color: #a31515;">'btnkbk'</span>, <span style="color: #a31515;">'btnhşmrm'</span>, <span style="color: #a31515;">'btnkstnkbb'</span>&#093;;</div><div>&nbsp; BtnCaptionArr := &#091;<span style="color: #a31515;">'Tekirdağ Köftesi'</span>, <span style="color: #a31515;">'Tahinli Pide'</span>, <span style="color: #a31515;">'Kabak Tatlısı'</span>, <span style="color: #a31515;">'Höşmerim'</span>, <span style="color: #a31515;">'Kestane Kebabı'</span>&#093;;</div><div>&nbsp; btnImgArr := &#091;<span style="color: #a31515;">'<a href="https://www.yemektarifi.com/wp-c&#111;ntent/uploads/2018/10/Tekirda%C4%9F-K%C3%B6ftesi-Tarifi-1.jpg" target="_blank" rel="nofollow">https://www.yemektarifi.com/wp-content/uploads/2018/10/Tekirda%C4%9F-K%C3%B6ftesi-Tarifi-1.jpg</a>'</span>,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #a31515;">'<a href="https://cdn.yemek.com/mncrop/940/625/uploads/2021/08/tahinli-pide-kucuk.jpg" target="_blank" rel="nofollow">https://cdn.yemek.com/mncrop/940/625/uploads/2021/08/tahinli-pide-kucuk.jpg</a>'</span>,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #a31515;">'<a href="https://iasbh.tmgrup.com.tr/6ebbab/650/344/0/0/752/395?u=https://isbh.tmgrup.com.tr/sbh/2020/04/24/kabak-tatli-tarifi-kabak-tatlisi-nasil-yapilir-1587752707126.jpg" target="_blank" rel="nofollow">https://iasbh.tmgrup.com.tr/6ebbab/650/344/0/0/752/395?u=https://isbh.tmgrup.com.tr/sbh/2020/04/24/kabak-tatli-tarifi-kabak-tatlisi-nasil-yapilir-1587752707126.jpg</a>'</span>,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #a31515;">'<a href="https://www.mutfagimdantarifler.com/wp-c&#111;ntent/uploads/2017/02/hosmerim.jpg" target="_blank" rel="nofollow">https://www.mutfagimdantarifler.com/wp-content/uploads/2017/02/hosmerim.jpg</a>'</span>,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #a31515;">'<a href="https://i.pinimg.com/736x/d5/98/52/d59852ab2c5da1f001d4e17fb19f2d8e.jpg" target="_blank" rel="nofollow">https://i.pinimg.com/736x/d5/98/52/d59852ab2c5da1f001d4e17fb19f2d8e.jpg</a>'</span>&#093;;</div><br><div>&nbsp; <span style="color: #0000ff;">for</span> i := <span style="color: #098658;">0</span> <span style="color: #0000ff;">to</span> <span style="color: #098658;">4</span> <span style="color: #0000ff;">do</span></div><div>&nbsp; <span style="color: #0000ff;">begin</span></div><div>&nbsp; </div><div>&nbsp; &nbsp; btnS := Form1.AddNewProButton(vScroll, BtnNameArr, BtnCaptionArr);</div><div>&nbsp; &nbsp; btnS.Align := AlTop;</div><div>&nbsp; &nbsp; btnS.Height := <span style="color: #098658;">150</span>;</div><div>&nbsp; &nbsp; btnS.Margins.Bottom := <span style="color: #098658;">5</span>;</div><div>&nbsp; &nbsp; btnS.clProSettings.IsFill := <span style="color: #0000ff;">True</span>;</div><div>&nbsp; &nbsp; btnS.clProSettings.FontSize := <span style="color: #098658;">14</span>;</div><div>&nbsp; &nbsp; btnS.clProSettings.FontColor := clAlphaColor.clHexToColor(<span style="color: #a31515;">'#000000'</span>);</div><div>&nbsp; &nbsp; btnS.clProSettings.TextSettings.Font.Style := &#091;fsBold, fsItalic&#093;;</div><div>&nbsp; &nbsp; btnS.clProSettings.BackgroundColor := clAlphaColor.clHexToColor(<span style="color: #a31515;">'#f2eeed'</span>);</div><div>&nbsp; &nbsp; btnS.clProSettings.FontVertAlign := palLeading;</div><div>&nbsp; &nbsp; btnS.clProSettings.FontHorzAlign := palCenter;</div><div>&nbsp; &nbsp; btnS.clProSettings.PictureSource := btnImgArr;</div><div>&nbsp; &nbsp; btnS.clProSettings.PictureAutoFit := <span style="color: #0000ff;">True</span>;</div><div>&nbsp; &nbsp; btnS.SetclProSettings(btnS.clProSettings);</div><div>&nbsp; &nbsp; btnS.Caption := BtnNameArr; </div><div>&nbsp; &nbsp; Form1.AddNewEvent(btnS, tbeOnClick, <span style="color: #a31515;">'BtnOnClick'</span>);</div><br><div>&nbsp; &nbsp; Panels := Form1.AddNewProPanel(Form1, <span style="color: #a31515;">'Panel'</span>+IntToStr(i));</div><div>&nbsp; &nbsp; Panels.clProSettings.BorderWidth := <span style="color: #098658;">2</span>;</div><div>&nbsp; &nbsp; Panels.clProSettings.BorderColor := clAlphaColor.clHexToColor(<span style="color: #a31515;">'#000000'</span>);</div><div>&nbsp; &nbsp; Panels.clProSettings.RoundHeight := <span style="color: #098658;">10</span>;</div><div>&nbsp; &nbsp; Panels.clProSettings.RoundWidth := <span style="color: #098658;">10</span>;</div><div>&nbsp; &nbsp; Panels.Visible := <span style="color: #0000ff;">False</span>; </div><div>&nbsp; <span style="color: #0000ff;">end</span>;</div><br><div>&nbsp; ShowPanel(<span style="color: #098658;">0</span>);</div><div>&nbsp; Form1.Run;</div><div><span style="color: #0000ff;">end</span>;</div><div>--------------------------------------------------------------------</div><div>TclStyleForm</div><div>RUNTIME ERROR</div><div>Invalid variant <span style="color: #0000ff;">type</span> conversion when evaluating instruction CallProc (<span style="color: #3030c0;">$FFFFFFFF</span>,<span style="color: #3030c0;">$3</span>,<span style="color: #3030c0;">$1BC0EA8</span>,<span style="color: #3030c0;">$BD0EFE0</span>,<span style="color: #a31515;">'AddNewProButton'</span>).</div><div>Stack content <span style="color: #0000ff;">is</span>: &#091;(unknown),Null,<span style="color: #098658;">0</span>,Null...&#093;.</div><div>Source position: <span style="color: #098658;">64</span>,<span style="color: #098658;">70</span></div><div>Position: <span style="color: #098658;">64</span>, <span style="color: #098658;">70</span></div><div>Clomosy Build : <span style="color: #098658;">20240709.111531</span></div><div><span style="color: #098658;"><br></span></div></div>]]>
   </description>
   <pubDate>Tue, 23 Jul 2024 16:03:47 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=707&amp;PID=1125#1125</guid>
  </item> 
  <item>
   <title><![CDATA[butonun içinde panel kullanımı : Merhaba Zeynep,D&#252;zeltmeleri yapt&#305;k....]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=707&amp;PID=1119#1119</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=106">Developer</a><br /><strong>Konu:</strong> 707<br /><strong>Gönderim Zamanı:</strong> 23&nbsp;Temmuz&nbsp;2024 Saat 15:08<br /><br />Merhaba Zeynep,<div>Düzeltmeleri yaptık. Kontrol eder misin?</div><div><div>&nbsp;var</div><div>&nbsp; Form1: TclStyleForm;</div><div>&nbsp; btnS: TclProButton;</div><div>&nbsp; vScroll: TCLVertScrollBox;</div><div>&nbsp; BtnCaptionArr, BtnNameArr, btnImgArr: array of String;</div><div>&nbsp; i: Integer;</div><div>&nbsp; trfPanel: TclProPanel;</div><div>&nbsp; Panels: array&#091;0..4&#093; of TclProPanel;&nbsp;</div><div><br></div><div>procedure ShowPanel(index: Integer);</div><div>var</div><div>&nbsp; j: Integer;</div><div>begin</div><div>&nbsp; // Tüm panelleri gizle</div><div>&nbsp; for j := 0 to 4 do</div><div>&nbsp; begin</div><div>&nbsp; &nbsp; Panels&#091;j&#093;.Visible := False;</div><div>&nbsp; end;</div><div><br></div><div>&nbsp; // Belirli paneli görünür yap</div><div>&nbsp; Panels&#091;index&#093;.Visible := True;</div><div>end;</div><div><br></div><div>procedure BtnOnClick;</div><div>var</div><div>&nbsp; clickedBtn: TClProButton;</div><div>&nbsp; index: Integer;</div><div>begin</div><div>&nbsp; clickedBtn := TClProButton(Form1.clSender);</div><div><br></div><div>&nbsp;&nbsp;</div><div>&nbsp; for index := 0 to 4 do</div><div>&nbsp; begin</div><div>&nbsp; &nbsp; if clickedBtn.Caption = BtnNameArr&#091;index&#093; then</div><div>&nbsp; &nbsp; begin</div><div>&nbsp; &nbsp; &nbsp; ShowPanel(index);</div><div>&nbsp; &nbsp; &nbsp; Break;</div><div>&nbsp; &nbsp; end;</div><div>&nbsp; end;</div><div>end;</div><div><br></div><div>begin</div><div>&nbsp; Form1 := TclStyleForm.Create(Self);</div><div>&nbsp; Form1.SetFormColor('#ffffff', '', clGNone);</div><div>&nbsp; Form1.clSetCaption('Menu Listesi');</div><div><br></div><div><br></div><div>&nbsp; vScroll := Form1.AddNewVertScrollBox(Form1, 'ScrollBoxY');</div><div>&nbsp; vScroll.Align := alMostTop;</div><div>&nbsp; vScroll.Height := Form1.ClHeight - 50;&nbsp;</div><div><br></div><div><br></div><div>&nbsp; BtnNameArr := &#091;'btntkrdg', 'btnpd', 'btnkbk', 'btnhşmrm', 'btnkstnkbb'&#093;;</div><div>&nbsp; BtnCaptionArr := &#091;'Tekirdağ Köftesi', 'Tahinli Pide', 'Kabak Tatlısı', 'Höşmerim', 'Kestane Kebabı'&#093;;</div><div>&nbsp; btnImgArr := &#091;'<a href="https://www.yemektarifi.com/wp-c&#111;ntent/uploads/2018/10/Tekirda%C4%9F-K%C3%B6ftesi-Tarifi-1.jpg" target="_blank" rel="nofollow">https://www.yemektarifi.com/wp-content/uploads/2018/10/Tekirda%C4%9F-K%C3%B6ftesi-Tarifi-1.jpg</a>',</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '<a href="https://cdn.yemek.com/mncrop/940/625/uploads/2021/08/tahinli-pide-kucuk.jpg" target="_blank" rel="nofollow">https://cdn.yemek.com/mncrop/940/625/uploads/2021/08/tahinli-pide-kucuk.jpg</a>',</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '<a href="https://iasbh.tmgrup.com.tr/6ebbab/650/344/0/0/752/395?u=https://isbh.tmgrup.com.tr/sbh/2020/04/24/kabak-tatli-tarifi-kabak-tatlisi-nasil-yapilir-1587752707126.jpg" target="_blank" rel="nofollow">https://iasbh.tmgrup.com.tr/6ebbab/650/344/0/0/752/395?u=https://isbh.tmgrup.com.tr/sbh/2020/04/24/kabak-tatli-tarifi-kabak-tatlisi-nasil-yapilir-1587752707126.jpg</a>',</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '<a href="https://www.mutfagimdantarifler.com/wp-c&#111;ntent/uploads/2017/02/hosmerim.jpg" target="_blank" rel="nofollow">https://www.mutfagimdantarifler.com/wp-content/uploads/2017/02/hosmerim.jpg</a>',</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '<a href="https://i.pinimg.com/736x/d5/98/52/d59852ab2c5da1f001d4e17fb19f2d8e.jpg" target="_blank" rel="nofollow">https://i.pinimg.com/736x/d5/98/52/d59852ab2c5da1f001d4e17fb19f2d8e.jpg</a>'&#093;;</div><div><br></div><div>&nbsp; for i := 0 to 4 do</div><div>&nbsp; begin</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; btnS := Form1.AddNewProButton(vScroll, BtnNameArr<em>, BtnCaptionArr<em>);</div><div>&nbsp; &nbsp; btnS.Align := AlTop;</div><div>&nbsp; &nbsp; btnS.Height := 150;</div><div>&nbsp; &nbsp; btnS.Margins.Bottom := 5;</div><div>&nbsp; &nbsp; btnS.clProSettings.IsFill := True;</div><div>&nbsp; &nbsp; btnS.clProSettings.FontSize := 14;</div><div>&nbsp; &nbsp; btnS.clProSettings.FontColor := clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; &nbsp; btnS.clProSettings.TextSettings.Font.Style := &#091;fsBold, fsItalic&#093;;</div><div>&nbsp; &nbsp; btnS.clProSettings.BackgroundColor := clAlphaColor.clHexToColor('#f2eeed');</div><div>&nbsp; &nbsp; btnS.clProSettings.FontVertAlign := palLeading;</div><div>&nbsp; &nbsp; btnS.clProSettings.FontHorzAlign := palCenter;</div><div>&nbsp; &nbsp; btnS.clProSettings.PictureSource := btnImgArr<em>;</div><div>&nbsp; &nbsp; btnS.clProSettings.PictureAutoFit := True;</div><div>&nbsp; &nbsp; btnS.SetclProSettings(btnS.clProSettings);</div><div>&nbsp; &nbsp; btnS.Caption := BtnNameArr<em>;&nbsp;</div><div>&nbsp; &nbsp; Form1.AddNewEvent(btnS, tbeOnClick, 'BtnOnClick');</div><div><br></div><div>&nbsp; &nbsp; Panels<em> := Form1.AddNewProPanel(Form1, 'Panel'+IntToStr(i));</div><div>&nbsp; &nbsp; Panels<em>.clProSettings.BorderWidth := 2;</div><div>&nbsp; &nbsp; Panels<em>.clProSettings.BorderColor := clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; &nbsp; Panels<em>.clProSettings.RoundHeight := 10;</div><div>&nbsp; &nbsp; Panels<em>.clProSettings.RoundWidth := 10;</div><div>&nbsp; &nbsp; Panels<em>.Visible := False;&nbsp;</div><div>&nbsp; end;</div><div><br></div><div>&nbsp; ShowPanel(0);</div><div>&nbsp; Form1.Run;</div><div>end;</div><div><br></div></div>]]>
   </description>
   <pubDate>Tue, 23 Jul 2024 15:08:47 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=707&amp;PID=1119#1119</guid>
  </item> 
  <item>
   <title><![CDATA[butonun içinde panel kullanımı : //btnS := Form1.AddNewProButton(vScroll,...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=707&amp;PID=1101#1101</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=203">zeynep irem</a><br /><strong>Konu:</strong> 707<br /><strong>Gönderim Zamanı:</strong> 23&nbsp;Temmuz&nbsp;2024 Saat 09:06<br /><br /><span style=": rgb251, 251, 253;">//btnS := Form1.AddNewProButton(vScroll, ''+BtnNameArr.getItem(i)+'', ''+BtnCaptionArr.getItem(i)+'');&nbsp;</span><div><span style=": rgb251, 251, 253;">bu satır yorum satırı olmasına rağmen burda hata veriyor satırı silince bile</span></div><div><span style=": rgb251, 251, 253;"><div>&nbsp;begin</div><div>&nbsp; &nbsp; btnS := Form1.AddNewProButton(vScroll, ''+BtnNameArr+'', ''+BtnCaptionArr+'');</div><div>satırındaki begin kısmında hata alıyorum</div></span></div>]]>
   </description>
   <pubDate>Tue, 23 Jul 2024 09:06:10 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=707&amp;PID=1101#1101</guid>
  </item> 
  <item>
   <title><![CDATA[butonun içinde panel kullanımı : Merhaba Zeynep &#304;rem,A&#351;a&#287;&#305;daki...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=707&amp;PID=1090#1090</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=106">Developer</a><br /><strong>Konu:</strong> 707<br /><strong>Gönderim Zamanı:</strong> 22&nbsp;Temmuz&nbsp;2024 Saat 14:53<br /><br />Merhaba Zeynep İrem,<div>Aşağıdaki kodu inceler misin?</div><div><div>&nbsp;var</div><div>&nbsp; Form1: TclStyleForm;</div><div>&nbsp; btnS: TclProButton;</div><div>&nbsp; vScroll: TCLVertScrollBox;</div><div>&nbsp; BtnCaptionArr, BtnNameArr, btnImgArr: array of String;</div><div>&nbsp; i: Integer;</div><div>&nbsp; trfPanel: TclProPanel;</div><div>&nbsp; Panels: array&#091;0..4&#093; of TclProPanel;&nbsp;</div><div><br></div><div>procedure ShowPanel(index: Integer);</div><div>var</div><div>&nbsp; j: Integer;</div><div>begin</div><div>&nbsp; // Tüm panelleri gizle</div><div>&nbsp; for j := 0 to 4 do</div><div>&nbsp; begin</div><div>&nbsp; &nbsp; Panels&#091;j&#093;.Visible := False;</div><div>&nbsp; end;</div><div><br></div><div>&nbsp; // Belirli paneli görünür yap</div><div>&nbsp; Panels&#091;index&#093;.Visible := True;</div><div>end;</div><div><br></div><div>procedure BtnOnClick;</div><div>var</div><div>&nbsp; clickedBtn: TClProButton;</div><div>&nbsp; index: Integer;</div><div>begin</div><div>&nbsp; clickedBtn := TClProButton(Form1.clSender);</div><div>&nbsp; for index := 0 to 4 do</div><div>&nbsp; begin</div><div>&nbsp; &nbsp; if clickedBtn.caption = BtnNameArr&#091;index&#093; then</div><div>&nbsp; &nbsp; begin</div><div>&nbsp; &nbsp; &nbsp; ShowPanel(index);</div><div>&nbsp; &nbsp; &nbsp; Break;</div><div>&nbsp; &nbsp; end;</div><div>&nbsp; end;</div><div>end;</div><div><br></div><div>begin</div><div>&nbsp; Form1 := TclStyleForm.Create(Self);</div><div>&nbsp; Form1.SetFormColor('#ffffff', '', clGNone);</div><div>&nbsp; Form1.clSetCaption('Menu Listesi');</div><div><br></div><div><br></div><div>&nbsp; vScroll := Form1.AddNewVertScrollBox(Form1, 'ScrollBoxY');</div><div>&nbsp; vScroll.Align := alMostTop;</div><div>&nbsp; vScroll.Height := Form1.ClHeight - 50;&nbsp;</div><div><br></div><div><br></div><div>&nbsp; BtnNameArr := &#091;'btntkrdg', 'btnpd', 'btnkbk', 'btnhşmrm', 'btnkstnkbb'&#093;;</div><div>&nbsp; BtnCaptionArr := &#091;'Tekirdağ Köftesi', 'Tahinli Pide', 'Kabak Tatlısı', 'Höşmerim', 'Kestane Kebabı'&#093;;</div><div>&nbsp; btnImgArr := &#091;'<a href="https://www.yemektarifi.com/wp-c&#111;ntent/uploads/2018/10/Tekirda%C4%9F-K%C3%B6ftesi-Tarifi-1.jpg" target="_blank" rel="nofollow">https://www.yemektarifi.com/wp-content/uploads/2018/10/Tekirda%C4%9F-K%C3%B6ftesi-Tarifi-1.jpg</a>',</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '<a href="https://cdn.yemek.com/mncrop/940/625/uploads/2021/08/tahinli-pide-kucuk.jpg" target="_blank" rel="nofollow">https://cdn.yemek.com/mncrop/940/625/uploads/2021/08/tahinli-pide-kucuk.jpg</a>',</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '<a href="https://iasbh.tmgrup.com.tr/6ebbab/650/344/0/0/752/395?u=https://isbh.tmgrup.com.tr/sbh/2020/04/24/kabak-tatli-tarifi-kabak-tatlisi-nasil-yapilir-1587752707126.jpg" target="_blank" rel="nofollow">https://iasbh.tmgrup.com.tr/6ebbab/650/344/0/0/752/395?u=https://isbh.tmgrup.com.tr/sbh/2020/04/24/kabak-tatli-tarifi-kabak-tatlisi-nasil-yapilir-1587752707126.jpg</a>',</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '<a href="https://www.mutfagimdantarifler.com/wp-c&#111;ntent/uploads/2017/02/hosmerim.jpg" target="_blank" rel="nofollow">https://www.mutfagimdantarifler.com/wp-content/uploads/2017/02/hosmerim.jpg</a>',</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '<a href="https://i.pinimg.com/736x/d5/98/52/d59852ab2c5da1f001d4e17fb19f2d8e.jpg" target="_blank" rel="nofollow">https://i.pinimg.com/736x/d5/98/52/d59852ab2c5da1f001d4e17fb19f2d8e.jpg</a>'&#093;;</div><div><br></div><div>&nbsp; for i := 0 to 4 do</div><div>&nbsp; begin</div><div>&nbsp; &nbsp; // .GETITEM methodu TCLARRAYSTRING veya TCLARRAYINTEGER gibi clomosy array objelerinde</div><div>&nbsp; &nbsp; // bunlar normal array</div><div>&nbsp; &nbsp; //btnS := Form1.AddNewProButton(vScroll, ''+BtnNameArr.getItem(i)+'', ''+BtnCaptionArr.getItem(i)+'');</div><div>&nbsp; &nbsp; btnS := Form1.AddNewProButton(vScroll, ''+BtnNameArr<em>+'', ''+BtnCaptionArr<em>+'');</div><div>&nbsp; &nbsp; btnS.Align := AlTop;</div><div>&nbsp; &nbsp; btnS.Height := 150;</div><div>&nbsp; &nbsp; btnS.Margins.Bottom := 5;</div><div>&nbsp; &nbsp; btnS.clProSettings.IsFill := True;</div><div>&nbsp; &nbsp; btnS.clProSettings.FontSize := 14;</div><div>&nbsp; &nbsp; btnS.clProSettings.FontColor := clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; &nbsp; btnS.clProSettings.TextSettings.Font.Style := &#091;fsBold, fsItalic&#093;;</div><div>&nbsp; &nbsp; btnS.clProSettings.BackgroundColor := clAlphaColor.clHexToColor('#f2eeed');</div><div>&nbsp; &nbsp; btnS.clProSettings.FontVertAlign := palLeading;</div><div>&nbsp; &nbsp; btnS.clProSettings.FontHorzAlign := palCenter;</div><div>&nbsp; &nbsp; btnS.clProSettings.PictureSource := btnImgArr<em>;</div><div>&nbsp; &nbsp; btnS.clProSettings.PictureAutoFit := True;</div><div>&nbsp; &nbsp; btnS.SetclProSettings(btnS.clProSettings);</div><div>&nbsp; &nbsp; btnS.caption := BtnNameArr<em>;&nbsp;</div><div>&nbsp; &nbsp; Form1.AddNewEvent(btnS, tbeOnClick, 'BtnOnClick');</div><div><br></div><div>&nbsp; &nbsp; Panels<em> := Form1.AddNewProPanel(Form1, 'panel'+IntToStr(i));</div><div>&nbsp; &nbsp; Panels<em>.clProSettings.BorderWidth := 2;</div><div>&nbsp; &nbsp; Panels<em>.clProSettings.BorderColor := clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; &nbsp; Panels<em>.clProSettings.RoundHeight := 10;</div><div>&nbsp; &nbsp; Panels<em>.clProSettings.RoundWidth := 10;</div><div>&nbsp; &nbsp; Panels<em>.Visible := False;&nbsp;</div><div>&nbsp; &nbsp; Panels<em>.SetclProSettings(Panels<em>.clProSettings);</div><div>&nbsp; end;</div><div><br></div><div>&nbsp; ShowPanel(0);</div><div>&nbsp; Form1.Run;</div><div>end;</div></div>]]>
   </description>
   <pubDate>Mon, 22 Jul 2024 14:53:00 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=707&amp;PID=1090#1090</guid>
  </item> 
  <item>
   <title><![CDATA[butonun içinde panel kullanımı : var Form1: TclStyleForm; btnS:...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=707&amp;PID=1088#1088</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=203">zeynep irem</a><br /><strong>Konu:</strong> 707<br /><strong>Gönderim Zamanı:</strong> 22&nbsp;Temmuz&nbsp;2024 Saat 13:42<br /><br /><div>&nbsp; var</div><div>&nbsp; Form1: TclStyleForm;</div><div>&nbsp; btnS: TclProButton;</div><div>&nbsp; vScroll: TCLVertScrollBox;</div><div>&nbsp; BtnCaptionArr, BtnNameArr, btnImgArr: array of String;</div><div>&nbsp; i: Integer;</div><div>&nbsp; trfPanel: TclProPanel;</div><div>&nbsp; Panels: array&#091;0..4&#093; of TclProPanel;&nbsp;</div><div><br></div><div>procedure ShowPanel(index: Integer);</div><div>var</div><div>&nbsp; j: Integer;</div><div>begin</div><div>&nbsp; // Tüm panelleri gizle</div><div>&nbsp; for j := 0 to 4 do</div><div>&nbsp; begin</div><div>&nbsp; &nbsp; Panels&#091;j&#093;.Visible := False;</div><div>&nbsp; end;</div><div><br></div><div>&nbsp; // Belirli paneli görünür yap</div><div>&nbsp; Panels&#091;index&#093;.Visible := True;</div><div>end;</div><div><br></div><div>procedure BtnOnClick(Sender: TObject);</div><div>var</div><div>&nbsp; clickedBtn: TClProButton;</div><div>&nbsp; index: Integer;</div><div>begin</div><div>&nbsp; clickedBtn := TClProButton(Sender);</div><div><br></div><div>&nbsp;&nbsp;</div><div>&nbsp; for index := 0 to 4 do</div><div>&nbsp; begin</div><div>&nbsp; &nbsp; if clickedBtn.Name = BtnNameArr&#091;index&#093; then</div><div>&nbsp; &nbsp; begin</div><div>&nbsp; &nbsp; &nbsp; ShowPanel(index);</div><div>&nbsp; &nbsp; &nbsp; Break;</div><div>&nbsp; &nbsp; end;</div><div>&nbsp; end;</div><div>end;</div><div><br></div><div>begin</div><div>&nbsp; Form1 := TclStyleForm.Create(Self);</div><div>&nbsp; Form1.SetFormColor('#ffffff', '', clGNone);</div><div>&nbsp; Form1.clSetCaption('Menu Listesi');</div><div><br></div><div><br></div><div>&nbsp; vScroll := Form1.AddNewVertScrollBox(Form1, 'ScrollBoxY');</div><div>&nbsp; vScroll.Align := alMostTop;</div><div>&nbsp; vScroll.Height := Form1.ClientHeight - 50;&nbsp;</div><div><br></div><div><br></div><div>&nbsp; BtnNameArr := &#091;'btntkrdg', 'btnpd', 'btnkbk', 'btnhşmrm', 'btnkstnkbb'&#093;;</div><div>&nbsp; BtnCaptionArr := &#091;'Tekirdağ Köftesi', 'Tahinli Pide', 'Kabak Tatlısı', 'Höşmerim', 'Kestane Kebabı'&#093;;</div><div>&nbsp; btnImgArr := &#091;'<a href="https://www.yemektarifi.com/wp-c&#111;ntent/uploads/2018/10/Tekirda%C4%9F-K%C3%B6ftesi-Tarifi-1.jpg" target="_blank" rel="nofollow">https://www.yemektarifi.com/wp-content/uploads/2018/10/Tekirda%C4%9F-K%C3%B6ftesi-Tarifi-1.jpg</a>',</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '<a href="https://cdn.yemek.com/mncrop/940/625/uploads/2021/08/tahinli-pide-kucuk.jpg" target="_blank" rel="nofollow">https://cdn.yemek.com/mncrop/940/625/uploads/2021/08/tahinli-pide-kucuk.jpg</a>',</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '<a href="https://iasbh.tmgrup.com.tr/6ebbab/650/344/0/0/752/395?u=https://isbh.tmgrup.com.tr/sbh/2020/04/24/kabak-tatli-tarifi-kabak-tatlisi-nasil-yapilir-1587752707126.jpg" target="_blank" rel="nofollow">https://iasbh.tmgrup.com.tr/6ebbab/650/344/0/0/752/395?u=https://isbh.tmgrup.com.tr/sbh/2020/04/24/kabak-tatli-tarifi-kabak-tatlisi-nasil-yapilir-1587752707126.jpg</a>',</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '<a href="https://www.mutfagimdantarifler.com/wp-c&#111;ntent/uploads/2017/02/hosmerim.jpg" target="_blank" rel="nofollow">https://www.mutfagimdantarifler.com/wp-content/uploads/2017/02/hosmerim.jpg</a>',</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '<a href="https://i.pinimg.com/736x/d5/98/52/d59852ab2c5da1f001d4e17fb19f2d8e.jpg" target="_blank" rel="nofollow">https://i.pinimg.com/736x/d5/98/52/d59852ab2c5da1f001d4e17fb19f2d8e.jpg</a>'&#093;;</div><div><br></div><div>&nbsp; for i := 0 to 4 do</div><div>&nbsp; begin</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; btnS := Form1.AddNewProButton(vScroll, BtnNameArr<em>, BtnCaptionArr<em>);</div><div>&nbsp; &nbsp; btnS.Align := AlTop;</div><div>&nbsp; &nbsp; btnS.Height := 150;</div><div>&nbsp; &nbsp; btnS.Margins.Bottom := 5;</div><div>&nbsp; &nbsp; btnS.clProSettings.IsFill := True;</div><div>&nbsp; &nbsp; btnS.clProSettings.FontSize := 14;</div><div>&nbsp; &nbsp; btnS.clProSettings.FontColor := clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; &nbsp; btnS.clProSettings.TextSettings.Font.Style := &#091;fsBold, fsItalic&#093;;</div><div>&nbsp; &nbsp; btnS.clProSettings.BackgroundColor := clAlphaColor.clHexToColor('#f2eeed');</div><div>&nbsp; &nbsp; btnS.clProSettings.FontVertAlign := palLeading;</div><div>&nbsp; &nbsp; btnS.clProSettings.FontHorzAlign := palCenter;</div><div>&nbsp; &nbsp; btnS.clProSettings.PictureSource := btnImgArr<em>;</div><div>&nbsp; &nbsp; btnS.clProSettings.PictureAutoFit := True;</div><div>&nbsp; &nbsp; btnS.SetclProSettings(btnS.clProSettings);</div><div>&nbsp; &nbsp; btnS.Name := BtnNameArr<em>;&nbsp;</div><div>&nbsp; &nbsp; Form1.AddNewEvent(btnS, tbeOnClick, 'BtnOnClick');</div><div><br></div><div>&nbsp; &nbsp; Panels<em> := TclProPanel.Create(Form1);</div><div>&nbsp; &nbsp; Panels<em>.Parent := Form1;</div><div>&nbsp; &nbsp; Panels<em>.SetBounds(50, 50 + i * 310, 400, 300); // Panelin konumu ve boyutu</div><div>&nbsp; &nbsp; Panels<em>.BorderWidth := 2;</div><div>&nbsp; &nbsp; Panels<em>.BorderColor := clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; &nbsp; Panels<em>.RoundHeight := 10;</div><div>&nbsp; &nbsp; Panels<em>.RoundWidth := 10;</div><div>&nbsp; &nbsp; Panels<em>.Visible := False;&nbsp;</div><div>&nbsp; end;</div><div><br></div><div>&nbsp; ShowPanel(0);</div><div>&nbsp; Form1.Run;</div><div>end;</div><div>// kodun '&nbsp;if clickedBtn.Name = BtnNameArr&#091;index&#093; then' kısmında sebebini çözemediğim bir hata alıyorum (kodda yapmak istediğim şey dizi şeklinde butonlarım var ve bu butonlara basıldığında bir panel açmasını istiyorum.)</div>]]>
   </description>
   <pubDate>Mon, 22 Jul 2024 13:42:01 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=707&amp;PID=1088#1088</guid>
  </item> 
 </channel>
</rss>