{"id":189,"date":"2007-05-12T16:50:29","date_gmt":"2007-05-12T14:50:29","guid":{"rendered":" http:\/\/www.nsonic.de\/blog\/2007\/05\/eastereggs\/"},"modified":"2007-05-12T16:50:30","modified_gmt":"2007-05-12T14:50:30","slug":"eastereggs","status":"publish","type":"post","link":"https:\/\/www.nsonic.de\/blog\/2007\/05\/eastereggs\/","title":{"rendered":"EasterEggs"},"content":{"rendered":"<p><em>><br \/>\n> How to capture ALT+T E A M in a about box?<br \/>\n><br \/>\n<\/em><br \/>\nHi &#8230; Set the form&#8217;s  KeyPreview property to True and then write the<br \/>\nfollowing code :<br \/>\n<!--more--><\/p>\n<p>[code lang=&#8221;delphi&#8221;]var<br \/>\n  Form1: TForm1;<br \/>\n  Text2 : String; \/\/ Global string.<\/p>\n<p>implementation<\/p>\n<p>{$R *.DFM}<\/p>\n<p>procedure TForm1.FormCreate(Sender: TObject);<br \/>\nbegin<br \/>\n  Text2 := EmptyStr;<br \/>\nend;<\/p>\n<p>procedure TForm1.FormKeyUp(Sender: TObject; var Key: Word;<br \/>\n  Shift: TShiftState);<br \/>\nbegin<br \/>\n  if ssAlt in Shift then<br \/>\n   begin<br \/>\n    if Pos(Text2 + UpCase(Chr(Key)), &#8216;TEAM&#8217;) > 0 then<br \/>\n      begin<br \/>\n        Text2 := Text2 + UpCase(Chr(Key ));<br \/>\n      end<br \/>\n    else<br \/>\n      begin<br \/>\n        Text2 := UpCase(Chr(Key ));<br \/>\n      end;<br \/>\n    if Text2 = &#8216;TEAM&#8217; then<br \/>\n      begin<br \/>\n      Text2 := EmptyStr;<br \/>\n      \/\/ from here, you can write anything you&#8217;d like to be done &#8230;<br \/>\n      ShowMessage(&#8216;Easter Egg!!&#8217;);<br \/>\n      end;<br \/>\n    end;<br \/>\nend;<\/p>\n<p>end.<br \/>\n[\/code]<\/p>\n<p>[tags]Delphi, Misc, Keyboard[\/tags]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>> > How to capture ALT+T E A M in a about box? > Hi &#8230; Set the form&#8217;s KeyPreview property to True&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,111,107],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p71Tml-33","_links":{"self":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/189"}],"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=189"}],"version-history":[{"count":0,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/189\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/media?parent=189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/categories?post=189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/tags?post=189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}