1.1k views
in GUI Development by
A lot of instances of customized class need to be created and accessed as global. How to implement it?

If  using autoobject, the value of member properties at the custmized class can't be initialized by the EWS.

3 Answers

0 votes
by
 
Best answer
An instance of class in a autoobject of other class can't be initialze by EWS. Add it to global.
by

Typically, autoobjects represent the data model of your application or serve as interfaces to the underlying target device.

0 votes
by

You can create an instance of a class dynamically during runtime by using the new operator. If the class is a visible component (derived from Core::View) and you want to make it visible on the screen, you need to Add() it.

0 votes
by

May be, what you are looking for are the Embedded Objects. Within one class you can nest instances of other classes.

by
Yes, you are right. EWS can only set the value to the embeded objects directly. I have to add lots of instance globally.

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...