{"id":481,"date":"2010-12-21T21:31:24","date_gmt":"2010-12-21T21:31:24","guid":{"rendered":"https:\/\/ibex.tech\/visualcpp\/?p=481"},"modified":"2022-02-17T06:24:04","modified_gmt":"2022-02-17T06:24:04","slug":"button-images","status":"publish","type":"post","link":"https:\/\/ibex.tech\/visualcpp\/buttons\/button-images","title":{"rendered":"Button Images"},"content":{"rendered":"<h4>\nCreating Images<br \/>\n<\/h4>\n<p>\nPNG with transparancy\n<\/p>\n<p>\nDPI = 72\n<\/p>\n<p>\nIf using a normal 3D button the button size will need to be the image resolution + 6\n<\/p>\n<h4>\nButtons With No Border (Just image but no mouse over or click effect)<br \/>\n<\/h4>\n<p>\nButton properties\n<\/p>\n<p style=\"padding-left: 30px;\">\nText =&nbsp;[blank]\n<\/p>\n<p style=\"padding-left: 30px;\">\nImage = Set Image\n<\/p>\n<p style=\"padding-left: 30px;\">\nFlatStyle&nbsp;=&nbsp;Flat\n<\/p>\n<p style=\"padding-left: 30px;\">\nFlatAppearance &gt; BorderColor =&nbsp;Set to match background (otherwise you get a black border when clicked even if the border width is set to 0)\n<\/p>\n<p style=\"padding-left: 30px;\">\nFlatAppearance &gt; Border = 0\n<\/p>\n<p style=\"padding-left: 30px;\">\nFlatAppearance &gt; MouseDown = Set to match background\n<\/p>\n<p style=\"padding-left: 30px;\">\nFlatAppearance &gt; MouseOver = Set to match background\n<\/p>\n<h4>\nButtons With Normal 3D Effect<br \/>\n<\/h4>\n<p>\nButton properties\n<\/p>\n<p style=\"padding-left: 30px;\">\nText [blank]\n<\/p>\n<p style=\"padding-left: 30px;\">\nImage Set Image\n<\/p>\n<p style=\"padding-left: 30px;\">\nFlat Style Flat\n<\/p>\n<p style=\"padding-left: 30px;\">\nFlat Appearance &gt; Border 0\n<\/p>\n<p style=\"padding-left: 30px;\">\nFlat Appearance &gt; Mouse Down Set to match background\n<\/p>\n<p style=\"padding-left: 30px;\">\nFlat Appearance &gt; Mouse Over Set to match background\n<\/p>\n<p>\nIf you want image and text use image align and text align properties\n<\/p>\n<h4>\nIrregular shaped image buttons<br \/>\n<\/h4>\n<p>\nGood tutorial:\n<\/p>\n<p>\n<a href=\"http:\/\/www.codeproject.com\/KB\/buttons\/BearForm1.aspx\" target=\"_blank\" rel=\"noopener\">http:\/\/www.codeproject.com\/KB\/buttons\/BearForm1.aspx<\/a>\n<\/p>\n<h4>\nChanging Button Image<br \/>\n<\/h4>\n<p>\nCreate an image list with the required images in it (set the required resolution and&nbsp;select 32bit colour).\n<\/p>\n<p>\nSelect the button and set these properties:\n<\/p>\n<p style=\"margin-left: 40px;\">\nImageList = select the image list you created.\n<\/p>\n<p style=\"margin-left: 40px;\">\nImageIndex = select the default image to display\n<\/p>\n<p>\nTo select the image to be used at runtime:\n<\/p>\n<pre>\r\n<code>\r\n\tbtnMyButton-&gt;ImageIndex = 1;\r\n<\/code><\/pre>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating Images PNG with transparancy DPI = 72 If using a normal 3D button the button size will need to be the image resolution + 6 Buttons With No Border (Just image but no mouse over or click effect) Button properties Text =&nbsp;[blank] Image = Set Image FlatStyle&nbsp;=&nbsp;Flat FlatAppearance &gt; BorderColor =&nbsp;Set to match background [&hellip;]<\/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-481","post","type-post","status-publish","format-standard","hentry","category-buttons"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/481","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=481"}],"version-history":[{"count":8,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/481\/revisions"}],"predecessor-version":[{"id":1624,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/481\/revisions\/1624"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/media?parent=481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/categories?post=481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/tags?post=481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}