{"id":229,"date":"2007-05-12T17:15:52","date_gmt":"2007-05-12T15:15:52","guid":{"rendered":" http:\/\/www.nsonic.de\/blog\/2007\/05\/keys-status\/"},"modified":"2007-05-12T17:15:54","modified_gmt":"2007-05-12T15:15:54","slug":"keys-status","status":"publish","type":"post","link":"https:\/\/www.nsonic.de\/blog\/2007\/05\/keys-status\/","title":{"rendered":"Keys Status"},"content":{"rendered":"<p>[code lang=&#8221;delphi&#8221;]Procedure TForm1.GetStatusInfo;<br \/>\nconst<br \/>\n  CapPanel  = 1;<br \/>\n  NumPanel  = 2;<br \/>\n  ScrlPanel = 3;<br \/>\n  DatePanel = 4;<br \/>\nbegin<br \/>\n  with StatusBar1 do<br \/>\n  begin<br \/>\n    if GetKeyState(VK_CAPITAL) <> 0 then<br \/>\n      StatusBar1.Panels[CapPanel].Text := &#8216; CAP&#8217;<br \/>\n    else<br \/>\n      StatusBar1.Panels[CapPanel].Text := &#8221;;<br \/>\n    if GetKeyState(VK_NUMLOCK) <> 0 then<br \/>\n      StatusBar1.Panels[NumPanel].Text := &#8216; NUM&#8217;<br \/>\n    else<br \/>\n      StatusBar1.Panels[NumPanel].Text := &#8221;;<br \/>\n    if GetKeyState(VK_SCROLL) <> 0 then<br \/>\n      StatusBar1.Panels[ScrlPanel].Text := &#8216; SCRL&#8217;<br \/>\n    else<br \/>\n      StatusBar1.Panels[ScrlPanel].Text := &#8221;;<br \/>\n   StatusBar1.Panels[DatePanel].Text := FormatDateTime(&#8216; mmmm D, YYYYY&#8217;, now);<br \/>\n  end;<br \/>\nEnd;<br \/>\n[\/code]<\/p>\n<p>[tags]Delphi, System, Keyboard[\/tags]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[code lang=&#8221;delphi&#8221;]Procedure TForm1.GetStatusInfo; const CapPanel = 1; NumPanel = 2; ScrlPanel = 3; DatePanel = 4; begin with StatusBar1 do begin if GetKeyState(VK_CAPITAL)&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,113],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p71Tml-3H","_links":{"self":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/229"}],"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=229"}],"version-history":[{"count":0,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/229\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/media?parent=229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/categories?post=229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/tags?post=229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}