<?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 eGUI - Screen orientation. in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Screen-orientation/m-p/614312#M36471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 15px;"&gt;If I set a screen orientation D4D_ORIENT_LANDSCAPE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 15px;"&gt;status = D4D_Init(&amp;amp;screen_splash);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 15px;"&gt;D4D_SetOrientation(D4D_ORIENT_LANDSCAPE);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&amp;nbsp;I see a full screen and all graphical objects on it. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 15px;"&gt;But if I set D4D_ORIENT_PORTRAIT&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 15px;"&gt;status = D4D_Init(&amp;amp;screen_splash);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 15px;"&gt;D4D_SetOrientation(D4D_ORIENT_PORTRAIT);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 15px;"&gt;I see a half of the screen and graphical objects displayed wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 15px;"&gt;What should I do to fix it?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Oct 2016 11:15:09 GMT</pubDate>
    <dc:creator>john71</dc:creator>
    <dc:date>2016-10-30T11:15:09Z</dc:date>
    <item>
      <title>eGUI - Screen orientation.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Screen-orientation/m-p/614312#M36471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 15px;"&gt;If I set a screen orientation D4D_ORIENT_LANDSCAPE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 15px;"&gt;status = D4D_Init(&amp;amp;screen_splash);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 15px;"&gt;D4D_SetOrientation(D4D_ORIENT_LANDSCAPE);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&amp;nbsp;I see a full screen and all graphical objects on it. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 15px;"&gt;But if I set D4D_ORIENT_PORTRAIT&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 15px;"&gt;status = D4D_Init(&amp;amp;screen_splash);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 15px;"&gt;D4D_SetOrientation(D4D_ORIENT_PORTRAIT);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 15px;"&gt;I see a half of the screen and graphical objects displayed wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 15px;"&gt;What should I do to fix it?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Oct 2016 11:15:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Screen-orientation/m-p/614312#M36471</guid>
      <dc:creator>john71</dc:creator>
      <dc:date>2016-10-30T11:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI - Screen orientation.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Screen-orientation/m-p/614313#M36472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Evgeny Erenburg,&lt;/P&gt;&lt;P&gt;Hope you are doing great.&lt;/P&gt;&lt;P&gt;This may be happening because you put the position values of the objects as absolute values instead of relative values.&lt;/P&gt;&lt;P&gt;if you &amp;nbsp;change this values to relative ones &amp;nbsp;the screen should always fit.the values you put in the objects put them out of the screen when you change it because the width of landscape is bigger than portrait. take as reference the width of your screen to position the objects. please send me &amp;nbsp;the &amp;nbsp;way you position your &amp;nbsp;objects (D4D_DECLARE_GROUP_BOX_BEGIN) to give you a better answer.&lt;/P&gt;&lt;P&gt;Have a great day.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 22:46:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Screen-orientation/m-p/614313#M36472</guid>
      <dc:creator>Jonathan_Iglesias</dc:creator>
      <dc:date>2016-10-31T22:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI - Screen orientation.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Screen-orientation/m-p/614314#M36473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;Thank you for the reply. I found the problem. It should be D4D_DECLARE_STD_PORTRAIT_SCREEN_BEGIN(screen_main, ScreenMain_) instead of D4D_DECLARE_STD_SCREEN_BEGIN(screen_main, ScreenMain_).&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 11:43:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-Screen-orientation/m-p/614314#M36473</guid>
      <dc:creator>john71</dc:creator>
      <dc:date>2016-11-01T11:43:40Z</dc:date>
    </item>
  </channel>
</rss>

