{"id":121,"date":"2007-05-12T14:35:57","date_gmt":"2007-05-12T12:35:57","guid":{"rendered":" http:\/\/www.nsonic.de\/blog\/2007\/05\/resize\/"},"modified":"2007-05-12T14:35:59","modified_gmt":"2007-05-12T12:35:59","slug":"resize","status":"publish","type":"post","link":"https:\/\/www.nsonic.de\/blog\/2007\/05\/resize\/","title":{"rendered":"Resize"},"content":{"rendered":"<p>[code lang=&#8221;delphi&#8221;]\/\/Notice the 640 reference.<\/p>\n<p>procedure AdjustResolution(oForm:TForm);<br \/>\nvar<br \/>\niPercentage:integer;<br \/>\nbegin<br \/>\nif Screen.Width > 640 then<br \/>\n  begin<br \/>\n    iPercentage:=Round(((Screen.Width-640)\/640)*100)+100;<br \/>\n    oForm.ScaleBy(iPercentage,100);<br \/>\n  end;<br \/>\nend;<\/p>\n<p>\/\/call it like so<br \/>\nAdjustResolution(Self);<br \/>\n[\/code]<\/p>\n<p>[tags]Delphi, Forms[\/tags]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[code lang=&#8221;delphi&#8221;]\/\/Notice the 640 reference. procedure AdjustResolution(oForm:TForm); var iPercentage:integer; begin if Screen.Width > 640 then begin iPercentage:=Round(((Screen.Width-640)\/640)*100)+100; oForm.ScaleBy(iPercentage,100); end; end; \/\/call it like&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[11],"tags":[75,100],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/s71Tml-resize","_links":{"self":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/121"}],"collection":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/comments?post=121"}],"version-history":[{"count":0,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/121\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/media?parent=121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/categories?post=121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/tags?post=121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}