<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Lock Screen with Click Event in GUI Guider</title>
    <link>https://community.nxp.com/t5/GUI-Guider/Lock-Screen-with-Click-Event/m-p/1782257#M736</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I use Gui Guider 1.6.0 on Ubuntu. I have a button. I want to have unclickable screen after clicking this button. I know that below code helps me for one object. But I have a lot of object on one screen and I have more than 10 different screens.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;lv_obj_clear_flag(guider_ui.obj1, LV_OBJ_FLAG_CLICKABLE);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Is there any short(cut/code) to do this with one line code ?&lt;BR /&gt;Such as&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;lv_obj_clear_flag(ALL OBJECTS ON THE PAGE, LV_OBJ_FLAG_CLICKABLE);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I have tried this,&lt;BR /&gt;I added lock button to the page, I added container and added all other objects into this container. I added event clear flag for this container but it didn't work as I expected. I might click other objects.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jan 2024 10:44:56 GMT</pubDate>
    <dc:creator>frozen</dc:creator>
    <dc:date>2024-01-03T10:44:56Z</dc:date>
    <item>
      <title>Lock Screen with Click Event</title>
      <link>https://community.nxp.com/t5/GUI-Guider/Lock-Screen-with-Click-Event/m-p/1782257#M736</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I use Gui Guider 1.6.0 on Ubuntu. I have a button. I want to have unclickable screen after clicking this button. I know that below code helps me for one object. But I have a lot of object on one screen and I have more than 10 different screens.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;lv_obj_clear_flag(guider_ui.obj1, LV_OBJ_FLAG_CLICKABLE);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Is there any short(cut/code) to do this with one line code ?&lt;BR /&gt;Such as&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;lv_obj_clear_flag(ALL OBJECTS ON THE PAGE, LV_OBJ_FLAG_CLICKABLE);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I have tried this,&lt;BR /&gt;I added lock button to the page, I added container and added all other objects into this container. I added event clear flag for this container but it didn't work as I expected. I might click other objects.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 10:44:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/GUI-Guider/Lock-Screen-with-Click-Event/m-p/1782257#M736</guid>
      <dc:creator>frozen</dc:creator>
      <dc:date>2024-01-03T10:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Screen with Click Event</title>
      <link>https://community.nxp.com/t5/GUI-Guider/Lock-Screen-with-Click-Event/m-p/1782725#M739</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/220200"&gt;@frozen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Hi, in the GUI Guider each widget is a separate object. If you only add the event clear flag to the container, it will not work for buttons inside the container. If you want all widgets in the container to be unclickable, you need to add an event clear flag to each widget. Please refer to the attached video.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Currently, one-click setting is not supported to add a clear flag to all widgets. Hope this helps you.&lt;/P&gt;
&lt;P&gt;Best regards, Alex.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 06:24:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/GUI-Guider/Lock-Screen-with-Click-Event/m-p/1782725#M739</guid>
      <dc:creator>Alex_Wang</dc:creator>
      <dc:date>2024-01-04T06:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Screen with Click Event</title>
      <link>https://community.nxp.com/t5/GUI-Guider/Lock-Screen-with-Click-Event/m-p/1782770#M740</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/220200"&gt;@frozen&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As the comment from Alex, the GUI Guider has no one line way to reach your goal, but there's a workaround may help you:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;add a screen size simple widget like Label to cover all the objects you want to 'lock' by adjusting its position in widgets resource tree, clear all text of this widget and keep it transparent&lt;/LI&gt;
&lt;LI&gt;add event to your lock button (please enable toggle for this button) with Clicked Trigger and custom code:&lt;LI-CODE lang="c"&gt;if (lv_obj_has_state(guider_ui.pageStatic_btn_1, LV_STATE_CHECKED)) {
	        lv_obj_add_flag(guider_ui.pageStatic_label_1, LV_OBJ_FLAG_CLICKABLE);
	    } else {
	        lv_obj_clear_flag(guider_ui.pageStatic_label_1, LV_OBJ_FLAG_CLICKABLE);
	    }​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;LI&gt;run simulator to check the 'lock' operation, all the objects under label should be unclickable after the button checked.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wenbin&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 07:06:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/GUI-Guider/Lock-Screen-with-Click-Event/m-p/1782770#M740</guid>
      <dc:creator>WenbinYuan</dc:creator>
      <dc:date>2024-01-04T07:06:47Z</dc:date>
    </item>
  </channel>
</rss>

