192 views
in GUI Development by

Hello,

how can I display a uint16 variable/property (or other different from int32) using ValueDisplay widget?

I tried to link the varibale/property to widget outlet, but it only accept int32 values. I tried to see in the widget config if it is possible to change data type, but didn't find a solution. Do I need a "support" int32 varible or can I do some cast to unit16 directly on Outlet field?

If I try to "force" the Outlet field with a uint16 variable, I got this error:

1 Answer

0 votes
by
 
Best answer
Hello,

the simplest approach is to use int32 properties. Therefore I would recommend to adapt your project so that the relevant properties have int32 type. With uint16 property you save only 2 bytes of memory.

Best regards

Paul Banach

Embedded Wizard Website | Privacy Policy | Imprint

...