<?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 : Kodda Fİlm özellikleri göstermeme HATASI!</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Clomosy ile de&#287;i&#351;ken kullan&#305;m&#305; : Kodda Fİlm özellikleri göstermeme HATASI!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 02 Jul 2026 13:18:56 +0000</pubDate>
  <lastBuildDate>Thu, 02 Jul 2026 10:00:17 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>30</ttl>
  <WebWizForums:feedURL>https://forum.clomosy.com.tr/RSS_post_feed.asp?TID=1581</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[Kodda Fİlm özellikleri göstermeme HATASI! : Merhaba H&#252;seyin,Asenkron &#231;a&#287;r&#305;larda...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1581&amp;PID=3650#3650</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> 1581<br /><strong>Gönderim Zamanı:</strong> 02&nbsp;Temmuz&nbsp;2026 Saat 10:00<br /><br />Merhaba Hüseyin,&nbsp;<br><br>&nbsp;Asenkron çağrılarda Rest.ExecuteAsync event ataması yaparken Rest.OnCompleted = 'ApiCompleted'; şeklinde string bir metin veriyorsun. Ancak derleyicinin asenkron olay yakalama motoru, bu metodu hafızada string ismiyle dinamik ararken tetikleyemez ve API cevabı gelse dahi ApiCompleted prosedürü hiç çalışmaz. Doğru kullanım, event yapısını Atayüz'ün kendi mimarisine emanet ederek doğrudan senkron yürütme Rest.Execute yapmak veya metodu direkt bağlamaktır.<br><br><br><br><div>var</div><div>&nbsp; MainForm: TclForm;</div><div>&nbsp; BgPanel, TopPanel, CardPanel, FilterPanel, FavoritesPanel, Top10Panel: TclProPanel;</div><div>&nbsp; ActionButtonPanel: TclProPanel;</div><div>&nbsp; BtnStart, BtnNext, BtnFav, BtnFavorites, BtnTop10: TclProButton;</div><div>&nbsp; MovieImage: TclProImage;</div><div>&nbsp; LblTitle, LblInfo, LblOverview: TclProLabel;</div><div>&nbsp; IntroPanel: TclProPanel;</div><div>&nbsp; IntroTitleLabel, IntroSubLabel: TclProLabel;</div><div>&nbsp; Rest: TclRest;</div><div>&nbsp; SelectedCountry, SelectedGenre, CurrentMovieID: String;</div><div>&nbsp; FavoriteList: TclStringList;</div><div>&nbsp; movieTitle, overview, posterPath, vote, releaseDate, posterUrl: String;</div><div>&nbsp; randomIndex, randomPage: Integer;</div><div>&nbsp; URL, API_KEY, BASE_URL: String;</div><div><br></div><div>void ProcessApiResponse;</div><div>{</div><div>&nbsp; randomIndex = Random(20);</div><div><br></div><div>&nbsp; CurrentMovieID = Clomosy.CLParseJSON(Rest.Response, 'results.' + IntToStr(randomIndex) + '.id');</div><div>&nbsp; movieTitle = Clomosy.CLParseJSON(Rest.Response, 'results.' + IntToStr(randomIndex) + '.title');</div><div>&nbsp; overview = Clomosy.CLParseJSON(Rest.Response, 'results.' + IntToStr(randomIndex) + '.overview');</div><div>&nbsp; posterPath = Clomosy.CLParseJSON(Rest.Response, 'results.' + IntToStr(randomIndex) + '.poster_path');</div><div>&nbsp; vote = Clomosy.CLParseJSON(Rest.Response, 'results.' + IntToStr(randomIndex) + '.vote_average');</div><div>&nbsp; releaseDate = Clomosy.CLParseJSON(Rest.Response, 'results.' + IntToStr(randomIndex) + '.release_date');</div><div><br></div><div>&nbsp; if (releaseDate &lt;&gt; '')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; releaseDate = Copy(releaseDate, 1, 4);</div><div>&nbsp; }</div><div><br></div><div>&nbsp; LblTitle.Text = movieTitle;</div><div>&nbsp; LblInfo.Text = '&#11088; ' + vote + '&nbsp; |&nbsp; &#128197; ' + releaseDate;</div><div>&nbsp; LblOverview.Text = overview;</div><div><br></div><div>&nbsp; if (posterPath &lt;&gt; '')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; posterUrl = '<a href="https://image.tmdb.org/t/p/w500" target="_blank" rel="nofollow">https://image.tmdb.org/t/p/w500</a>' + posterPath;</div><div>&nbsp; &nbsp; MovieImage.clProSettings.PictureSource = posterUrl;</div><div>&nbsp; &nbsp; MovieImage.SetclProSettings(MovieImage.clProSettings);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void GetMovie;</div><div>{</div><div>&nbsp; randomPage = Random(10) + 1;</div><div>&nbsp; URL = BASE_URL + '/discover/movie?api_key=' + API_KEY + '&amp;language=tr-TR&amp;sort_by=popularity.desc&amp;page=' + IntToStr(randomPage);</div><div><br></div><div>&nbsp; if (SelectedGenre &lt;&gt; '')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; URL = URL + '&amp;with_genres=' + SelectedGenre;</div><div>&nbsp; }</div><div>&nbsp; if (SelectedCountry &lt;&gt; '')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; URL = URL + '&amp;with_origin_country=' + SelectedCountry;</div><div>&nbsp; }</div><div><br></div><div>&nbsp; try</div><div>&nbsp; &nbsp; Rest = TclRest.Create;</div><div>&nbsp; &nbsp; Rest.Accept = 'application/json';</div><div>&nbsp; &nbsp; Rest.Method = rmGET;</div><div>&nbsp; &nbsp; Rest.BaseURL = URL;</div><div>&nbsp; &nbsp; Rest.Execute;</div><div><br></div><div>&nbsp; &nbsp; if (Rest.Response &lt;&gt; '')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ProcessApiResponse;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Rest.Free;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Film çekme hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void AddFavorite;</div><div>var&nbsp;</div><div>&nbsp; i: Integer;</div><div>&nbsp; Exists: Boolean;</div><div>&nbsp; Item: String;</div><div>{</div><div>&nbsp; Exists = False;</div><div>&nbsp; for (i = 0 to FavoriteList.Count - 1)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Item = Clomosy.StringListItemString(FavoriteList, i);</div><div>&nbsp; &nbsp; if (Pos(CurrentMovieID + '|', Item) == 1)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Exists = True;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div><br></div><div>&nbsp; if (Exists == False)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; FavoriteList.Add(CurrentMovieID + '|' + posterPath + '|' + movieTitle);</div><div>&nbsp; &nbsp; ShowMessage('İzleme listene eklendi! &#127871;');</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage('Bu film zaten listende var.');</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void ShowFavorites;</div><div>var&nbsp;</div><div>&nbsp; i: Integer;</div><div>&nbsp; Item, Poster: String;</div><div>&nbsp; Img: TclProImage;</div><div>&nbsp; SplitList: TclStringList;</div><div>{</div><div>&nbsp; FavoritesPanel.Visible = True;</div><div>&nbsp; CardPanel.Visible = False;</div><div>&nbsp; FilterPanel.Visible = False;</div><div>&nbsp; ActionButtonPanel.Visible = False;</div><div>&nbsp; Top10Panel.Visible = False;</div><div><br></div><div>&nbsp; FavoritesPanel.DeleteChildren;</div><div><br></div><div>&nbsp; for (i = 0 to FavoriteList.Count - 1)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Item = Clomosy.StringListItemString(FavoriteList, i);</div><div><br></div><div>&nbsp; &nbsp; SplitList = Clomosy.StringListNew;</div><div>&nbsp; &nbsp; SplitList.StrictDelimiter = True;</div><div>&nbsp; &nbsp; SplitList.Delimiter = '|';</div><div>&nbsp; &nbsp; SplitList.DelimitedText = Item;</div><div><br></div><div>&nbsp; &nbsp; Poster = Clomosy.StringListItemString(SplitList, 1);</div><div><br></div><div>&nbsp; &nbsp; Img = MainForm.AddNewProImage(FavoritesPanel, 'FavImg' + IntToStr(i));</div><div>&nbsp; &nbsp; Img.Align = alTop;</div><div>&nbsp; &nbsp; Img.Height = 240;</div><div>&nbsp; &nbsp; Img.Margins.Top = 15;</div><div>&nbsp; &nbsp; Img.Margins.Left = 30;</div><div>&nbsp; &nbsp; Img.Margins.Right = 30;</div><div>&nbsp; &nbsp; Img.clProSettings.RoundHeight = 16;</div><div>&nbsp; &nbsp; Img.clProSettings.RoundWidth = 16;</div><div>&nbsp; &nbsp; Img.clProSettings.PictureAutoFit = True;</div><div>&nbsp; &nbsp; Img.clProSettings.PictureSource = '<a href="https://image.tmdb.org/t/p/w500" target="_blank" rel="nofollow">https://image.tmdb.org/t/p/w500</a>' + Poster;</div><div>&nbsp; &nbsp; Img.SetclProSettings(Img.clProSettings);</div><div><br></div><div>&nbsp; &nbsp; SplitList.Free;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void ToggleFavorites;</div><div>{</div><div>&nbsp; if (FavoritesPanel.Visible == True)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; FavoritesPanel.Visible = False;</div><div>&nbsp; &nbsp; CardPanel.Visible = True;</div><div>&nbsp; &nbsp; FilterPanel.Visible = True;</div><div>&nbsp; &nbsp; ActionButtonPanel.Visible = True;</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowFavorites;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void ToggleTop10;</div><div>var&nbsp;</div><div>&nbsp; i: Integer;</div><div>&nbsp; poster, title: String;</div><div>&nbsp; FilmPanel: TclProPanel;</div><div>&nbsp; Img: TclProImage;</div><div>&nbsp; Lbl: TclProLabel;</div><div>{</div><div>&nbsp; if (Top10Panel.Visible == True)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Top10Panel.Visible = False;</div><div>&nbsp; &nbsp; CardPanel.Visible = True;</div><div>&nbsp; &nbsp; FilterPanel.Visible = True;</div><div>&nbsp; &nbsp; ActionButtonPanel.Visible = True;</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Top10Panel.Visible = True;</div><div>&nbsp; &nbsp; CardPanel.Visible = False;</div><div>&nbsp; &nbsp; FilterPanel.Visible = False;</div><div>&nbsp; &nbsp; ActionButtonPanel.Visible = False;</div><div>&nbsp; &nbsp; FavoritesPanel.Visible = False;</div><div><br></div><div>&nbsp; &nbsp; Top10Panel.DeleteChildren;</div><div><br></div><div>&nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; Rest = TclRest.Create;</div><div>&nbsp; &nbsp; &nbsp; Rest.Accept = 'application/json';</div><div>&nbsp; &nbsp; &nbsp; Rest.Method = rmGET;</div><div>&nbsp; &nbsp; &nbsp; Rest.BaseURL = BASE_URL + '/discover/movie?api_key=' + API_KEY + '&amp;language=tr-TR&amp;sort_by=popularity.desc&amp;page=1';</div><div>&nbsp; &nbsp; &nbsp; Rest.Execute;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; for (i = 0 to 9)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; poster = Clomosy.CLParseJSON(Rest.Response, 'results.' + IntToStr(i) + '.poster_path');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; title = Clomosy.CLParseJSON(Rest.Response, 'results.' + IntToStr(i) + '.title');</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; FilmPanel = MainForm.AddNewProPanel(Top10Panel, 'FilmPanel' + IntToStr(i));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; FilmPanel.Align = alLeft;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; FilmPanel.Width = 120;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; FilmPanel.Margins.Left = 2;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; FilmPanel.Margins.Right = 2;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; Img = MainForm.AddNewProImage(FilmPanel, 'TopImg' + IntToStr(i));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Img.Align = alTop;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Img.Height = 160;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Img.clProSettings.PictureAutoFit = True;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Img.clProSettings.PictureSource = '<a href="https://image.tmdb.org/t/p/w500" target="_blank" rel="nofollow">https://image.tmdb.org/t/p/w500</a>' + poster;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Img.SetclProSettings(Img.clProSettings);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; Lbl = MainForm.AddNewProLabel(FilmPanel, 'TopLbl' + IntToStr(i), title);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Lbl.Align = alBottom;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Lbl.Height = 40;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Lbl.clProSettings.FontColor = clAlphaColor.clWhite;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Lbl.clProSettings.FontSize = 10;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Lbl.clProSettings.WordWrap = True;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Lbl.SetclProSettings(Lbl.clProSettings);</div><div>&nbsp; &nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Rest.Free;</div><div>&nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Top 10 listeleme hatası: ' + LastExceptionMessage);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void StartApp;</div><div>{</div><div>&nbsp; IntroPanel.Visible = False;&nbsp;</div><div>&nbsp; CardPanel.Visible = True;</div><div>&nbsp; FilterPanel.Visible = True;</div><div>&nbsp; ActionButtonPanel.Visible = True;</div><div>&nbsp; GetMovie;</div><div>}</div><div><br></div><div>{</div><div>&nbsp; API_KEY = 'bdadefeeb1178a602f57e923fef4255f';</div><div>&nbsp; BASE_URL = '<a href="https://api.themoviedb.org/3" target="_blank" rel="nofollow">https://api.themoviedb.org/3</a>';</div><div><br></div><div>&nbsp; SelectedCountry = '';</div><div>&nbsp; SelectedGenre = '';</div><div>&nbsp; FavoriteList = Clomosy.StringListNew;</div><div><br></div><div>&nbsp; MainForm = TclForm.Create(Self);</div><div><br></div><div>&nbsp; BgPanel = MainForm.AddNewProPanel(MainForm, 'BgPanel');</div><div>&nbsp; BgPanel.Align = alClient;</div><div>&nbsp; BgPanel.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#000000');&nbsp;</div><div>&nbsp; BgPanel.clProSettings.IsFill = True;</div><div>&nbsp; BgPanel.SetclProSettings(BgPanel.clProSettings);</div><div><br></div><div>&nbsp; TopPanel = MainForm.AddNewProPanel(BgPanel, 'TopPanel');</div><div>&nbsp; TopPanel.Align = alTop;</div><div>&nbsp; TopPanel.Height = 60;</div><div>&nbsp; TopPanel.Margins.Left = 15;</div><div>&nbsp; TopPanel.Margins.Right = 15;</div><div><br></div><div>&nbsp; BtnFavorites = MainForm.AddNewProButton(TopPanel, 'BtnFavorites', 'İzleme Listem &#128194;');</div><div>&nbsp; BtnFavorites.Align = alRight; BtnFavorites.Width = 130; BtnFavorites.Margins.Top = 12; BtnFavorites.Margins.Bottom = 12;</div><div>&nbsp; BtnFavorites.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#121212');</div><div>&nbsp; BtnFavorites.clProSettings.FontColor = clAlphaColor.clWhite;</div><div>&nbsp; BtnFavorites.clProSettings.FontSize = 11;</div><div>&nbsp; BtnFavorites.clProSettings.RoundHeight = 12; BtnFavorites.clProSettings.RoundWidth = 12;</div><div>&nbsp; BtnFavorites.clProSettings.BorderColor = clAlphaColor.clHexToColor('#333333');</div><div>&nbsp; BtnFavorites.clProSettings.BorderWidth = 1;</div><div>&nbsp; BtnFavorites.clProSettings.IsFill = True;</div><div>&nbsp; BtnFavorites.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; BtnFavorites.SetclProSettings(BtnFavorites.clProSettings);</div><div>&nbsp; MainForm.AddNewEvent(BtnFavorites, tbeOnClick, 'ToggleFavorites');</div><div><br></div><div>&nbsp; BtnTop10 = MainForm.AddNewProButton(TopPanel, 'BtnTop10', 'Top 10 &#128293;');</div><div>&nbsp; BtnTop10.Align = alRight; BtnTop10.Width = 100; BtnTop10.Margins.Top = 12; BtnTop10.Margins.Bottom = 12;</div><div>&nbsp; BtnTop10.clProSettings = BtnFavorites.clProSettings;</div><div>&nbsp; BtnTop10.SetclProSettings(BtnTop10.clProSettings);</div><div>&nbsp; MainForm.AddNewEvent(BtnTop10, tbeOnClick, 'ToggleTop10');</div><div><br></div><div>&nbsp; IntroPanel = MainForm.AddNewProPanel(BgPanel, 'IntroPanel');</div><div>&nbsp; IntroPanel.Align = alCenter; IntroPanel.Width = 320; IntroPanel.Height = 380;</div><div>&nbsp; IntroPanel.clProSettings.BackgroundColor = clAlphaColor.clNull;</div><div>&nbsp; IntroPanel.clProSettings.IsFill = True;</div><div>&nbsp; IntroPanel.SetclProSettings(IntroPanel.clProSettings);</div><div><br></div><div>&nbsp; IntroTitleLabel = MainForm.AddNewProLabel(IntroPanel, 'IntroTitleLabel', '&#127871;' + #13#10 + 'Ne' + #13#10 + 'İzlesem?');</div><div>&nbsp; IntroTitleLabel.Align = alTop; IntroTitleLabel.Height = 160;</div><div>&nbsp; IntroTitleLabel.clProSettings.FontColor = clAlphaColor.clHexToColor('#E50914');&nbsp;</div><div>&nbsp; IntroTitleLabel.clProSettings.FontSize = 36;</div><div>&nbsp; IntroTitleLabel.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; IntroTitleLabel.clProSettings.TextSettings.HorzAlign = palCenter;</div><div>&nbsp; IntroTitleLabel.SetclProSettings(IntroTitleLabel.clProSettings);</div><div><br></div><div>&nbsp; IntroSubLabel = MainForm.AddNewProLabel(IntroPanel, 'IntroSubLabel', 'Kararsız mısın? Sana en uygun filmi saniyeler içinde bulalım.');</div><div>&nbsp; IntroSubLabel.Align = alTop; IntroSubLabel.Height = 60; IntroSubLabel.Margins.Top = 10;</div><div>&nbsp; IntroSubLabel.clProSettings.FontColor = clAlphaColor.clHexToColor('#8E8E93');</div><div>&nbsp; IntroSubLabel.clProSettings.FontSize = 13;</div><div>&nbsp; IntroSubLabel.clProSettings.WordWrap = True;</div><div>&nbsp; IntroSubLabel.clProSettings.TextSettings.HorzAlign = palCenter;</div><div>&nbsp; IntroSubLabel.SetclProSettings(IntroSubLabel.clProSettings);</div><div><br></div><div>&nbsp; BtnStart = MainForm.AddNewProButton(IntroPanel, 'BtnStart', 'ÖNERİ GETİR &#10024;');</div><div>&nbsp; BtnStart.Align = alBottom; BtnStart.Height = 50; BtnStart.Margins.Bottom = 10; BtnStart.Margins.Left = 20; BtnStart.Margins.Right = 20;</div><div>&nbsp; BtnStart.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#E50914');&nbsp;</div><div>&nbsp; BtnStart.clProSettings.FontColor = clAlphaColor.clWhite;</div><div>&nbsp; BtnStart.clProSettings.FontSize = 14;</div><div>&nbsp; BtnStart.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; BtnStart.clProSettings.RoundHeight = 22; BtnStart.clProSettings.RoundWidth = 22;</div><div>&nbsp; BtnStart.clProSettings.IsFill = True;</div><div>&nbsp; BtnStart.SetclProSettings(BtnStart.clProSettings);</div><div>&nbsp; MainForm.AddNewEvent(BtnStart, tbeOnClick, 'StartApp');</div><div><br></div><div>&nbsp; FilterPanel = MainForm.AddNewProPanel(BgPanel, 'FilterPanel');</div><div>&nbsp; FilterPanel.Align = alTop; FilterPanel.Height = 50; FilterPanel.Margins.Left = 15; FilterPanel.Margins.Right = 15;</div><div>&nbsp; FilterPanel.Visible = False;</div><div><br></div><div>&nbsp; FavoritesPanel = MainForm.AddNewProPanel(BgPanel, 'FavoritesPanel');</div><div>&nbsp; FavoritesPanel.Align = alClient;</div><div>&nbsp; FavoritesPanel.Visible = False;</div><div><br></div><div>&nbsp; Top10Panel = MainForm.AddNewProPanel(BgPanel, 'Top10Panel');</div><div>&nbsp; Top10Panel.Align = alClient;</div><div>&nbsp; Top10Panel.Visible = False;</div><div><br></div><div>&nbsp; CardPanel = MainForm.AddNewProPanel(BgPanel, 'CardPanel');</div><div>&nbsp; CardPanel.Align = alClient;</div><div>&nbsp; CardPanel.Margins.Left = 20; CardPanel.Margins.Right = 20; CardPanel.Margins.Top = 10; CardPanel.Margins.Bottom = 90;&nbsp;</div><div>&nbsp; CardPanel.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#121212');&nbsp;</div><div>&nbsp; CardPanel.clProSettings.RoundHeight = 20; CardPanel.clProSettings.RoundWidth = 20;</div><div>&nbsp; CardPanel.clProSettings.BorderColor = clAlphaColor.clHexToColor('#222222');</div><div>&nbsp; CardPanel.clProSettings.BorderWidth = 1;</div><div>&nbsp; CardPanel.clProSettings.IsFill = True;</div><div>&nbsp; CardPanel.SetclProSettings(CardPanel.clProSettings);</div><div>&nbsp; CardPanel.Visible = False;</div><div><br></div><div>&nbsp; // --- ARALIK KONTROLÜ: API'DEN GELEN GÖRSEL BİLEŞENLERİ ---</div><div>&nbsp; MovieImage = MainForm.AddNewProImage(CardPanel, 'MovieImage');</div><div>&nbsp; MovieImage.Align = alTop; MovieImage.Height = 250; MovieImage.Margins.Top = 10;</div><div>&nbsp; MovieImage.clProSettings.PictureAutoFit = True;</div><div>&nbsp; MovieImage.SetclProSettings(MovieImage.clProSettings);</div><div><br></div><div>&nbsp; LblTitle = MainForm.AddNewProLabel(CardPanel, 'LblTitle', '-');</div><div>&nbsp; LblTitle.Align = alTop; LblTitle.Height = 35; LblTitle.Margins.Left = 15; LblTitle.Margins.Top = 10;</div><div>&nbsp; LblTitle.clProSettings.FontColor = clAlphaColor.clWhite; LblTitle.clProSettings.FontSize = 18; LblTitle.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; LblTitle.SetclProSettings(LblTitle.clProSettings);</div><div><br></div><div>&nbsp; LblInfo = MainForm.AddNewProLabel(CardPanel, 'LblInfo', '-');</div><div>&nbsp; LblInfo.Align = alTop; LblInfo.Height = 25; LblInfo.Margins.Left = 15;</div><div>&nbsp; LblInfo.clProSettings.FontColor = clAlphaColor.clHexToColor('#8E8E93'); LblInfo.clProSettings.FontSize = 12;</div><div>&nbsp; LblInfo.SetclProSettings(LblInfo.clProSettings);</div><div><br></div><div>&nbsp; LblOverview = MainForm.AddNewProLabel(CardPanel, 'LblOverview', '-');</div><div>&nbsp; LblOverview.Align = alClient; LblOverview.Margins.Left = 15; LblOverview.Margins.Right = 15; LblOverview.Margins.Top = 10;</div><div>&nbsp; LblOverview.clProSettings.FontColor = clAlphaColor.clHexToColor('#CBD5E1'); LblOverview.clProSettings.FontSize = 13; LblOverview.clProSettings.TextSettings.WordWrap = True;</div><div>&nbsp; LblOverview.SetclProSettings(LblOverview.clProSettings);</div><div><br></div><div>&nbsp; ActionButtonPanel = MainForm.AddNewProPanel(BgPanel, 'ActionButtonPanel');</div><div>&nbsp; ActionButtonPanel.Align = alBottom; ActionButtonPanel.Height = 75; ActionButtonPanel.Margins.Left = 20; ActionButtonPanel.Margins.Right = 20; ActionButtonPanel.Margins.Bottom = 15;</div><div>&nbsp; ActionButtonPanel.Visible = False;</div><div><br></div><div>&nbsp; BtnFav = MainForm.AddNewProButton(ActionButtonPanel, 'BtnFav', 'Listeme Ekle');</div><div>&nbsp; BtnFav.Align = alLeft; BtnFav.Width = 130; BtnFav.Height = 48;</div><div>&nbsp; BtnFav.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#121212');</div><div>&nbsp; BtnFav.clProSettings.FontColor = clAlphaColor.clWhite;</div><div>&nbsp; BtnFav.clProSettings.FontSize = 13;</div><div>&nbsp; BtnFav.clProSettings.RoundHeight = 14; BtnFav.clProSettings.RoundWidth = 14;</div><div>&nbsp; BtnFav.clProSettings.BorderColor = clAlphaColor.clHexToColor('#333333');</div><div>&nbsp; BtnFav.clProSettings.BorderWidth = 1;</div><div>&nbsp; BtnFav.clProSettings.IsFill = True;</div><div>&nbsp; BtnFav.SetclProSettings(BtnFav.clProSettings);</div><div>&nbsp; MainForm.AddNewEvent(BtnFav, tbeOnClick, 'AddFavorite');</div><div><br></div><div>&nbsp; BtnNext = MainForm.AddNewProButton(ActionButtonPanel, 'BtnNext', 'BAŞKA BİR TANE &#127922;');</div><div>&nbsp; BtnNext.Align = alRight; BtnNext.Width = 160; BtnNext.Height = 48;</div><div>&nbsp; BtnNext.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#E50914');&nbsp;</div><div>&nbsp; BtnNext.clProSettings.FontColor = clAlphaColor.clWhite;</div><div>&nbsp; BtnNext.clProSettings.FontSize = 12;</div><div>&nbsp; BtnNext.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; BtnNext.clProSettings.RoundHeight = 14; BtnNext.clProSettings.RoundWidth = 14;</div><div>&nbsp; BtnNext.clProSettings.IsFill = True;</div><div>&nbsp; BtnNext.SetclProSettings(BtnNext.clProSettings);</div><div>&nbsp; MainForm.AddNewEvent(BtnNext, tbeOnClick, 'GetMovie');</div><div><br></div><div>&nbsp; MainForm.FormWaiting.Visible = False;</div><div>&nbsp; MainForm.BtnFormMenu.Visible = False;</div><div>&nbsp; MainForm.BtnGoBack.Visible = False;</div><div><br></div><div>&nbsp; MainForm.Run;</div><div>}</div><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/v4513226cdae34746b4dedf0b4dfa099e1781791509496" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/v4513226cdae34746b4dedf0b4dfa099e1781791509496"</a> integrity="sha512-ZE9pZaUXND66v380QUtch/5sE9tPFh2zg45pR2PB0CVkCtOREv2AJKkSidISWkysEuQ0EH8faUU5du78bx87UQ==" 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>Thu, 02 Jul 2026 10:00:17 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1581&amp;PID=3650#3650</guid>
  </item> 
  <item>
   <title><![CDATA[Kodda Fİlm özellikleri göstermeme HATASI! : var MainForm : TclForm; BgPanel,...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1581&amp;PID=3649#3649</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=354">Hüseyin_Sadik</a><br /><strong>Konu:</strong> 1581<br /><strong>Gönderim Zamanı:</strong> 02&nbsp;Temmuz&nbsp;2026 Saat 09:47<br /><br /><div><font size="5">var</font></div><div><font size="5">&nbsp; MainForm : TclForm;</font></div><div><font size="5">&nbsp; BgPanel, TopPanel, CardPanel, FilterPanel, FavoritesPanel, Top10Panel : TclProPanel;</font></div><div><font size="5">&nbsp; ContentPanel, ActionButtonPanel : TclProPanel;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; BtnStart, BtnNext, BtnFav, BtnFavorites, BtnTop10 : TClProButton;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; BtnUS, BtnKR, BtnTR : TClProButton;</font></div><div><font size="5">&nbsp; BtnAction, BtnComedy, BtnDrama, BtnHorror : TClProButton;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; MovieImage : TclProImage;</font></div><div><font size="5">&nbsp; LblTitle, LblInfo, LblOverview : TClProLabel;</font></div><div><font size="5">&nbsp;&nbsp;</font></div><div><font size="5">&nbsp; IntroPanel : TclProPanel;</font></div><div><font size="5">&nbsp; IntroTitleLabel, IntroSubLabel : TClProLabel;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; Rest : TclRest;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; SelectedCountry, SelectedGenre, CurrentMovieID : String;</font></div><div><font size="5">&nbsp; FavoriteList : TclStringList;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; movieTitle, overview, posterPath, vote, releaseDate, posterUrl : String;</font></div><div><font size="5">&nbsp; randomIndex, randomPage : Integer;</font></div><div><font size="5">&nbsp; URL, API_KEY, BASE_URL : String;</font></div><div><font size="5"><br></font></div><div><font size="5">// ================= API =================</font></div><div><font size="5"><br></font></div><div><font size="5">void ApiCompleted;</font></div><div><font size="5">{</font></div><div><font size="5">&nbsp; randomIndex = Random(20);</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; CurrentMovieID = Clomosy.CLParseJSON(Rest.Response,'results.'+IntToStr(randomIndex)+'.id');</font></div><div><font size="5">&nbsp; movieTitle&nbsp; = Clomosy.CLParseJSON(Rest.Response,'results.'+IntToStr(randomIndex)+'.title');</font></div><div><font size="5">&nbsp; overview&nbsp; &nbsp; = Clomosy.CLParseJSON(Rest.Response,'results.'+IntToStr(randomIndex)+'.overview');</font></div><div><font size="5">&nbsp; posterPath&nbsp; = Clomosy.CLParseJSON(Rest.Response,'results.'+IntToStr(randomIndex)+'.poster_path');</font></div><div><font size="5">&nbsp; vote&nbsp; &nbsp; &nbsp; &nbsp; = Clomosy.CLParseJSON(Rest.Response,'results.'+IntToStr(randomIndex)+'.vote_average');</font></div><div><font size="5">&nbsp; releaseDate = Clomosy.CLParseJSON(Rest.Response,'results.'+IntToStr(randomIndex)+'.release_date');</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; if releaseDate &lt;&gt; ''</font></div><div><font size="5">&nbsp; &nbsp; releaseDate = Copy(releaseDate,1,4);</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; LblTitle.Text = movieTitle;</font></div><div><font size="5">&nbsp; LblInfo.Text = '&#11088; ' + vote + '&nbsp; |&nbsp; &#128197; ' + releaseDate;</font></div><div><font size="5">&nbsp; LblOverview.Text = overview;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; if posterPath &lt;&gt; ''</font></div><div><font size="5">&nbsp; {</font></div><div><font size="5">&nbsp; &nbsp; posterUrl = '<a href="https://image.tmdb.org/t/p/w500" target="_blank" rel="nofollow">https://image.tmdb.org/t/p/w500</a>'+posterPath;</font></div><div><font size="5">&nbsp; &nbsp; MovieImage.clProSettings.PictureSource = posterUrl;</font></div><div><font size="5">&nbsp; &nbsp; MovieImage.SetclProSettings(MovieImage.clProSettings);</font></div><div><font size="5">&nbsp; }</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; Rest.Free;</font></div><div><font size="5">&nbsp; Rest = Nil;</font></div><div><font size="5">}</font></div><div><font size="5"><br></font></div><div><font size="5">void GetMovie;</font></div><div><font size="5">{</font></div><div><font size="5">&nbsp; randomPage = Random(10)+1;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; URL = BASE_URL + '/discover/movie?api_key='+API_KEY+'&amp;language=tr-TR&amp;sort_by=popularity.desc&amp;page='+IntToStr(randomPage);</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; if SelectedGenre &lt;&gt; ''</font></div><div><font size="5">&nbsp; &nbsp; URL = URL + '&amp;with_genres=' + SelectedGenre;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; if SelectedCountry &lt;&gt; ''</font></div><div><font size="5">&nbsp; &nbsp; URL = URL + '&amp;with_origin_country=' + SelectedCountry;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; Rest = TclRest.Create;</font></div><div><font size="5">&nbsp; Rest.Accept = 'application/json';</font></div><div><font size="5">&nbsp; Rest.Method = rmGET;</font></div><div><font size="5">&nbsp; Rest.BaseURL = URL;</font></div><div><font size="5">&nbsp; Rest.OnCompleted = 'ApiCompleted';</font></div><div><font size="5">&nbsp; Rest.ExecuteAsync;</font></div><div><font size="5">}</font></div><div><font size="5"><br></font></div><div><font size="5">// ================= FILTER FUNCTIONS =================</font></div><div><font size="5"><br></font></div><div><font size="5">void SelectTR; { SelectedCountry = ''; SelectedGenre = ''; GetMovie; }</font></div><div><font size="5">void SelectUS; { SelectedCountry = 'US'; GetMovie; }</font></div><div><font size="5">void SelectAction; { SelectedGenre = '28'; GetMovie; }</font></div><div><font size="5">void SelectComedy; { SelectedGenre = '35'; GetMovie; }</font></div><div><font size="5">void SelectDrama; { SelectedGenre = '18'; GetMovie; }</font></div><div><font size="5"><br></font></div><div><font size="5">// ================= FAVORITES =================</font></div><div><font size="5"><br></font></div><div><font size="5">void AddFavorite;</font></div><div><font size="5">var i : Integer;</font></div><div><font size="5">var Exists : Boolean;</font></div><div><font size="5">var Item : String;</font></div><div><font size="5">{</font></div><div><font size="5">&nbsp; Exists = False;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; for (i = 0 to FavoriteList.Count - 1)</font></div><div><font size="5">&nbsp; {</font></div><div><font size="5">&nbsp; &nbsp; Item = Clomosy.StringListItemString(FavoriteList,i);</font></div><div><font size="5">&nbsp; &nbsp; if Pos(CurrentMovieID+'|', Item) == 1</font></div><div><font size="5">&nbsp; &nbsp; &nbsp; Exists = True;</font></div><div><font size="5">&nbsp; }</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; if Exists == False</font></div><div><font size="5">&nbsp; {</font></div><div><font size="5">&nbsp; &nbsp; FavoriteList.Add(CurrentMovieID + '|' + posterPath + '|' + movieTitle);</font></div><div><font size="5">&nbsp; &nbsp; ShowMessage('İzleme listene eklendi! &#127871;');</font></div><div><font size="5">&nbsp; }</font></div><div><font size="5">&nbsp; else</font></div><div><font size="5">&nbsp; &nbsp; ShowMessage('Bu film zaten listende var.');</font></div><div><font size="5">}</font></div><div><font size="5"><br></font></div><div><font size="5">void ShowFavorites;</font></div><div><font size="5">var i : Integer;</font></div><div><font size="5">var Item, Poster : String;</font></div><div><font size="5">var Img : TclProImage;</font></div><div><font size="5">var SplitList : TclStringList;</font></div><div><font size="5">{</font></div><div><font size="5">&nbsp; FavoritesPanel.Visible = True;</font></div><div><font size="5">&nbsp; CardPanel.Visible = False;</font></div><div><font size="5">&nbsp; FilterPanel.Visible = False;</font></div><div><font size="5">&nbsp; ActionButtonPanel.Visible = False;</font></div><div><font size="5">&nbsp; Top10Panel.Visible = False;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; FavoritesPanel.DeleteChildren;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; for (i = 0 to FavoriteList.Count - 1)</font></div><div><font size="5">&nbsp; {</font></div><div><font size="5">&nbsp; &nbsp; Item = Clomosy.StringListItemString(FavoriteList,i);</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; &nbsp; SplitList = Clomosy.StringListNew;</font></div><div><font size="5">&nbsp; &nbsp; SplitList.StrictDelimiter = True;</font></div><div><font size="5">&nbsp; &nbsp; SplitList.Delimiter = '|';</font></div><div><font size="5">&nbsp; &nbsp; SplitList.DelimitedText = Item;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; &nbsp; Poster = Clomosy.StringListItemString(SplitList,1);</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; &nbsp; Img = MainForm.AddNewProImage(FavoritesPanel,'FavImg'+IntToStr(i));</font></div><div><font size="5">&nbsp; &nbsp; Img.Align = alTop;</font></div><div><font size="5">&nbsp; &nbsp; Img.Height = 240;</font></div><div><font size="5">&nbsp; &nbsp; Img.Margins.Top = 15;</font></div><div><font size="5">&nbsp; &nbsp; Img.Margins.Left = 30;</font></div><div><font size="5">&nbsp; &nbsp; Img.Margins.Right = 30;</font></div><div><font size="5">&nbsp; &nbsp; Img.clProSettings.RoundHeight = 16;</font></div><div><font size="5">&nbsp; &nbsp; Img.clProSettings.RoundWidth = 16;</font></div><div><font size="5">&nbsp; &nbsp; Img.clProSettings.PictureAutoFit = True;</font></div><div><font size="5">&nbsp; &nbsp; Img.clProSettings.PictureSource = '<a href="https://image.tmdb.org/t/p/w500" target="_blank" rel="nofollow">https://image.tmdb.org/t/p/w500</a>'+Poster;</font></div><div><font size="5">&nbsp; &nbsp; Img.SetclProSettings(Img.clProSettings);</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; &nbsp; SplitList.Free;</font></div><div><font size="5">&nbsp; }</font></div><div><font size="5">}</font></div><div><font size="5"><br></font></div><div><font size="5">void ToggleFavorites;</font></div><div><font size="5">{</font></div><div><font size="5">&nbsp; if FavoritesPanel.Visible == True</font></div><div><font size="5">&nbsp; {</font></div><div><font size="5">&nbsp; &nbsp; FavoritesPanel.Visible = False;</font></div><div><font size="5">&nbsp; &nbsp; CardPanel.Visible = True;</font></div><div><font size="5">&nbsp; &nbsp; FilterPanel.Visible = True;</font></div><div><font size="5">&nbsp; &nbsp; ActionButtonPanel.Visible = True;</font></div><div><font size="5">&nbsp; }</font></div><div><font size="5">&nbsp; else</font></div><div><font size="5">&nbsp; &nbsp; ShowFavorites;</font></div><div><font size="5">}</font></div><div><font size="5"><br></font></div><div><font size="5">// ================= TOP 10 =================</font></div><div><font size="5"><br></font></div><div><font size="5">void ToggleTop10;</font></div><div><font size="5">var i : Integer;</font></div><div><font size="5">var poster, title : String;</font></div><div><font size="5">var FilmPanel : TclProPanel;</font></div><div><font size="5">var Img : TclProImage;</font></div><div><font size="5">var Lbl : TclProLabel;</font></div><div><font size="5">{</font></div><div><font size="5">&nbsp; if Top10Panel.Visible == True</font></div><div><font size="5">&nbsp; {</font></div><div><font size="5">&nbsp; &nbsp; Top10Panel.Visible = False;</font></div><div><font size="5">&nbsp; &nbsp; CardPanel.Visible = True;</font></div><div><font size="5">&nbsp; &nbsp; FilterPanel.Visible = True;</font></div><div><font size="5">&nbsp; &nbsp; ActionButtonPanel.Visible = True;</font></div><div><font size="5">&nbsp; }</font></div><div><font size="5">&nbsp; else</font></div><div><font size="5">&nbsp; {</font></div><div><font size="5">&nbsp; &nbsp; Top10Panel.Visible = True;</font></div><div><font size="5">&nbsp; &nbsp; CardPanel.Visible = False;</font></div><div><font size="5">&nbsp; &nbsp; FilterPanel.Visible = False;</font></div><div><font size="5">&nbsp; &nbsp; ActionButtonPanel.Visible = False;</font></div><div><font size="5">&nbsp; &nbsp; FavoritesPanel.Visible = False;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; &nbsp; Top10Panel.DeleteChildren;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; &nbsp; Rest = TclRest.Create;</font></div><div><font size="5">&nbsp; &nbsp; Rest.Accept = 'application/json';</font></div><div><font size="5">&nbsp; &nbsp; Rest.Method = rmGET;</font></div><div><font size="5">&nbsp; &nbsp; Rest.BaseURL = BASE_URL + '/discover/movie?api_key='+API_KEY+'&amp;language=tr-TR&amp;sort_by=popularity.desc&amp;page=1';</font></div><div><font size="5">&nbsp; &nbsp; Rest.Execute;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; &nbsp; for (i = 0 to 9)</font></div><div><font size="5">&nbsp; &nbsp; {</font></div><div><font size="5">&nbsp; &nbsp; &nbsp; poster = Clomosy.CLParseJSON(Rest.Response,'results.'+IntToStr(i)+'.poster_path');</font></div><div><font size="5">&nbsp; &nbsp; &nbsp; title&nbsp; = Clomosy.CLParseJSON(Rest.Response,'results.'+IntToStr(i)+'.title');</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; &nbsp; &nbsp; FilmPanel = MainForm.AddNewProPanel(Top10Panel,'FilmPanel'+IntToStr(i));</font></div><div><font size="5">&nbsp; &nbsp; &nbsp; FilmPanel.Align = alLeft;</font></div><div><font size="5">&nbsp; &nbsp; &nbsp; FilmPanel.Width = 120;</font></div><div><font size="5">&nbsp; &nbsp; &nbsp; FilmPanel.Margins.Left = 2;</font></div><div><font size="5">&nbsp; &nbsp; &nbsp; FilmPanel.Margins.Right = 2;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; &nbsp; &nbsp; Img = MainForm.AddNewProImage(FilmPanel,'TopImg'+IntToStr(i));</font></div><div><font size="5">&nbsp; &nbsp; &nbsp; Img.Align = alTop;</font></div><div><font size="5">&nbsp; &nbsp; &nbsp; Img.Height = 160;</font></div><div><font size="5">&nbsp; &nbsp; &nbsp; Img.clProSettings.PictureAutoFit = True;</font></div><div><font size="5">&nbsp; &nbsp; &nbsp; Img.clProSettings.PictureSource = '<a href="https://image.tmdb.org/t/p/w500" target="_blank" rel="nofollow">https://image.tmdb.org/t/p/w500</a>'+poster;</font></div><div><font size="5">&nbsp; &nbsp; &nbsp; Img.SetclProSettings(Img.clProSettings);</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; &nbsp; &nbsp; Lbl = MainForm.AddNewProLabel(FilmPanel,'TopLbl'+IntToStr(i),title);</font></div><div><font size="5">&nbsp; &nbsp; &nbsp; Lbl.Align = alBottom;</font></div><div><font size="5">&nbsp; &nbsp; &nbsp; Lbl.Height = 40;</font></div><div><font size="5">&nbsp; &nbsp; &nbsp; Lbl.clProSettings.FontColor = clAlphaColor.clWhite;</font></div><div><font size="5">&nbsp; &nbsp; &nbsp; Lbl.clProSettings.FontSize = 10;</font></div><div><font size="5">&nbsp; &nbsp; &nbsp; Lbl.clProSettings.WordWrap = True;</font></div><div><font size="5">&nbsp; &nbsp; &nbsp; Lbl.SetclProSettings(Lbl.clProSettings);</font></div><div><font size="5">&nbsp; &nbsp; }</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; &nbsp; Rest.Free;</font></div><div><font size="5">&nbsp; &nbsp; Rest = Nil;</font></div><div><font size="5">&nbsp; }</font></div><div><font size="5">}</font></div><div><font size="5"><br></font></div><div><font size="5">void StartApp;</font></div><div><font size="5">{</font></div><div><font size="5">&nbsp; IntroPanel.Visible = False;&nbsp;</font></div><div><font size="5">&nbsp;&nbsp;</font></div><div><font size="5">&nbsp; CardPanel.Visible = True;</font></div><div><font size="5">&nbsp; FilterPanel.Visible = True;</font></div><div><font size="5">&nbsp; ActionButtonPanel.Visible = True;</font></div><div><font size="5">&nbsp; GetMovie;</font></div><div><font size="5">}</font></div><div><font size="5"><br></font></div><div><font size="5">// ================= MAIN =================</font></div><div><font size="5"><br></font></div><div><font size="5">{</font></div><div><font size="5">&nbsp; API_KEY = 'bdadefeeb1178a602f57e923fef4255f';</font></div><div><font size="5">&nbsp; BASE_URL = '<a href="https://api.themoviedb.org/3" target="_blank" rel="nofollow">https://api.themoviedb.org/3</a>';</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; SelectedCountry = '';</font></div><div><font size="5">&nbsp; SelectedGenre = '';</font></div><div><font size="5">&nbsp; FavoriteList = Clomosy.StringListNew;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; MainForm = TclForm.Create(Self);</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; // --- ARKA PLAN ---</font></div><div><font size="5">&nbsp; BgPanel = MainForm.AddNewProPanel(MainForm,'BgPanel');</font></div><div><font size="5">&nbsp; BgPanel.Align = alClient;</font></div><div><font size="5">&nbsp; BgPanel.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#000000');&nbsp;</font></div><div><font size="5">&nbsp; BgPanel.clProSettings.IsFill = True;</font></div><div><font size="5">&nbsp; BgPanel.SetclProSettings(BgPanel.clProSettings);</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; &nbsp; // --- ÜST HEADER ---</font></div><div><font size="5">&nbsp; TopPanel = MainForm.AddNewProPanel(BgPanel,'TopPanel');</font></div><div><font size="5">&nbsp; TopPanel.Align = alTop;</font></div><div><font size="5">&nbsp; TopPanel.Height = 60;</font></div><div><font size="5">&nbsp; TopPanel.Margins.Left = 15;</font></div><div><font size="5">&nbsp; TopPanel.Margins.Right = 15;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; // Favoriler Butonu</font></div><div><font size="5">&nbsp; BtnFavorites = MainForm.AddNewProButton(TopPanel,'BtnFavorites','İzleme Listem &#128194;');</font></div><div><font size="5">&nbsp; BtnFavorites.Align = alRight;</font></div><div><font size="5">&nbsp; BtnFavorites.Width = 130;</font></div><div><font size="5">&nbsp; BtnFavorites.Margins.Top = 12;</font></div><div><font size="5">&nbsp; BtnFavorites.Margins.Bottom = 12;</font></div><div><font size="5">&nbsp; BtnFavorites.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#121212');</font></div><div><font size="5">&nbsp; BtnFavorites.clProSettings.FontColor = clAlphaColor.clWhite;</font></div><div><font size="5">&nbsp; BtnFavorites.clProSettings.FontSize = 11;</font></div><div><font size="5">&nbsp; BtnFavorites.clProSettings.RoundHeight = 12;</font></div><div><font size="5">&nbsp; BtnFavorites.clProSettings.RoundWidth = 12;</font></div><div><font size="5">&nbsp; BtnFavorites.clProSettings.BorderColor = clAlphaColor.clHexToColor('#333333');</font></div><div><font size="5">&nbsp; BtnFavorites.clProSettings.BorderWidth = 1;</font></div><div><font size="5">&nbsp; BtnFavorites.clProSettings.IsFill = True;</font></div><div><font size="5">&nbsp; BtnFavorites.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</font></div><div><font size="5">&nbsp; BtnFavorites.SetclProSettings(BtnFavorites.clProSettings);</font></div><div><font size="5">&nbsp; MainForm.AddNewEvent(BtnFavorites,tbeOnClick,'ToggleFavorites');</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; // Top 10 Butonu</font></div><div><font size="5">&nbsp; BtnTop10 = MainForm.AddNewProButton(TopPanel,'BtnTop10','Top 10 &#128293;');</font></div><div><font size="5">&nbsp; BtnTop10.Align = alRight;</font></div><div><font size="5">&nbsp; BtnTop10.Width = 100;</font></div><div><font size="5">&nbsp; BtnTop10.Margins.Top = 12;</font></div><div><font size="5">&nbsp; BtnTop10.Margins.Bottom = 12;</font></div><div><font size="5">&nbsp; BtnTop10.clProSettings = BtnFavorites.clProSettings;</font></div><div><font size="5">&nbsp; BtnTop10.SetclProSettings(BtnTop10.clProSettings);</font></div><div><font size="5">&nbsp; MainForm.AddNewEvent(BtnTop10,tbeOnClick,'ToggleTop10');</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; // --- GİRİŞ PANELİ ---</font></div><div><font size="5">&nbsp; IntroPanel = MainForm.AddNewProPanel(BgPanel,'IntroPanel');</font></div><div><font size="5">&nbsp; IntroPanel.Align = alCenter;</font></div><div><font size="5">&nbsp; IntroPanel.Width = 320;</font></div><div><font size="5">&nbsp; IntroPanel.Height = 380;</font></div><div><font size="5">&nbsp; IntroPanel.clProSettings.BackgroundColor = clAlphaColor.clNull;</font></div><div><font size="5">&nbsp; IntroPanel.clProSettings.IsFill = True;</font></div><div><font size="5">&nbsp; IntroPanel.SetclProSettings(IntroPanel.clProSettings);</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; IntroTitleLabel = MainForm.AddNewProLabel(IntroPanel,'IntroTitleLabel','&#127871;' + #13#10 + 'Ne' + #13#10 + 'İzlesem?');</font></div><div><font size="5">&nbsp; IntroTitleLabel.Align = alTop;</font></div><div><font size="5">&nbsp; IntroTitleLabel.Height = 160;</font></div><div><font size="5">&nbsp; IntroTitleLabel.clProSettings.FontColor = clAlphaColor.clHexToColor('#E50914');&nbsp;</font></div><div><font size="5">&nbsp; IntroTitleLabel.clProSettings.FontSize = 36;</font></div><div><font size="5">&nbsp; IntroTitleLabel.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</font></div><div><font size="5">&nbsp; IntroTitleLabel.clProSettings.TextSettings.HorzAlign = palCenter;</font></div><div><font size="5">&nbsp; IntroTitleLabel.SetclProSettings(IntroTitleLabel.clProSettings);</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; IntroSubLabel = MainForm.AddNewProLabel(IntroPanel,'IntroSubLabel','Kararsız mısın? Sana en uygun filmi saniyeler içinde bulalım.');</font></div><div><font size="5">&nbsp; IntroSubLabel.Align = alTop;</font></div><div><font size="5">&nbsp; IntroSubLabel.Height = 60;</font></div><div><font size="5">&nbsp; IntroSubLabel.Margins.Top = 10;</font></div><div><font size="5">&nbsp; IntroSubLabel.clProSettings.FontColor = clAlphaColor.clHexToColor('#8E8E93');</font></div><div><font size="5">&nbsp; IntroSubLabel.clProSettings.FontSize = 13;</font></div><div><font size="5">&nbsp; IntroSubLabel.clProSettings.WordWrap = True;</font></div><div><font size="5">&nbsp; IntroSubLabel.clProSettings.TextSettings.HorzAlign = palCenter;</font></div><div><font size="5">&nbsp; IntroSubLabel.SetclProSettings(IntroSubLabel.clProSettings);</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; BtnStart = MainForm.AddNewProButton(IntroPanel,'BtnStart','ÖNERİ GETİR &#10024;');</font></div><div><font size="5">&nbsp; BtnStart.Align = alBottom;</font></div><div><font size="5">&nbsp; BtnStart.Height = 50;</font></div><div><font size="5">&nbsp; BtnStart.Margins.Bottom = 10;</font></div><div><font size="5">&nbsp; BtnStart.Margins.Left = 20;</font></div><div><font size="5">&nbsp; BtnStart.Margins.Right = 20;</font></div><div><font size="5">&nbsp; BtnStart.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#E50914');&nbsp;</font></div><div><font size="5">&nbsp; BtnStart.clProSettings.FontColor = clAlphaColor.clWhite;</font></div><div><font size="5">&nbsp; BtnStart.clProSettings.FontSize = 14;</font></div><div><font size="5">&nbsp; BtnStart.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</font></div><div><font size="5">&nbsp; BtnStart.clProSettings.RoundHeight = 22;</font></div><div><font size="5">&nbsp; BtnStart.clProSettings.RoundWidth = 22;</font></div><div><font size="5">&nbsp; BtnStart.clProSettings.IsFill = True;</font></div><div><font size="5">&nbsp; BtnStart.SetclProSettings(BtnStart.clProSettings);</font></div><div><font size="5">&nbsp; MainForm.AddNewEvent(BtnStart,tbeOnClick,'StartApp');</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; // --- FİLTRE PANELİ ---</font></div><div><font size="5">&nbsp; FilterPanel = MainForm.AddNewProPanel(BgPanel,'FilterPanel');</font></div><div><font size="5">&nbsp; FilterPanel.Align = alTop;</font></div><div><font size="5">&nbsp; FilterPanel.Height = 50;</font></div><div><font size="5">&nbsp; FilterPanel.Margins.Left = 15;</font></div><div><font size="5">&nbsp; FilterPanel.Margins.Right = 15;</font></div><div><font size="5">&nbsp; FilterPanel.Visible = False;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; // --- FAVORİLER PANELİ ---</font></div><div><font size="5">&nbsp; FavoritesPanel = MainForm.AddNewProPanel(BgPanel,'FavoritesPanel');</font></div><div><font size="5">&nbsp; FavoritesPanel.Align = alClient;</font></div><div><font size="5">&nbsp; FavoritesPanel.Visible = False;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; // --- TOP 10 PANELİ ---</font></div><div><font size="5">&nbsp; Top10Panel = MainForm.AddNewProPanel(BgPanel,'Top10Panel');</font></div><div><font size="5">&nbsp; Top10Panel.Align = alClient;</font></div><div><font size="5">&nbsp; Top10Panel.Visible = False;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; // --- ANA FİLM KARTI ---</font></div><div><font size="5">&nbsp; CardPanel = MainForm.AddNewProPanel(BgPanel,'CardPanel');</font></div><div><font size="5">&nbsp; CardPanel.Align = alClient;</font></div><div><font size="5">&nbsp; CardPanel.Margins.Left = 20;</font></div><div><font size="5">&nbsp; CardPanel.Margins.Right = 20;</font></div><div><font size="5">&nbsp; CardPanel.Margins.Top = 10;</font></div><div><font size="5">&nbsp; CardPanel.Margins.Bottom = 90;&nbsp;</font></div><div><font size="5">&nbsp; CardPanel.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#121212');&nbsp;</font></div><div><font size="5">&nbsp; CardPanel.clProSettings.RoundHeight = 20;</font></div><div><font size="5">&nbsp; CardPanel.clProSettings.RoundWidth = 20;</font></div><div><font size="5">&nbsp; CardPanel.clProSettings.BorderColor = clAlphaColor.clHexToColor('#222222');</font></div><div><font size="5">&nbsp; CardPanel.clProSettings.BorderWidth = 1;</font></div><div><font size="5">&nbsp; CardPanel.clProSettings.IsFill = True;</font></div><div><font size="5">&nbsp; CardPanel.SetclProSettings(CardPanel.clProSettings);</font></div><div><font size="5">&nbsp; CardPanel.Visible = False;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; // --- ALT BUTONLAR ---</font></div><div><font size="5">&nbsp; ActionButtonPanel = MainForm.AddNewProPanel(BgPanel,'ActionButtonPanel');</font></div><div><font size="5">&nbsp; ActionButtonPanel.Align = alBottom;</font></div><div><font size="5">&nbsp; ActionButtonPanel.Height = 75;</font></div><div><font size="5">&nbsp; ActionButtonPanel.Margins.Left = 20;</font></div><div><font size="5">&nbsp; ActionButtonPanel.Margins.Right = 20;</font></div><div><font size="5">&nbsp; ActionButtonPanel.Margins.Bottom = 15;</font></div><div><font size="5">&nbsp; ActionButtonPanel.Visible = False;</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; BtnFav = MainForm.AddNewProButton(ActionButtonPanel,'BtnFav','Listeme Ekle');</font></div><div><font size="5">&nbsp; BtnFav.Align = alLeft;</font></div><div><font size="5">&nbsp; BtnFav.Width = 130;</font></div><div><font size="5">&nbsp; BtnFav.Height = 48;</font></div><div><font size="5">&nbsp; BtnFav.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#121212');</font></div><div><font size="5">&nbsp; BtnFav.clProSettings.FontColor = clAlphaColor.clWhite;</font></div><div><font size="5">&nbsp; BtnFav.clProSettings.FontSize = 13;</font></div><div><font size="5">&nbsp; BtnFav.clProSettings.RoundHeight = 14;</font></div><div><font size="5">&nbsp; BtnFav.clProSettings.RoundWidth = 14;</font></div><div><font size="5">&nbsp; BtnFav.clProSettings.BorderColor = clAlphaColor.clHexToColor('#333333');</font></div><div><font size="5">&nbsp; BtnFav.clProSettings.BorderWidth = 1;</font></div><div><font size="5">&nbsp; BtnFav.clProSettings.IsFill = True;</font></div><div><font size="5">&nbsp; BtnFav.SetclProSettings(BtnFav.clProSettings);</font></div><div><font size="5">&nbsp; MainForm.AddNewEvent(BtnFav,tbeOnClick,'AddFavorite');</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; BtnNext = MainForm.AddNewProButton(ActionButtonPanel,'BtnNext','BAŞKA BİR TANE &#127922;');</font></div><div><font size="5">&nbsp; BtnNext.Align = alRight;</font></div><div><font size="5">&nbsp; BtnNext.Width = 160;</font></div><div><font size="5">&nbsp; BtnNext.Height = 48;</font></div><div><font size="5">&nbsp; BtnNext.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#E50914');&nbsp;</font></div><div><font size="5">&nbsp; BtnNext.clProSettings.FontColor = clAlphaColor.clWhite;</font></div><div><font size="5">&nbsp; BtnNext.clProSettings.FontSize = 12;</font></div><div><font size="5">&nbsp; BtnNext.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</font></div><div><font size="5">&nbsp; BtnNext.clProSettings.RoundHeight = 14;</font></div><div><font size="5">&nbsp; BtnNext.clProSettings.RoundWidth = 14;</font></div><div><font size="5">&nbsp; BtnNext.clProSettings.IsFill = True;</font></div><div><font size="5">&nbsp; BtnNext.SetclProSettings(BtnNext.clProSettings);</font></div><div><font size="5">&nbsp; MainForm.AddNewEvent(BtnNext,tbeOnClick,'GetMovie');</font></div><div><font size="5"><br></font></div><div><font size="5">&nbsp; MainForm.Run;</font></div><div><font size="5">}</font></div><div><br></div><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/v4513226cdae34746b4dedf0b4dfa099e1781791509496" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/v4513226cdae34746b4dedf0b4dfa099e1781791509496"</a> integrity="sha512-ZE9pZaUXND66v380QUtch/5sE9tPFh2zg45pR2PB0CVkCtOREv2AJKkSidISWkysEuQ0EH8faUU5du78bx87UQ==" 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>Thu, 02 Jul 2026 09:47:10 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1581&amp;PID=3649#3649</guid>
  </item> 
 </channel>
</rss>