{"id":511,"date":"2024-09-17T00:04:41","date_gmt":"2024-09-17T00:04:41","guid":{"rendered":"http:\/\/basicwebsitesolutions.com\/blog\/?p=511"},"modified":"2024-09-17T00:04:41","modified_gmt":"2024-09-17T00:04:41","slug":"delphi-buttons-create-an-hour-glass-impression-while-waiting","status":"publish","type":"post","link":"https:\/\/basicwebsitesolutions.com\/blog\/2024\/09\/17\/delphi-buttons-create-an-hour-glass-impression-while-waiting\/","title":{"rendered":"Delphi Buttons &#8211; Create an hour glass impression while waiting"},"content":{"rendered":"\n<p>Got a chance to receive source code from a software vendor and the button on this program made me smile. <\/p>\n\n\n\n<p>Haven&#8217;t though of it that way. But i think it works.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>procedure TSFTPClientFrame.btConnectSSHClick(Sender: TObject);\nvar\n  OldCursor: TCursor;\nbegin\n  OldCursor := Screen.Cursor;\n  try\n    Screen.Cursor := crHourGlass;\n    ScSSHClient.Connect;\n  finally\n    Screen.Cursor := OldCursor;\n  end;\nend;<\/code><\/pre>\n\n\n\n<p>The hour glass cursor is within the try row. Once it is done, it revert backs the cursor to the original one used. Pretty awesome.<\/p>\n\n\n\n<p>Just wanted to share<\/p>\n\n\n\n<p>Coffee Cup<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Delphi Buttons &#8211; Create an hour glass impression while waiting<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,1],"tags":[336,335,334,337],"class_list":["post-511","post","type-post","status-publish","format-standard","hentry","category-day-to-day-life","category-delphi-and-interbase","category-life-as-a-programmer","tag-button","tag-cursor","tag-dephi","tag-hourglass"],"_links":{"self":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=511"}],"version-history":[{"count":1,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/511\/revisions"}],"predecessor-version":[{"id":512,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/511\/revisions\/512"}],"wp:attachment":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}