{"id":65561,"date":"2026-11-25T19:15:51","date_gmt":"2026-11-25T18:15:51","guid":{"rendered":"https:\/\/amit-automation.cz\/podpora\/casto-kladene-otazky\/amit-designer-napoveda\/lock-element\/"},"modified":"2026-11-25T19:15:51","modified_gmt":"2026-11-25T18:15:51","slug":"lock-element","status":"publish","type":"napoveda","link":"https:\/\/amit-automation.cz\/en\/support\/faq\/amit-designer-help\/lock-element\/","title":{"rendered":"Lock element"},"content":{"rendered":"<p style=\"text-align: justify;\">Lock, if applied, can turn any element of your graphics into a lock key. You can use Lock to disable accidental write\/set commands from being executed. If enabled, the user must first press and hold the Lock element and then press the element with the set command.<\/p>\n<p style=\"text-align: justify;\">Lock element is not pressed = user cannot press the button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/img_20.4.1.jpg\" alt=\"20.40.1\" width=\"250\" height=\"206\" \/><\/p>\n<p style=\"text-align: justify;\">Lock element is pressed = user can press the button<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/img_20.4.2.jpg\" alt=\"20.4.2\" width=\"250\" height=\"199\" \/><\/p>\n<p style=\"text-align: justify;\">If you want to apply this function, select the object you want to set as a lock, navigate to the <strong>Commands <\/strong>tab of the <em>Properties<\/em> window, and check the box in the <em>Lock<\/em> section.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/img_20.4.3.jpg\" alt=\"20.4.3\" width=\"500\" height=\"308\" \/><\/p>\n<ul class=\"bullet_plus imglist\">\n<li><span style=\"color: #999999;\"><em>Note: This function is only usable on multi-touch devices.<\/em><\/span><\/li>\n<\/ul>\n<p>Once you have set up your Lock element, you can use it anywhere in the Write\/Set Command. Simply apply the Write\/Set Command to any element and check the \u201c\u201d check box.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/img_20.4.4.jpg\" alt=\"20.4.4\" width=\"500\" height=\"437\" \/><\/p>\n<h3><span style=\"color: #0084c8;\">Example<\/span><\/h3>\n<p style=\"text-align: justify;\">In the following example, we will create a simple view with a lock element and a button. The button will be enabled only if the user presses and holds the lock element simultaneously.<\/p>\n<p style=\"text-align: justify;\">1. Create a new view and insert the Lock icon and a button. You can also insert an indicator to see if your button is working<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/img_20.4.5.jpg\" alt=\"20.4.5\" width=\"500\" height=\"437\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/img_20.4.6.jpg\" alt=\"20.4.6\" width=\"500\" height=\"472\" \/><\/p>\n<p style=\"text-align: justify;\">2. Now enable the Lock command on the Lock icon<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/img_20.4.7.jpg\" alt=\"20.4.7\" width=\"500\" height=\"308\" \/><\/p>\n<p>3. Now navigate to the Write\/Set command and create a toggle action. Check the \u201c<strong>Lock Enable<\/strong>\u201d check box.<\/p>\n<p>4. Now when you open your view, you will be able to press the button only if you simultaneously press the Lock icon.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"menu_order":109,"template":"","class_list":["post-65561","napoveda","type-napoveda","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/amit-automation.cz\/en\/wp-json\/wp\/v2\/napoveda\/65561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/amit-automation.cz\/en\/wp-json\/wp\/v2\/napoveda"}],"about":[{"href":"https:\/\/amit-automation.cz\/en\/wp-json\/wp\/v2\/types\/napoveda"}],"version-history":[{"count":0,"href":"https:\/\/amit-automation.cz\/en\/wp-json\/wp\/v2\/napoveda\/65561\/revisions"}],"wp:attachment":[{"href":"https:\/\/amit-automation.cz\/en\/wp-json\/wp\/v2\/media?parent=65561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}