352 views
in GUI Development by

The right part and the bottom part of the user interface is cut. This happens in Composer and Prototyper, within a Win32 executable and on the target platform.

1 Answer

0 votes
by

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 / bottom edge of the available size.

The Prototyper and the 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.:

  /* initialize the application object */
  CoreRoot__Initialize( rootObject, EwScreenSize );
  /* create Embedded Wizard viewport object */
  viewport = EwInitViewport( EwScreenSize, EwNewRect( 0, 0, w, h ), ... );

Embedded Wizard Website | Privacy Policy | Imprint

...