{"id":479,"date":"2010-12-21T21:29:46","date_gmt":"2010-12-21T21:29:46","guid":{"rendered":"https:\/\/ibex.tech\/visualcpp\/?p=479"},"modified":"2022-02-17T06:24:04","modified_gmt":"2022-02-17T06:24:04","slug":"buttons-general","status":"publish","type":"post","link":"https:\/\/ibex.tech\/visualcpp\/buttons\/buttons-general","title":{"rendered":"Buttons General"},"content":{"rendered":"<p>\nWhen you want to disable a button but say create a message box when its clicked, or have it still show tool tip text you can use:\n<\/p>\n<pre>\r\n<code>\r\n-&gt;ForeColour = System::Drawing::SystemColors::ControlText\t\t\/\/for normal button\r\n-&gt;ForeColour = System::Drawing::SystemColors::InactiveCaptionText\t\/\/for disabled button\r\n<\/code><\/pre>\n<p>\nand then just to a check in the buttons click function.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you want to disable a button but say create a message box when its clicked, or have it still show tool tip text you can use: -&gt;ForeColour = System::Drawing::SystemColors::ControlText \/\/for normal button -&gt;ForeColour = System::Drawing::SystemColors::InactiveCaptionText \/\/for disabled button and then just to a check in the buttons click function.<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[65],"tags":[],"class_list":["post-479","post","type-post","status-publish","format-standard","hentry","category-buttons"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/479","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/comments?post=479"}],"version-history":[{"count":3,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/479\/revisions"}],"predecessor-version":[{"id":1070,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/479\/revisions\/1070"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/media?parent=479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/categories?post=479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/tags?post=479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}