<?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>MQX Software SolutionsのトピックRe: eGUI EditBox cursor</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/eGUI-EditBox-cursor/m-p/425546#M14228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sean, I found the problem and solution - you have to enable the object to receive time ticks.&amp;nbsp; Here's a code snip:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static void ScrSave_OnActivate()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; D4D_EnableTimeTicks(&amp;amp;edit_box, D4D_TRUE);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Jun 2015 13:39:58 GMT</pubDate>
    <dc:creator>GeneGoff</dc:creator>
    <dc:date>2015-06-06T13:39:58Z</dc:date>
    <item>
      <title>eGUI EditBox cursor</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/eGUI-EditBox-cursor/m-p/425541#M14223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using the eGUI 3.0 EditBox widget and everything works fine except I can't get the cursor to blink or even show anything.&amp;nbsp; I was able to force it on always anytime a character is written to the edit box by modifying some of the d4d_edit_box.c source code, but this is just a test.&amp;nbsp; How do I get the cursor to show normally and blink?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 03:25:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/eGUI-EditBox-cursor/m-p/425541#M14223</guid>
      <dc:creator>GeneGoff</dc:creator>
      <dc:date>2015-06-04T03:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI EditBox cursor</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/eGUI-EditBox-cursor/m-p/425542#M14224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to call D4D_TimeTickPut() periodically. I think the recommendation is every 25ms. I have a loop in my code that calls D4D_Poll() followed by D4D_TimeTickPut() and I'm able to get my cursor to blink. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 14:13:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/eGUI-EditBox-cursor/m-p/425542#M14224</guid>
      <dc:creator>seandema</dc:creator>
      <dc:date>2015-06-04T14:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI EditBox cursor</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/eGUI-EditBox-cursor/m-p/425543#M14225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gene,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D4D_CNSL_CURSOR_BLINK_TICK_COUNTER is the constant to define the blink period, 0 is no cursor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the below thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/95432"&gt;D4D_CONSOLE save text&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt; Sol &lt;BR /&gt; &lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 20:00:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/eGUI-EditBox-cursor/m-p/425543#M14225</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2015-06-04T20:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI EditBox cursor</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/eGUI-EditBox-cursor/m-p/425544#M14226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, D4D_TimeTickPut() is being called by a 25ms timer but still no cursor.&amp;nbsp; Looking through the d4d_edit_box.c code, it appears that D4D_EditBoxTimeTick() needs to be called which toggles the cursor state, but nothing is calling this and it's a local function in d4d_edit_box.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, the only function capable of drawing, or erasing the cursor is D4D_EditBoxOnDraw(), and setting a break point on this reveals that it never executes, until you enter the next editbox character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ensured that D4D_CURSOR_BLINK_TICK_COUNTER is not 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Sean!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 02:58:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/eGUI-EditBox-cursor/m-p/425544#M14226</guid>
      <dc:creator>GeneGoff</dc:creator>
      <dc:date>2015-06-05T02:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI EditBox cursor</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/eGUI-EditBox-cursor/m-p/425545#M14227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;I think I'm seeing something similar on the latest screen I've been working on. I have was trying to automatically capture the keys and get a cursor on a certain edit boxe when loading the screen but it wasn't always showing me the cursor either. Even though D4D_GetCapturedObject() would return the desired edit box and I could manipulate the contents and select characters as though the cursor were visible. This seemed to be a problem mostly the first time I loaded the screen after a reboot. Anyway I've not figured out the real cause but a work around that fixed it for me was to call D4D_Poll() after setting the focus but before calling D4D_CaptureKeys().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14335201607046408 jive_text_macro" data-renderedposition="113_8_1232_48" jivemacro_uid="_14335201607046408" modifiedtitle="true"&gt;&lt;P&gt;D4D_FocusSet(D4D_GetActiveScreen(), &amp;amp;edit_box);&lt;/P&gt;&lt;P&gt;D4D_Poll();&lt;/P&gt;&lt;P&gt;D4D_CaptureKeys(&amp;amp;edit_box);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doesn't really fix any possible bugs that might be out there but maybe it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have not had the problem with no cursor when I just let the user set the focus to my edit box using arrow keys(D4D_KEY_SCANCODE_UP, D4D_KEY_SCANCODE_DOWN) and then selecting the edit box with D4D_KEY_SCANCODE_ENTER. I'm just doing all that with calls like D4D_NewKeyEvent(D4D_KEY_SCANCODE_ENTER) and letting eGUI move the focus and select/capture keys on the edit box.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope some of that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 16:09:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/eGUI-EditBox-cursor/m-p/425545#M14227</guid>
      <dc:creator>seandema</dc:creator>
      <dc:date>2015-06-05T16:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI EditBox cursor</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/eGUI-EditBox-cursor/m-p/425546#M14228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sean, I found the problem and solution - you have to enable the object to receive time ticks.&amp;nbsp; Here's a code snip:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static void ScrSave_OnActivate()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; D4D_EnableTimeTicks(&amp;amp;edit_box, D4D_TRUE);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2015 13:39:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/eGUI-EditBox-cursor/m-p/425546#M14228</guid>
      <dc:creator>GeneGoff</dc:creator>
      <dc:date>2015-06-06T13:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI EditBox cursor</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/eGUI-EditBox-cursor/m-p/425547#M14229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank! That helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's interesting that fixed it since it looks like edit boxes call &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;D4D_EnableTimeTicks under the D4D_MSG_SETCAPTURE case in their OnMessage() function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also discovered an issue in my code. I'd been making a lot of the FocusSet &amp;amp; CaptureKeys calls in my screens _OnObjectMsg() function and I was always returning 0. I realized that was part of my problem and returning a 1 in certain situations instead eliminated the need to call &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;D4D_EnableTimeTicks or D4D_Poll. Returning a 1 prevents the message from being passed on to the object since the screen gets the message first. I think letting the edit box handle the message after I already called CaptureKeys was causing the edit boxes cursor flag bit to be flipped back to 0 when it needed to be 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 18:41:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/eGUI-EditBox-cursor/m-p/425547#M14229</guid>
      <dc:creator>seandema</dc:creator>
      <dc:date>2015-06-08T18:41:17Z</dc:date>
    </item>
  </channel>
</rss>

