87 views
in GUI Development by

Hi,

I'm having a problem with push button.

First of all, my project use multi dialog displaying. 

Following image is the base dialog which is named NormalBG.

You can see the push button placed in upper left side which appearance is home and arrow.

But when I dismiss, switch or present the new dialog, the base dialog's button doesn't work.

Following images are my code and dialog image I'm working on.

1. HandSaftyPopUp which is work like a pop up

2. ComfirmBtSlot code

3. Base dialog(NormalBG) and HandSaftyPopUp are both displaying

 

We can find out in image 3 that both dialog are displaying.

When you press confirm in image 3 than the next dialog will appear. But the home and arrow button in base dialog(NormalBG) stop operating.

I think the problem is in my confirm button slot code.

Could you guys help me sort this problem?

1 Answer

+1 vote
by
 
Best answer

Hello Sooyong Choi,

so far I have understood the application case, you have two dialogs NormalBG and HandSaftyPopup. First NormalBG is presented. Then HandSaftyPopup is presented. Both dialogs are presented in context of the application component (root object).

In such case, the dialogs overlap. When HandSaftyPopup is presented, this dialog becomes the active one. The user can now interact with this dialog. The preceding dialog NormalBG is suppressed from being able to react with the user.

What can you do?

When you present HandSaftyPopup in context of NormalBG, then both will continue handling user inputs. From technical point of view, the NormalBG dialog is the active one and inside it the HandSaftyPopup dialog is active. One dialog is nested inside the other. For example:

var Core::Group tarDialog = GetRoot().FindDialogByClass( Simulator::NormalBG );

if ( tarDialog )
  tarDialog.PresentDialog( new Simulator::MotorPostioningScreen, Effects::... );

See also the section Take a closer look at the Dialog functionality explaining special application cases similar to yours.

I hope it answers your question.

Best regards

Paul Banach

by
Hello Mr.Banach

I followed you guide. And it did work!!!

I was having a hard time trying to solve this problem.

Thanks for help!

Best regards,

Sooyong Choi

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

...