<?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>GUI GuiderのトピックRe: Version 2 issues: C code generation, preview</title>
    <link>https://community.nxp.com/t5/GUI-Guider/Version-2-issues-C-code-generation-preview/m-p/2394874#M1867</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229957"&gt;@Harry_Zhang&lt;/a&gt;&amp;nbsp;, thank you for your reply.&lt;/P&gt;&lt;P&gt;This is what I did:&lt;/P&gt;&lt;P&gt;- On layer_top (clickable flag added, is this necessary?) I created a container for my buttons (no&amp;nbsp;clickable flag added)&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;- Inside the container I created an image button&amp;nbsp;(clickable flag added)&amp;nbsp;&lt;BR /&gt;- I attached the event "Long Pressed" to the button&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="poldo_0-1784023768341.png" style="width: 885px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/392226iBFF783192D285B94/image-dimensions/885x521?v=v2" width="885" height="521" role="button" title="poldo_0-1784023768341.png" alt="poldo_0-1784023768341.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Generated code contains the syntax errors above.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// In gg_event_layer_top.c
static void lv_layer_top()_event_handler(lv_event_t * e)
{
    gg_ui_t * ui = lv_event_get_user_data(e);

    lv_event_code_t code = lv_event_get_code(e);

    switch(code) {

        default:
            break;
    }
}

void gg_event_init_layer_top(gg_ui_t * ui)
{
    lv_obj_add_event_cb(ui-&amp;gt;layer_top.lv_layer_top(), lv_layer_top()_event_handler, LV_EVENT_ALL, ui);
    lv_obj_add_event_cb(ui-&amp;gt;layer_top.Keypad_btnEnable, Keypad_btnEnable_event_handler, LV_EVENT_ALL, ui);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Removing the parenthesis the syntax error is about the member lv_layer_top not existing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// In custom.h
typedef struct {

    lv_obj_t * Keypad;
    lv_obj_t * Keypad_btnEnable;
} gg_layer_top_t;&lt;/LI-CODE&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Poldo&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jul 2026 10:24:51 GMT</pubDate>
    <dc:creator>poldo</dc:creator>
    <dc:date>2026-07-14T10:24:51Z</dc:date>
    <item>
      <title>Version 2 issues: C code generation, preview</title>
      <link>https://community.nxp.com/t5/GUI-Guider/Version-2-issues-C-code-generation-preview/m-p/2393831#M1862</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I started testing GUI Guider version 2, and I found a couple of issues (starting with an empty template, Windows simulator).&lt;/P&gt;&lt;P&gt;I started defining the content of the top layer putting an image button, creating an event handler to switch state when the button is long pressed.&lt;/P&gt;&lt;P&gt;The generated the code has some errors, like:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;gg_event_layer_top.c:&lt;BR /&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp; static void lv_layer_top()_event_handler(lv_event_t * e) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ...&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;void&lt;/SPAN&gt;&lt;SPAN&gt; gg_event_init_layer_top&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;gg_ui_t &lt;/SPAN&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt; ui&lt;/SPAN&gt;&lt;SPAN&gt;&lt;LI-EMOJI id="lia_disappointed-face" title=":disappointed_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; lv_obj_add_event_cb(ui-&amp;gt;layer_top.lv_layer_top(),&amp;nbsp; lv_layer_top()_event_handler, LV_EVENT_ALL, ui);&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(parenthesis create a parsing error)&lt;/P&gt;&lt;P&gt;Manually removing the&amp;nbsp;parenthesis, the error below is generated:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;.../generated/events/gg_event_layer_top.c:59:38: error: 'gg_layer_top_t' has no member named 'lv_layer_top'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;(gg_layer_top_t definition doesn't include that member)&lt;/P&gt;&lt;P&gt;Am I missing some definition to make a correct generation of those functions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2026 15:40:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/GUI-Guider/Version-2-issues-C-code-generation-preview/m-p/2393831#M1862</guid>
      <dc:creator>poldo</dc:creator>
      <dc:date>2026-07-10T15:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Version 2 issues: C code generation, preview</title>
      <link>https://community.nxp.com/t5/GUI-Guider/Version-2-issues-C-code-generation-preview/m-p/2394166#M1865</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/259294"&gt;@poldo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May i ask how can i reproduce this issue?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Harry_Zhang_0-1783917409079.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/392057i73C2A06D3F68C4FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harry_Zhang_0-1783917409079.png" alt="Harry_Zhang_0-1783917409079.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2026 04:36:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/GUI-Guider/Version-2-issues-C-code-generation-preview/m-p/2394166#M1865</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2026-07-13T04:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Version 2 issues: C code generation, preview</title>
      <link>https://community.nxp.com/t5/GUI-Guider/Version-2-issues-C-code-generation-preview/m-p/2394874#M1867</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229957"&gt;@Harry_Zhang&lt;/a&gt;&amp;nbsp;, thank you for your reply.&lt;/P&gt;&lt;P&gt;This is what I did:&lt;/P&gt;&lt;P&gt;- On layer_top (clickable flag added, is this necessary?) I created a container for my buttons (no&amp;nbsp;clickable flag added)&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;- Inside the container I created an image button&amp;nbsp;(clickable flag added)&amp;nbsp;&lt;BR /&gt;- I attached the event "Long Pressed" to the button&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="poldo_0-1784023768341.png" style="width: 885px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/392226iBFF783192D285B94/image-dimensions/885x521?v=v2" width="885" height="521" role="button" title="poldo_0-1784023768341.png" alt="poldo_0-1784023768341.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Generated code contains the syntax errors above.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// In gg_event_layer_top.c
static void lv_layer_top()_event_handler(lv_event_t * e)
{
    gg_ui_t * ui = lv_event_get_user_data(e);

    lv_event_code_t code = lv_event_get_code(e);

    switch(code) {

        default:
            break;
    }
}

void gg_event_init_layer_top(gg_ui_t * ui)
{
    lv_obj_add_event_cb(ui-&amp;gt;layer_top.lv_layer_top(), lv_layer_top()_event_handler, LV_EVENT_ALL, ui);
    lv_obj_add_event_cb(ui-&amp;gt;layer_top.Keypad_btnEnable, Keypad_btnEnable_event_handler, LV_EVENT_ALL, ui);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Removing the parenthesis the syntax error is about the member lv_layer_top not existing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// In custom.h
typedef struct {

    lv_obj_t * Keypad;
    lv_obj_t * Keypad_btnEnable;
} gg_layer_top_t;&lt;/LI-CODE&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Poldo&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2026 10:24:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/GUI-Guider/Version-2-issues-C-code-generation-preview/m-p/2394874#M1867</guid>
      <dc:creator>poldo</dc:creator>
      <dc:date>2026-07-14T10:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Version 2 issues: C code generation, preview</title>
      <link>https://community.nxp.com/t5/GUI-Guider/Version-2-issues-C-code-generation-preview/m-p/2395249#M1869</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/259294"&gt;@poldo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to reproduce this issue.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Harry_Zhang_0-1784102463813.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/392338i96865926C7C6EACF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harry_Zhang_0-1784102463813.png" alt="Harry_Zhang_0-1784102463813.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The generated code is correct.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Harry_Zhang_1-1784102495298.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/392339i84E70EF53A84FFC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harry_Zhang_1-1784102495298.png" alt="Harry_Zhang_1-1784102495298.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;May I ask what I missed?&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2026 08:02:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/GUI-Guider/Version-2-issues-C-code-generation-preview/m-p/2395249#M1869</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2026-07-15T08:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Version 2 issues: C code generation, preview</title>
      <link>https://community.nxp.com/t5/GUI-Guider/Version-2-issues-C-code-generation-preview/m-p/2397751#M1874</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229957"&gt;@Harry_Zhang&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is when you create objects on the top layr. I'm attaching my file for your review and test.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2026 10:36:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/GUI-Guider/Version-2-issues-C-code-generation-preview/m-p/2397751#M1874</guid>
      <dc:creator>poldo</dc:creator>
      <dc:date>2026-07-22T10:36:31Z</dc:date>
    </item>
  </channel>
</rss>

