{"id":4765,"date":"2025-05-08T09:12:45","date_gmt":"2025-05-08T09:12:45","guid":{"rendered":"https:\/\/webprojects.cloud\/wordpress\/splatco\/?page_id=4765"},"modified":"2025-05-08T09:12:45","modified_gmt":"2025-05-08T09:12:45","slug":"buttonparamsbtn-row-col-height-width-text-visible-clickhandler-hash-function","status":"publish","type":"page","link":"https:\/\/webprojects.cloud\/wordpress\/splatco\/buttonparamsbtn-row-col-height-width-text-visible-clickhandler-hash-function\/","title":{"rendered":"# ButtonParams(btn, row, col, height, width, &#8220;text&#8221;, visible, ClickHandler) hash function"},"content":{"rendered":"\n<p>DEPRECATED<\/p>\n\n\n\n<p>Valid for use with hash command:\u00a0<code><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/deprecated\/hmi-android-windows\/\">HMI<\/a><\/code><\/p>\n\n\n\n<p>Don&#8217;t use this without good reason. Use\u00a0<code><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/deprecated\/hmi-android-windows\/buttoneventid-row-col-height-width-text-mode-clickhandler-hash-function\/\">ButtonEvent<\/a><\/code>\u00a0in preference.<\/p>\n\n\n\n<p>Change the settings of a button. All the parameters except&nbsp;<code>btn<\/code>&nbsp;are optional. To omit a parameter have the comma but nothing else.<\/p>\n\n\n\n<p>This function is useful for dynamically changing a button&#8217;s appearance without having to specify a different click handler. It makes sense only if a button is already displayed via a\u00a0<code><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/deprecated\/hmi-android-windows\/buttoneventid-row-col-height-width-text-mode-clickhandler-hash-function\/\">ButtonEvent<\/a><\/code>\u00a0function.<\/p>\n\n\n\n<p>The parameters are:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><code>btn<\/code><\/td><td>The button number to use. The button must have been initially displayed and explicitly numbered with a\u00a0<code><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/deprecated\/hmi-android-windows\/buttoneventid-row-col-height-width-text-mode-clickhandler-hash-function\/\">ButtonEvent<\/a>.<\/code><\/td><\/tr><tr><td><code>Row<\/code><\/td><td>The screen row where the top of the button is to be positioned. This refers to character rows in the default font size. Row numbers are 0 based, so the top row is row 0.<\/td><\/tr><tr><td><code>Col<\/code><\/td><td>The screen column where the left of the button is to be positioned. This refers to character columns in the default font size. Column numbers are 0 based, so the start of each line is 0.<\/td><\/tr><tr><td><code>Height<\/code><\/td><td>The height of the button in multiples of the character height of the default font.<\/td><\/tr><tr><td><code>Width<\/code><\/td><td>The width of the button in multiples of the character width of the default font.<\/td><\/tr><tr><td><code>Visible<\/code><\/td><td>If this is 0, the button will be invisible. Any non-zero value makes the button visible.<\/td><\/tr><tr><td><code>\"text\"<\/code><\/td><td>The text to be displayed on the button. This must be enclosed in quotation marks. Non-printing characters are not possible<\/td><\/tr><tr><td><code>ClickCode<\/code><\/td><td>The actual code that will be sent by the\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/deprecated\/hmi-android-windows\/\">HMI<\/a>\u00a0when the button is clicked.<em>\u00a0It is highly advisable not to change this<\/em>!<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>In addition to being simple numbers, the row\/column coordinates may also be specified in relative or proportional terms. The following table illustrates the possibilities.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><th>Format (example)<\/th><th>As a row specifier<\/th><th>As a column specifier<\/th><\/tr><tr><td><code>5<\/code><\/td><td>Row number 5 from the top, counting from 0. This can be a fractional number such as 5.5<\/td><td>Column number 5 from the left, counting from 0<\/td><\/tr><tr><td><code>-5<\/code><\/td><td>Row 5 from the bottom, counting from 0. This can be a fractional number such as -5.25<\/td><td>Column 5 from the right, counting from 0<\/td><\/tr><tr><td><code>0<\/code><\/td><td>The top character row<\/td><td>The left-most character column<\/td><\/tr><tr><td><code>-0<\/code><\/td><td>The bottom character row<\/td><td>The right-most character column<\/td><\/tr><tr><td><code>0.25<\/code><\/td><td>One quarter of (0.25 times) the screen height from the top. Fractional number between -1 and +1 are interpreted as a fraction of the screen.<\/td><td>One quarter of the screen width from the left.<\/td><\/tr><tr><td><code>-0.25<\/code><\/td><td>One quarter of the screen height from the bottom.<\/td><td>One quarter of the screen width from the right.<\/td><\/tr><tr><td><code>C<\/code><\/td><td>The top-bottom centre of the screen.<\/td><td>The left-right centre of the screen.<\/td><\/tr><tr><td><code>C+5<\/code><\/td><td>Five character rows down from the centre<\/td><td>Five character widths right from the centre.<\/td><\/tr><tr><td><code>C-5<\/code><\/td><td>Five character rows up from the centre<\/td><td>Five character width left from the centre.<\/td><\/tr><tr><td><code>C+.25<\/code><\/td><td>One quarter character row down from the centre. After a &#8220;C&#8221; all numbers are interpreted as multiples of the character pitch.<\/td><td>One quarter character width right from the centre.<\/td><\/tr><tr><td><code>C-3.25<\/code><\/td><td>Three and a quarter character rows up from the centre. After a &#8220;C&#8221; all numbers are interpreted as multiples of the character pitch.<\/td><td>Three and a quarter character widths left from the centre.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>In addition to being simple numbers, the width and height coordinates may also be specified in relative or proportional terms. The following table illustrates the possibilities.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><th>Format (example)<\/th><th>As a height specifier<\/th><th>As a width specifier<\/th><\/tr><tr><td><code>5<\/code><\/td><td>5 character rows in height<\/td><td>5 character rows in width<\/td><\/tr><tr><td><code>0.25<\/code><\/td><td>One quarter of (0.25 times) the screen height. Always calculated as a full number of rows, always rounded down, but forced to be at least 1.<\/td><td>One quarter of (0.25 times) the screen width. Always calculated as a full number of columns, always rounded down, but forced to be at least 1.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>See also\u00a0<code><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/deprecated\/hmi-android-windows\/buttoneventid-row-col-height-width-text-mode-clickhandler-hash-function\/\">ButtonEven<\/a><\/code><a href=\"https:\/\/www.splatco.com\/skb\/5259.htm\">t<\/a>\u00a0for a higher level of functionality.<\/p>\n\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>DEPRECATED Valid for use with hash command:\u00a0HMI Don&#8217;t use this without good reason. Use\u00a0ButtonEvent\u00a0in preference. Change the settings of a button. All the parameters except&nbsp;btn&nbsp;are&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-templates\/template-knowledge-landing.php","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-4765","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title># ButtonParams(btn, row, col, height, width, &quot;text&quot;, visible, ClickHandler) hash function - SPLat Controls<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"# ButtonParams(btn, row, col, height, width, &quot;text&quot;, visible, ClickHandler) hash function - SPLat Controls\" \/>\n<meta property=\"og:description\" content=\"DEPRECATED Valid for use with hash command:\u00a0HMI Don&#8217;t use this without good reason. Use\u00a0ButtonEvent\u00a0in preference. Change the settings of a button. All the parameters except&nbsp;btn&nbsp;are...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/buttonparamsbtn-row-col-height-width-text-visible-clickhandler-hash-function\/\" \/>\n<meta property=\"og:site_name\" content=\"SPLat Controls\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/buttonparamsbtn-row-col-height-width-text-visible-clickhandler-hash-function\/\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/buttonparamsbtn-row-col-height-width-text-visible-clickhandler-hash-function\/\",\"name\":\"# ButtonParams(btn, row, col, height, width, \\\"text\\\", visible, ClickHandler) hash function - SPLat Controls\",\"isPartOf\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website\"},\"datePublished\":\"2025-05-08T09:12:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/buttonparamsbtn-row-col-height-width-text-visible-clickhandler-hash-function\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webprojects.cloud\/wordpress\/splatco\/buttonparamsbtn-row-col-height-width-text-visible-clickhandler-hash-function\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/buttonparamsbtn-row-col-height-width-text-visible-clickhandler-hash-function\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"# ButtonParams(btn, row, col, height, width, &#8220;text&#8221;, visible, ClickHandler) hash function\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/\",\"name\":\"SPLat Controls\",\"description\":\"OEM Embedded Machine Controllers\",\"publisher\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization\",\"name\":\"SPLat Controls\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg\",\"contentUrl\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg\",\"caption\":\"SPLat Controls\"},\"image\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"# ButtonParams(btn, row, col, height, width, \"text\", visible, ClickHandler) hash function - SPLat Controls","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"# ButtonParams(btn, row, col, height, width, \"text\", visible, ClickHandler) hash function - SPLat Controls","og_description":"DEPRECATED Valid for use with hash command:\u00a0HMI Don&#8217;t use this without good reason. Use\u00a0ButtonEvent\u00a0in preference. Change the settings of a button. All the parameters except&nbsp;btn&nbsp;are...","og_url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/buttonparamsbtn-row-col-height-width-text-visible-clickhandler-hash-function\/","og_site_name":"SPLat Controls","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/buttonparamsbtn-row-col-height-width-text-visible-clickhandler-hash-function\/","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/buttonparamsbtn-row-col-height-width-text-visible-clickhandler-hash-function\/","name":"# ButtonParams(btn, row, col, height, width, \"text\", visible, ClickHandler) hash function - SPLat Controls","isPartOf":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website"},"datePublished":"2025-05-08T09:12:45+00:00","breadcrumb":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/buttonparamsbtn-row-col-height-width-text-visible-clickhandler-hash-function\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webprojects.cloud\/wordpress\/splatco\/buttonparamsbtn-row-col-height-width-text-visible-clickhandler-hash-function\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/buttonparamsbtn-row-col-height-width-text-visible-clickhandler-hash-function\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/"},{"@type":"ListItem","position":2,"name":"# ButtonParams(btn, row, col, height, width, &#8220;text&#8221;, visible, ClickHandler) hash function"}]},{"@type":"WebSite","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/","name":"SPLat Controls","description":"OEM Embedded Machine Controllers","publisher":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webprojects.cloud\/wordpress\/splatco\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization","name":"SPLat Controls","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg","contentUrl":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg","caption":"SPLat Controls"},"image":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/pages\/4765","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/comments?post=4765"}],"version-history":[{"count":1,"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/pages\/4765\/revisions"}],"predecessor-version":[{"id":4766,"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/pages\/4765\/revisions\/4766"}],"wp:attachment":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/media?parent=4765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}