A part of the UI is cut

Description:

The right part or bottom part of the UI is cut. This can happen in the Composer, Prototyper, PC-simulation and on the target platform.

 

Solution:

If some parts of the UI are cut in the composer/Prototyper, the reason is a too small ‘ScreenSize’ in the selected profile. Go to the ‘Profile’ brick and change the attribute ‘ScreenSize’ to the available resolution on the target platform. If the size of your application class (derived from Core::Root) or any panel/menu is bigger than the screen size, the parts out of the screen size will be cut at the right- or bottom edge of the available size.

The Prototyper and composer are using the attribute ‘ScreenSize’ for the creation of the graphics buffer that will be transferred to the physical display memory. Furthermore the defined screen size in the Profile will cause a constant definition called ‘EwScreenSize’ in the generated code of the module ‘Core.c’. It is recommended to use this constant for the graphics initialization in the C-code e.g.:

GenInitDisplay( &disp, EwScreenSize.X, EwScreenSize.Y, GEN_COLOR_RGBA8888 );

 

See also:

 

Keywords:

ScreenSize, EwScreenSize, Profile, Core::Root, Application class, Cut

 

Last update on 2010-08-19 by Mario Stefanutti.

Go back