[RESOLVED] i.MX RT1170 Front Panel too large for my screen resolution

Hello,

I’m testing the latest Virtual Device for i.MXRT1170 released here: GREEN Kernel 2.0.0

But the Front Panel is too large for my screen, even when hiding the taskbar

My screen resolution is 1920x1080.

Do you have any hint for resizing the window ?

Thanks,

Lucas

Hello Lucas,

In order to scale down this window you will have to resize your frontpanel:

  • Go to your VEE Port’s *.fp file (for the i.MXRT1170 VEE Port it is located here).
  • Update the frontpanel’s skin to the size you want for your window.
  • Update the widgets positions and sizes according to the new frontpanel’s size.
  • Add the displayWidth=720 and displayHeight=1280 attributes to your display widget so the simulated display size is still correct.

Regards,
Alexis

Or you can try adjusting the scaling of the window by following this documentation:

https://docs.microej.com/en/latest/ApplicationDeveloperGuide/UI/Simulation/front-panel-tips.html#pixel-accurate-display-window-scaling

Have a nice day!
Gaëtan

Hi,

@alexis.pineau I understand that it requires to rebuild the VEE Port and then the Virtual Device. Also, by any chance do you have such modified files for i.MXRT1170 ?

@gaetan.harel I check my system settings : the scale is already set to 100% so I cannot reduce it more.

thanks

Lucas

Hello @lfleuve,

Here is the content of the nxpvee-mimxrt1170-evk/microej/front-panel/src/main/resources/MIMXRT1170-fp.fp file you can replace in your VEE Port to downscale the frontpanel:

<?xml version="1.0"?>
<frontpanel
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="http://xml.is2t.com/ns/1.0/frontpanel"
	xsi:schemaLocation="http://xml.is2t.com/ns/1.0/frontpanel .fp1.0.xsd">

	<device name="MIMXRT1170" skin="MIMXRT1170-fp_background.jpg">
		<ej.fp.widget.Display x="0" y="0" width="540" height="960" displayWidth="720" displayHeight="1280" refreshStrategyClass="ej.fp.widget.display.brs.PredrawRefreshStrategy" bufferPolicyClass="ej.fp.widget.display.buffer.SwapTripleBufferPolicy"/>
		<ej.fp.widget.Pointer x="0" y="0" width="540" height="960" touch="true"/>
	</device>
</frontpanel>

You will also have to replace the frontpanel skin image nxpvee-mimxrt1170-evk/microej/front-panel/src/main/resources/MIMXRT1170-fp_background.jpg, you can use this one:

If you want to update an existing Virtual Device with this new frontpanel, you will have to rebuild your VEE Port module and replace the Virtual Device’s mocks/frontpanel/extension.jar file by the one generated in nxpvee-mimxrt1170-evk/microej/MIMXRT1170-evk_platform-CM7hardfp_GCC48-2.2.0/source/mocks/frontpanel/extension.jar.

Regards,
Alexis

I managed to inject directly both files in the Virtual Device.

Now it fits on my screen, here is the rendering :

Please also find attached my modified mocks/frontpanel/extension.jar file.

extension.jar (2.3 KB)

Thanks @alexis.pineau,

Lucas