I can not see the new style on the target

Description:

Widget based objects like Menus, Panels, Item, PushButton etc. working well in the prototyper and composer, but on the target they are not visible.

 

Solution:

The reason for that behavior is the missing setting of the style. The Prototyper/Composer uses the styles setting of the EmWi toolbar but on the target the style needs to be set separately. This can be done on EmWi side e.g. in the Init() method of your Application class:

 

Styles = [MyStyle];

Or on ‘C’-side by a function call before the the EmWi update loop:

 

EwSetStyles(AquaStyle);

 

See also:

1. Chora User Manual chapter ‘Binary instant operators’.

2. You can see this call in the Widgets example in the EmWi folder "Embedded Wizard\Example\Widgets\" in module "main.c".

 

Keywords:

 Styles, Variants, EwSetstyles, Target 

 

 

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

Go back