eGUI

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

eGUI

947 Views
Etienne
Contributor I

hello

i'm doing an application from scratch on egui.

I have 3 icons and i would like to navigate sequentially on them with 3 buttons (LEFT, OK, RIGHT).

today, i'm able to catch button events (LEFT, OK, RIGHT) but impossible to change the focus to redirect event to the 2 others.

D4D_OBJECT_F_TABSTOP option is correctly set in the ICON declaration.

D4D_FocusSet(screen,object) seems to don't work

do you please have an example where you are succesfully navigating between objects ?

thank you.

best regards

Etienne

Tags (3)
2 Replies

581 Views
Ali_Pina
NXP Employee
NXP Employee

Hi Etienne,

I developed an example using the on-board switches in the TWR-K70, this project was developed in CW 10.3 and using MQX 4.0.

I based most of the example on the thread discussion:

https://community.freescale.com/message/93504#93504

SW1 is used to navigate between two text buttons and SW2 is used as the ENTER button.

Use the attached example as reference I am pretty sure you will find useful for you application.

Hope this helps.

-Alí

581 Views
elisamejia
Contributor III

Hello Ali,

I've been trying to do something similar. I need to change the focus state between 2 different buttons in order to change their colors according to some timer. However, whenever I call the D4D_FocusSet function or I use your code, the system goes to a halt and doesn't work.

I have all my buttons and schemes defined as INRAM but it isn´t working.

Can you help me with this?

Regards,

Elisa

0 Kudos