83 views
in GUI Development by
Hello,

Then i have got a class with a property of the type Unit-Class. This Unit-class contains String, Factor, Offset. I want to set this property with defined objects of the Unit-Class and with variables. Setting the property with a variable causes in attaching the observer to the value of the variable, but not the variable itself.

When I want to attach to the variable, i have to use the reference expression, but I think it is not possible here, because i also want to set objects.

Is it possible to handle both inputs - variables and objects?

Kind regards Jonas

1 Answer

0 votes
by
Hello Jonas,

I'm sorry, but I do not really understand your question. If you intent to use one and the same variable to store an object and a reference to a property, then this is not possible. A variable can store only values according to the type of the variable. Consequently, a variable intended to store a reference to a property can't store an object. The same in reverse: a variable declared to store an object can't store a reference to property.

Best regards

Paul Banach
by
Yes, i had already thought that. Therefore i created two properties - one for the variable and one for the object. I hoped there would be a smarter solution. Thanks anyway

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...