28 views
in GUI Development by
Hello Paul,

We are designing an application using EW11, as the title suggests we are trying to instance an array of Component type, initialize its elements by calling the new operator for each of them and then modifing each element properties to fit our UI, problem is that none of the initialized array elements is displayed. What could be a solution to this problem?

 

Best Regards

David

1 Answer

+1 vote
by

Hello David,

actually you created instances of the GUI components. To get the instances visible, you have to add them additionally to the view tree. See the section Compose the component programmatically. The method Add() makes the job.

A hint: depending on your application case you could eventually avoid the array and manage the instances directly as members of the view tree. The above mentioned chapter explains how you do this. The chapter Enumerate and search views existing within the component explains how the existing views can be accessed.

See also Understand the view tree and the Owner relationships.

I hope it helps you further.

Best regards

Paul Banach

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

...