248 views
in GUI Development by
Hi Paul,

I have two Queries noted below

I am navigating the component from Root GUI component to another component using PresentDialog method.

1. I just want to confirm is it good approach to do the same or any advice on the same.

2. Change the bound at runtime :

  condition : Root component is already present , after some request from device side GUI component2 is represented with full screen size. But if in any case GUI component1 is shown then GUI component2 size should be reduced.  

What I tried : GUI component2 in updateView state , on slot method "this.Bounds = <480,40,800,440>;"

But when GUI component1 is present when try to change the bound of component2 by creating new instance it does not work? .

2 Answers

0 votes
by
For Second Question : I got the solution

I have created the property as Rectange in device class and set the property in GUI component1 and using notify observer it navigate to GUI component2 and will update the bounds with respect to the property.
0 votes
by

Hello Pidea,

I am navigating the component from Root GUI component to another component using PresentDialog method.
1. I just want to confirm is it good approach to do the same or any advice on the same.

What do you mean with 'navigating the component from Root GUI component to another component'? Do you want to change the owner of some existing component?

Generally, Root Component is always available. It is the root of the GUI application. You can present a component A within Root Component and then e.g. switch from this component A to component B. If the component A is not presented anymore in Root Component is can be presented in context of another component. Does it answer your question?

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

...