;/ Created with PureVision v5.63
;/ Sun, 19 May 2019 11:32:06
;/ by Miklos Bolvary




XIncludeFile "OMDBAPI_Constants.pb"


Procedure.i Window_OMDBAPI()
  If OpenWindow(#Window_OMDBAPI,96,91,1435,915,"",#PB_Window_SystemMenu|#PB_Window_ScreenCentered|#PB_Window_Invisible)
      ListIconGadget(#Gadget_OMDBAPI_Titles,5,5,600,800,"Movie title",570,#PB_ListIcon_FullRowSelect|#PB_ListIcon_AlwaysShowSelection)
        AddGadgetColumn(#Gadget_OMDBAPI_Titles,1,"Recordid",0)
        SetGadgetFont(#Gadget_OMDBAPI_Titles,LoadFont(#Gadget_OMDBAPI_Titles,"Comic Sans MS",10,0))
      ContainerGadget(#Gadget_OMDBAPI_cMoviedata,610,5,815,800,#PB_Container_BorderLess)
      TextGadget(#Gadget_OMDBAPI_LabelTitle,10,10,80,25,"Title",#PB_Text_Center)
        SetGadgetFont(#Gadget_OMDBAPI_LabelTitle,LoadFont(#Gadget_OMDBAPI_LabelTitle,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_Title,95,5,710,25,"",#PB_String_ReadOnly)
        SetGadgetFont(#Gadget_OMDBAPI_Title,LoadFont(#Gadget_OMDBAPI_Title,"Comic Sans MS",10,0))
      TextGadget(#Gadget_OMDBAPI_LabelYear,10,40,80,25,"Year",#PB_Text_Center)
        SetGadgetFont(#Gadget_OMDBAPI_LabelYear,LoadFont(#Gadget_OMDBAPI_LabelYear,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_Year,95,35,105,25,"",#PB_String_ReadOnly)
        SetGadgetFont(#Gadget_OMDBAPI_Year,LoadFont(#Gadget_OMDBAPI_Year,"Comic Sans MS",10,0))
      TextGadget(#Gadget_OMDBAPI_LabelRated,210,40,80,25,"Rated",#PB_Text_Center)
        SetGadgetFont(#Gadget_OMDBAPI_LabelRated,LoadFont(#Gadget_OMDBAPI_LabelRated,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_Rated,295,35,105,25,"",#PB_String_ReadOnly)
        SetGadgetFont(#Gadget_OMDBAPI_Rated,LoadFont(#Gadget_OMDBAPI_Rated,"Comic Sans MS",10,0))
      TextGadget(#Gadget_OMDBAPI_LabelReleased,410,40,80,25,"Released",#PB_Text_Center)
        SetGadgetFont(#Gadget_OMDBAPI_LabelReleased,LoadFont(#Gadget_OMDBAPI_LabelReleased,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_Released,495,35,105,25,"",#PB_String_ReadOnly)
        SetGadgetFont(#Gadget_OMDBAPI_Released,LoadFont(#Gadget_OMDBAPI_Released,"Comic Sans MS",10,0))
      TextGadget(#Gadget_OMDBAPI_LabelRunTime,610,40,80,25,"Run time",#PB_Text_Center)
        SetGadgetFont(#Gadget_OMDBAPI_LabelRunTime,LoadFont(#Gadget_OMDBAPI_LabelRunTime,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_RunTime,695,35,110,25,"",#PB_String_ReadOnly)
        SetGadgetFont(#Gadget_OMDBAPI_RunTime,LoadFont(#Gadget_OMDBAPI_RunTime,"Comic Sans MS",10,0))
      TextGadget(#Gadget_OMDBAPI_LabelGenre,10,70,80,25,"Genre",#PB_Text_Center)
        SetGadgetFont(#Gadget_OMDBAPI_LabelGenre,LoadFont(#Gadget_OMDBAPI_LabelGenre,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_Genre,95,65,710,25,"",#PB_String_ReadOnly)
        SetGadgetFont(#Gadget_OMDBAPI_Genre,LoadFont(#Gadget_OMDBAPI_Genre,"Comic Sans MS",10,0))
      TextGadget(#Gadget_OMDBAPI_LabelDirector,10,100,80,25,"Director",#PB_Text_Center)
        SetGadgetFont(#Gadget_OMDBAPI_LabelDirector,LoadFont(#Gadget_OMDBAPI_LabelDirector,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_Director,95,95,290,25,"",#PB_String_ReadOnly)
        SetGadgetFont(#Gadget_OMDBAPI_Director,LoadFont(#Gadget_OMDBAPI_Director,"Comic Sans MS",10,0))
      TextGadget(#Gadget_OMDBAPI_LabelWriter,395,100,80,25,"Writers",#PB_Text_Center)
        SetGadgetFont(#Gadget_OMDBAPI_LabelWriter,LoadFont(#Gadget_OMDBAPI_LabelWriter,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_Writer,480,95,325,25,"",#PB_String_ReadOnly)
        SetGadgetFont(#Gadget_OMDBAPI_Writer,LoadFont(#Gadget_OMDBAPI_Writer,"Comic Sans MS",10,0))
      TextGadget(#Gadget_OMDBAPI_LabelActors,10,130,80,25,"Actors",#PB_Text_Center)
        SetGadgetFont(#Gadget_OMDBAPI_LabelActors,LoadFont(#Gadget_OMDBAPI_LabelActors,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_Actors,95,125,710,25,"",#PB_String_ReadOnly)
        SetGadgetFont(#Gadget_OMDBAPI_Actors,LoadFont(#Gadget_OMDBAPI_Actors,"Comic Sans MS",10,0))
      TextGadget(#Gadget_OMDBAPI_LabelPlot,10,160,80,25,"Plot",#PB_Text_Center)
        SetGadgetFont(#Gadget_OMDBAPI_LabelPlot,LoadFont(#Gadget_OMDBAPI_LabelPlot,"Comic Sans MS",10,0))
      EditorGadget(#Gadget_OMDBAPI_Plot,95,155,410,310,#PB_Editor_ReadOnly|#PB_Editor_WordWrap)
        SetGadgetFont(#Gadget_OMDBAPI_Plot,LoadFont(#Gadget_OMDBAPI_Plot,"Comic Sans MS",10,0))
      ResizeImage(#Image_OMDBAPI_Picture,DesktopScaledX(290),DesktopScaledY(310))
      ImageGadget(#Gadget_OMDBAPI_Picture,515,155,290,310,ImageID(#Image_OMDBAPI_Picture))
      TextGadget(#Gadget_OMDBAPI_LabelPoster,10,480,80,25,"Poster",#PB_Text_Center)
        SetGadgetFont(#Gadget_OMDBAPI_LabelPoster,LoadFont(#Gadget_OMDBAPI_LabelPoster,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_Poster,95,475,710,25,"",#PB_String_ReadOnly)
        SetGadgetFont(#Gadget_OMDBAPI_Poster,LoadFont(#Gadget_OMDBAPI_Poster,"Comic Sans MS",10,0))
      TextGadget(#Gadget_OMDBAPI_LabelLanguage,10,510,80,25,"Language",#PB_Text_Center)
        SetGadgetFont(#Gadget_OMDBAPI_LabelLanguage,LoadFont(#Gadget_OMDBAPI_LabelLanguage,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_Language,95,505,290,25,"",#PB_String_ReadOnly)
        SetGadgetFont(#Gadget_OMDBAPI_Language,LoadFont(#Gadget_OMDBAPI_Language,"Comic Sans MS",10,0))
      TextGadget(#Gadget_OMDBAPI_LabelCountry,390,510,80,25,"Country",#PB_Text_Center)
        SetGadgetFont(#Gadget_OMDBAPI_LabelCountry,LoadFont(#Gadget_OMDBAPI_LabelCountry,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_Country,475,505,330,25,"",#PB_String_ReadOnly)
        SetGadgetFont(#Gadget_OMDBAPI_Country,LoadFont(#Gadget_OMDBAPI_Country,"Comic Sans MS",10,0))
      TextGadget(#Gadget_OMDBAPI_LabelAwards,10,540,80,25,"Awards",#PB_Text_Center)
        SetGadgetFont(#Gadget_OMDBAPI_LabelAwards,LoadFont(#Gadget_OMDBAPI_LabelAwards,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_Awards,95,535,510,25,"",#PB_String_ReadOnly)
        SetGadgetFont(#Gadget_OMDBAPI_Awards,LoadFont(#Gadget_OMDBAPI_Awards,"Comic Sans MS",10,0))
      TextGadget(#Gadget_OMDBAPI_LabelMetascore,610,540,110,25,"Metascore",#PB_Text_Center)
        SetGadgetFont(#Gadget_OMDBAPI_LabelMetascore,LoadFont(#Gadget_OMDBAPI_LabelMetascore,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_Metascore,720,535,85,25,"",#PB_String_ReadOnly)
        SetGadgetFont(#Gadget_OMDBAPI_Metascore,LoadFont(#Gadget_OMDBAPI_Metascore,"Comic Sans MS",10,0))
      TextGadget(#Gadget_OMDBAPI_LabelimdbID,10,570,80,25,"Imdb ID",#PB_Text_Center)
        SetGadgetFont(#Gadget_OMDBAPI_LabelimdbID,LoadFont(#Gadget_OMDBAPI_LabelimdbID,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_ImdbID,95,565,105,25,"",#PB_String_ReadOnly)
        SetGadgetFont(#Gadget_OMDBAPI_ImdbID,LoadFont(#Gadget_OMDBAPI_ImdbID,"Comic Sans MS",10,0))
      TextGadget(#Gadget_OMDBAPI_LabelimdbRating,210,565,80,25,"Rating",#PB_Text_Center)
        SetGadgetFont(#Gadget_OMDBAPI_LabelimdbRating,LoadFont(#Gadget_OMDBAPI_LabelimdbRating,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_ImdbRating,295,565,105,25,"",#PB_String_ReadOnly)
        SetGadgetFont(#Gadget_OMDBAPI_ImdbRating,LoadFont(#Gadget_OMDBAPI_ImdbRating,"Comic Sans MS",10,0))
      TextGadget(#Gadget_OMDBAPI_LabelImdbVotes,410,570,80,25,"Votes",#PB_Text_Center)
        SetGadgetFont(#Gadget_OMDBAPI_LabelImdbVotes,LoadFont(#Gadget_OMDBAPI_LabelImdbVotes,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_ImdbVotes,495,565,105,25,"",#PB_String_ReadOnly)
        SetGadgetFont(#Gadget_OMDBAPI_ImdbVotes,LoadFont(#Gadget_OMDBAPI_ImdbVotes,"Comic Sans MS",10,0))
      TextGadget(#Gadget_OMDBAPI_LabelImdbObject,610,565,80,25,"Object",#PB_Text_Center)
        SetGadgetFont(#Gadget_OMDBAPI_LabelImdbObject,LoadFont(#Gadget_OMDBAPI_LabelImdbObject,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_ImdbObject,695,565,110,25,"",#PB_String_ReadOnly)
        SetGadgetFont(#Gadget_OMDBAPI_ImdbObject,LoadFont(#Gadget_OMDBAPI_ImdbObject,"Comic Sans MS",10,0))
      TextGadget(#Gadget_OMDBAPI_LabelDVD,10,600,80,25,"DVD",#PB_Text_Center)
        SetGadgetFont(#Gadget_OMDBAPI_LabelDVD,LoadFont(#Gadget_OMDBAPI_LabelDVD,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_DVD,95,595,195,25,"",#PB_String_ReadOnly)
        SetGadgetFont(#Gadget_OMDBAPI_DVD,LoadFont(#Gadget_OMDBAPI_DVD,"Comic Sans MS",10,0))
      TextGadget(#Gadget_OMDBAPI_LabelBoxoffice,295,600,110,25,"Boxoffice",#PB_Text_Center)
        SetGadgetFont(#Gadget_OMDBAPI_LabelBoxoffice,LoadFont(#Gadget_OMDBAPI_LabelBoxoffice,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_Boxoffice,410,595,395,25,"",#PB_String_ReadOnly)
        SetGadgetFont(#Gadget_OMDBAPI_Boxoffice,LoadFont(#Gadget_OMDBAPI_Boxoffice,"Comic Sans MS",10,0))
      TextGadget(#Gadget_OMDBAPI_LabelProduction,10,630,110,25,"Production",#PB_Text_Center)
        SetGadgetFont(#Gadget_OMDBAPI_LabelProduction,LoadFont(#Gadget_OMDBAPI_LabelProduction,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_Production,125,625,680,25,"",#PB_String_ReadOnly)
        SetGadgetFont(#Gadget_OMDBAPI_Production,LoadFont(#Gadget_OMDBAPI_Production,"Comic Sans MS",10,0))
      TextGadget(#Gadget_OMDBAPI_LabelWebsite,10,660,110,25,"Website",#PB_Text_Center)
        SetGadgetFont(#Gadget_OMDBAPI_LabelWebsite,LoadFont(#Gadget_OMDBAPI_LabelWebsite,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_Website,125,655,680,25,"",#PB_String_ReadOnly)
        SetGadgetFont(#Gadget_OMDBAPI_Website,LoadFont(#Gadget_OMDBAPI_Website,"Comic Sans MS",10,0))
      TextGadget(#Gadget_OMDBAPI_LabelRatings,10,690,80,25,"Website",#PB_Text_Center)
        SetGadgetFont(#Gadget_OMDBAPI_LabelRatings,LoadFont(#Gadget_OMDBAPI_LabelRatings,"Comic Sans MS",10,0))
      ListIconGadget(#Gadget_OMDBAPI_Ratings,95,685,610,105,"Rating site name",450,#PB_ListIcon_FullRowSelect|#PB_ListIcon_AlwaysShowSelection)
        AddGadgetColumn(#Gadget_OMDBAPI_Ratings,1,"Score?",130)
        AddGadgetColumn(#Gadget_OMDBAPI_Ratings,2,"Recordid",0)
        SetGadgetFont(#Gadget_OMDBAPI_Ratings,LoadFont(#Gadget_OMDBAPI_Ratings,"Comic Sans MS",10,0))
      ResizeImage(#Image_OMDBAPI_Logo,DesktopScaledX(90),DesktopScaledY(105))
      ImageGadget(#Gadget_OMDBAPI_Logo,715,685,90,105,ImageID(#Image_OMDBAPI_Logo))
      CloseGadgetList()
      ContainerGadget(#Gadget_OMDBAPI_cControl,5,810,1420,70,#PB_Container_BorderLess)
      ImageGadget(#Gadget_OMDBAPI_Add,5,5,54,54,ImageID(#Image_OMDBAPI_Add))
      ImageGadget(#Gadget_OMDBAPI_Delete,65,5,54,54,ImageID(#Image_OMDBAPI_Delete))
      ImageGadget(#Gadget_OMDBAPI_Edit,125,5,54,54,ImageID(#Image_OMDBAPI_Edit))
      ImageGadget(#Gadget_OMDBAPI_Print,185,5,54,54,ImageID(#Image_OMDBAPI_Print))
      ImageGadget(#Gadget_OMDBAPI_Help,245,5,54,54,ImageID(#Image_OMDBAPI_Help))
      StringGadget(#Gadget_OMDBAPI_Search,810,40,530,25,"")
        SetGadgetFont(#Gadget_OMDBAPI_Search,LoadFont(#Gadget_OMDBAPI_Search,"Comic Sans MS",10,0))
      ImageGadget(#Gadget_OMDBAPI_Exit,1355,5,54,54,ImageID(#Image_OMDBAPI_Exit))
      CloseGadgetList()
      StringGadget(#Gadget_OMDBAPI_Heading,5,885,150,25,"",#PB_String_ReadOnly|#PB_String_BorderLess)
        SetGadgetFont(#Gadget_OMDBAPI_Heading,LoadFont(#Gadget_OMDBAPI_Heading,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_Messages,165,885,1000,25,"",#PB_String_ReadOnly|#PB_String_BorderLess)
        SetGadgetFont(#Gadget_OMDBAPI_Messages,LoadFont(#Gadget_OMDBAPI_Messages,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_Current,1175,885,120,25,"",#PB_String_ReadOnly|#PB_String_BorderLess)
        SetGadgetFont(#Gadget_OMDBAPI_Current,LoadFont(#Gadget_OMDBAPI_Current,"Comic Sans MS",10,0))
      StringGadget(#Gadget_OMDBAPI_Records,1305,885,120,25,"",#PB_String_ReadOnly|#PB_String_BorderLess)
        SetGadgetFont(#Gadget_OMDBAPI_Records,LoadFont(#Gadget_OMDBAPI_Records,"Comic Sans MS",10,0))
      HideWindow(#Window_OMDBAPI,0)
    ProcedureReturn WindowID(#Window_OMDBAPI)
  EndIf
EndProcedure


Procedure.i Window_Dataform()
  If OpenWindow(#Window_Dataform,96,91,835,915,"",#PB_Window_SystemMenu|#PB_Window_MinimizeGadget|#PB_Window_ScreenCentered|#PB_Window_Invisible,WindowID(#Window_OMDBAPI))
      ContainerGadget(#Gadget_Dataform_cDetails,5,5,820,800,#PB_Container_BorderLess)
      TextGadget(#Gadget_Dataform_LabelTitle,10,10,80,25,"Title",#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_LabelTitle,LoadFont(#Gadget_Dataform_LabelTitle,"Comic Sans MS",10,0))
      StringGadget(#Gadget_Dataform_Title,95,5,710,25,"")
        SetGadgetFont(#Gadget_Dataform_Title,LoadFont(#Gadget_Dataform_Title,"Comic Sans MS",10,0))
      TextGadget(#Gadget_Dataform_LabelYear,10,40,80,25,"Year",#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_LabelYear,LoadFont(#Gadget_Dataform_LabelYear,"Comic Sans MS",10,0))
      StringGadget(#Gadget_Dataform_Year,95,35,105,25,"")
        SetGadgetFont(#Gadget_Dataform_Year,LoadFont(#Gadget_Dataform_Year,"Comic Sans MS",10,0))
      TextGadget(#Gadget_Dataform_LabelRated,210,40,80,25,"Rated",#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_LabelRated,LoadFont(#Gadget_Dataform_LabelRated,"Comic Sans MS",10,0))
      StringGadget(#Gadget_Dataform_Rated,295,35,105,25,"")
        SetGadgetFont(#Gadget_Dataform_Rated,LoadFont(#Gadget_Dataform_Rated,"Comic Sans MS",10,0))
      TextGadget(#Gadget_Dataform_LabelReleased,410,40,80,25,"Released",#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_LabelReleased,LoadFont(#Gadget_Dataform_LabelReleased,"Comic Sans MS",10,0))
      StringGadget(#Gadget_Dataform_Released,495,35,105,25,"")
        SetGadgetFont(#Gadget_Dataform_Released,LoadFont(#Gadget_Dataform_Released,"Comic Sans MS",10,0))
      TextGadget(#Gadget_Dataform_LabelRunTime,610,40,80,25,"Run time",#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_LabelRunTime,LoadFont(#Gadget_Dataform_LabelRunTime,"Comic Sans MS",10,0))
      StringGadget(#Gadget_Dataform_RunTime,695,35,110,25,"")
        SetGadgetFont(#Gadget_Dataform_RunTime,LoadFont(#Gadget_Dataform_RunTime,"Comic Sans MS",10,0))
      TextGadget(#Gadget_Dataform_LabelGenre,10,70,80,25,"Genre",#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_LabelGenre,LoadFont(#Gadget_Dataform_LabelGenre,"Comic Sans MS",10,0))
      StringGadget(#Gadget_Dataform_Genre,95,65,710,25,"")
        SetGadgetFont(#Gadget_Dataform_Genre,LoadFont(#Gadget_Dataform_Genre,"Comic Sans MS",10,0))
      TextGadget(#Gadget_Dataform_LabelDirector,10,100,80,25,"Director",#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_LabelDirector,LoadFont(#Gadget_Dataform_LabelDirector,"Comic Sans MS",10,0))
      StringGadget(#Gadget_Dataform_Director,95,95,290,25,"")
        SetGadgetFont(#Gadget_Dataform_Director,LoadFont(#Gadget_Dataform_Director,"Comic Sans MS",10,0))
      TextGadget(#Gadget_Dataform_LabelWriter,395,100,80,25,"Writers",#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_LabelWriter,LoadFont(#Gadget_Dataform_LabelWriter,"Comic Sans MS",10,0))
      StringGadget(#Gadget_Dataform_Writer,480,95,325,25,"")
        SetGadgetFont(#Gadget_Dataform_Writer,LoadFont(#Gadget_Dataform_Writer,"Comic Sans MS",10,0))
      TextGadget(#Gadget_Dataform_LabelActors,10,130,80,25,"Actors",#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_LabelActors,LoadFont(#Gadget_Dataform_LabelActors,"Comic Sans MS",10,0))
      StringGadget(#Gadget_Dataform_Actors,95,125,710,25,"")
        SetGadgetFont(#Gadget_Dataform_Actors,LoadFont(#Gadget_Dataform_Actors,"Comic Sans MS",10,0))
      TextGadget(#Gadget_Dataform_LabelPlot,10,160,80,25,"Plot",#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_LabelPlot,LoadFont(#Gadget_Dataform_LabelPlot,"Comic Sans MS",10,0))
      EditorGadget(#Gadget_Dataform_Plot,95,155,410,310,#PB_Editor_WordWrap)
        SetGadgetFont(#Gadget_Dataform_Plot,LoadFont(#Gadget_Dataform_Plot,"Comic Sans MS",10,0))
      ResizeImage(#Image_Dataform_Picture,DesktopScaledX(290),DesktopScaledY(310))
      ImageGadget(#Gadget_Dataform_Picture,515,155,290,310,ImageID(#Image_Dataform_Picture))
      TextGadget(#Gadget_Dataform_LabelPoster,10,480,80,25,"Poster",#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_LabelPoster,LoadFont(#Gadget_Dataform_LabelPoster,"Comic Sans MS",10,0))
      StringGadget(#Gadget_Dataform_Poster,95,475,710,25,"")
        SetGadgetFont(#Gadget_Dataform_Poster,LoadFont(#Gadget_Dataform_Poster,"Comic Sans MS",10,0))
      TextGadget(#Gadget_Dataform_LabelLanguage,10,510,80,25,"Language",#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_LabelLanguage,LoadFont(#Gadget_Dataform_LabelLanguage,"Comic Sans MS",10,0))
      StringGadget(#Gadget_Dataform_Language,95,505,290,25,"")
        SetGadgetFont(#Gadget_Dataform_Language,LoadFont(#Gadget_Dataform_Language,"Comic Sans MS",10,0))
      TextGadget(#Gadget_Dataform_LabelCountry,390,510,80,25,"Country",#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_LabelCountry,LoadFont(#Gadget_Dataform_LabelCountry,"Comic Sans MS",10,0))
      StringGadget(#Gadget_Dataform_Country,475,505,330,25,"")
        SetGadgetFont(#Gadget_Dataform_Country,LoadFont(#Gadget_Dataform_Country,"Comic Sans MS",10,0))
      TextGadget(#Gadget_Dataform_LabelAwards,10,540,80,25,"Awards",#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_LabelAwards,LoadFont(#Gadget_Dataform_LabelAwards,"Comic Sans MS",10,0))
      StringGadget(#Gadget_Dataform_Awards,95,535,510,25,"")
        SetGadgetFont(#Gadget_Dataform_Awards,LoadFont(#Gadget_Dataform_Awards,"Comic Sans MS",10,0))
      TextGadget(#Gadget_Dataform_LabelMetascore,610,540,110,25,"Metascore",#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_LabelMetascore,LoadFont(#Gadget_Dataform_LabelMetascore,"Comic Sans MS",10,0))
      StringGadget(#Gadget_Dataform_Metascore,720,535,85,25,"")
        SetGadgetFont(#Gadget_Dataform_Metascore,LoadFont(#Gadget_Dataform_Metascore,"Comic Sans MS",10,0))
      TextGadget(#Gadget_Dataform_LabelimdbID,10,570,80,25,"Imdb ID",#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_LabelimdbID,LoadFont(#Gadget_Dataform_LabelimdbID,"Comic Sans MS",10,0))
      StringGadget(#Gadget_Dataform_ImdbID,95,565,105,25,"")
        SetGadgetFont(#Gadget_Dataform_ImdbID,LoadFont(#Gadget_Dataform_ImdbID,"Comic Sans MS",10,0))
      TextGadget(#Gadget_Dataform_LabelimdbRating,210,565,80,25,"Rating",#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_LabelimdbRating,LoadFont(#Gadget_Dataform_LabelimdbRating,"Comic Sans MS",10,0))
      StringGadget(#Gadget_Dataform_ImdbRating,295,565,105,25,"")
        SetGadgetFont(#Gadget_Dataform_ImdbRating,LoadFont(#Gadget_Dataform_ImdbRating,"Comic Sans MS",10,0))
      TextGadget(#Gadget_Dataform_LabelImdbVotes,410,570,80,25,"Votes",#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_LabelImdbVotes,LoadFont(#Gadget_Dataform_LabelImdbVotes,"Comic Sans MS",10,0))
      StringGadget(#Gadget_Dataform_ImdbVotes,495,565,105,25,"")
        SetGadgetFont(#Gadget_Dataform_ImdbVotes,LoadFont(#Gadget_Dataform_ImdbVotes,"Comic Sans MS",10,0))
      TextGadget(#Gadget_Dataform_LabelImdbObject,610,565,80,25,"Object",#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_LabelImdbObject,LoadFont(#Gadget_Dataform_LabelImdbObject,"Comic Sans MS",10,0))
      StringGadget(#Gadget_Dataform_ImdbObject,695,565,110,25,"")
        SetGadgetFont(#Gadget_Dataform_ImdbObject,LoadFont(#Gadget_Dataform_ImdbObject,"Comic Sans MS",10,0))
      TextGadget(#Gadget_Dataform_LabelDVD,10,600,80,25,"DVD",#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_LabelDVD,LoadFont(#Gadget_Dataform_LabelDVD,"Comic Sans MS",10,0))
      StringGadget(#Gadget_Dataform_DVD,95,595,195,25,"")
        SetGadgetFont(#Gadget_Dataform_DVD,LoadFont(#Gadget_Dataform_DVD,"Comic Sans MS",10,0))
      TextGadget(#Gadget_Dataform_LabelBoxoffice,295,600,110,25,"Boxoffice",#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_LabelBoxoffice,LoadFont(#Gadget_Dataform_LabelBoxoffice,"Comic Sans MS",10,0))
      StringGadget(#Gadget_Dataform_Boxoffice,410,595,395,25,"")
        SetGadgetFont(#Gadget_Dataform_Boxoffice,LoadFont(#Gadget_Dataform_Boxoffice,"Comic Sans MS",10,0))
      TextGadget(#Gadget_Dataform_LabelProduction,10,630,110,25,"Production",#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_LabelProduction,LoadFont(#Gadget_Dataform_LabelProduction,"Comic Sans MS",10,0))
      StringGadget(#Gadget_Dataform_Production,125,625,680,25,"")
        SetGadgetFont(#Gadget_Dataform_Production,LoadFont(#Gadget_Dataform_Production,"Comic Sans MS",10,0))
      TextGadget(#Gadget_Dataform_LabelWebsite,10,660,110,25,"Website",#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_LabelWebsite,LoadFont(#Gadget_Dataform_LabelWebsite,"Comic Sans MS",10,0))
      StringGadget(#Gadget_Dataform_Website,125,655,680,25,"")
        SetGadgetFont(#Gadget_Dataform_Website,LoadFont(#Gadget_Dataform_Website,"Comic Sans MS",10,0))
      TextGadget(#Gadget_Dataform_LabelRatings,10,690,80,25,"Website",#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_LabelRatings,LoadFont(#Gadget_Dataform_LabelRatings,"Comic Sans MS",10,0))
      ListIconGadget(#Gadget_Dataform_Ratings,95,685,610,105,"Rating site name",450,#PB_ListIcon_GridLines|#PB_ListIcon_FullRowSelect|#PB_ListIcon_AlwaysShowSelection)
        AddGadgetColumn(#Gadget_Dataform_Ratings,1,"Score?",130)
        AddGadgetColumn(#Gadget_Dataform_Ratings,2,"Recordid",0)
        SetGadgetFont(#Gadget_Dataform_Ratings,LoadFont(#Gadget_Dataform_Ratings,"Comic Sans MS",10,0))
      ResizeImage(#Image_Dataform_Logo,DesktopScaledX(90),DesktopScaledY(105))
      ImageGadget(#Gadget_Dataform_Logo,715,685,90,105,ImageID(#Image_Dataform_Logo))
      CloseGadgetList()
      ContainerGadget(#Gadget_Dataform_cControl,5,810,820,70,#PB_Container_BorderLess)
      ImageGadget(#Gadget_Dataform_Save,5,5,54,54,ImageID(#Image_Dataform_Save))
      ImageGadget(#Gadget_Dataform_Cover,125,5,54,54,ImageID(#Image_Dataform_Cover))
      ImageGadget(#Gadget_Dataform_Lookup,65,5,54,54,ImageID(#Image_Dataform_Lookup))
      ImageGadget(#Gadget_Dataform_Print,185,5,54,54,ImageID(#Image_Dataform_Print))
      ImageGadget(#Gadget_Dataform_Help,245,5,54,54,ImageID(#Image_Dataform_Help))
      StringGadget(#Gadget_Dataform_Recordnumber,320,10,55,25,"",#PB_String_BorderLess|#PB_Text_Center)
        SetGadgetFont(#Gadget_Dataform_Recordnumber,LoadFont(#Gadget_Dataform_Recordnumber,"Comic Sans MS",10,0))
      TextGadget(#Gadget_Dataform_lRecordnumber,320,37,55,20,"Record",#PB_Text_Center)
        SetGadgetColor(#Gadget_Dataform_lRecordnumber,#PB_Gadget_FrontColor,$FF0000)
        SetGadgetFont(#Gadget_Dataform_lRecordnumber,LoadFont(#Gadget_Dataform_lRecordnumber,"Comic Sans MS",8,0))
      StringGadget(#Gadget_Dataform_Search,390,10,335,25,"",#PB_String_BorderLess)
        SetGadgetFont(#Gadget_Dataform_Search,LoadFont(#Gadget_Dataform_Search,"Comic Sans MS",10,0))
      TextGadget(#Gadget_Dataform_lControl,390,37,335,20,"Type  IMDB ID or title and year separated by '/'")
        SetGadgetColor(#Gadget_Dataform_lControl,#PB_Gadget_FrontColor,$FF0000)
        SetGadgetFont(#Gadget_Dataform_lControl,LoadFont(#Gadget_Dataform_lControl,"Comic Sans MS",8,0))
      ImageGadget(#Gadget_Dataform_Exit,760,5,54,54,ImageID(#Image_Dataform_Exit))
      CloseGadgetList()
      StringGadget(#Gadget_Dataform_Statusbar,5,890,820,20,"",#PB_String_ReadOnly|#PB_String_BorderLess)
        SetGadgetColor(#Gadget_Dataform_Statusbar,#PB_Gadget_FrontColor,$FF0000)
        SetGadgetFont(#Gadget_Dataform_Statusbar,LoadFont(#Gadget_Dataform_Statusbar,"Comic Sans MS",8,0))
      HideWindow(#Window_Dataform,0)
    ProcedureReturn WindowID(#Window_Dataform)
  EndIf
EndProcedure



; IDE Options = PureBasic 5.70 LTS (Windows - x86)
; CursorPosition = 190
; FirstLine = 185
; Folding = -
; EnableAsm
; EnableThread
; EnableXP
; EnableOnError
; CompileSourceDirectory
; EnableCompileCount = 0
; EnableBuildCount = 0
; EnableExeConstant