GUI (D4D) touch a button

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

GUI (D4D) touch a button

Jump to solution
1,041 Views
Thommi_Tulpe
Contributor IV

Hello,

in the_Official_Demos Project I have to

first select a butten before it has an effect to touch the button.

So I have to touch every button twice. This is not good for a virtual keyboard

on the TWR-LCD.

What do I have to do that I must not first select the button?

 

Thanks

 

0 Kudos
1 Solution
809 Views
LuisCasado
NXP Employee
NXP Employee

Hello Thommi,

 

In d4d_user_cfg.h

 

In the

/******************************************************************************
* Button Object
******************************************************************************/

section, define your button:

 

#define D4D_BTN_F_DEFAULT  (D4D_OBJECT_F_VISIBLE | D4D_OBJECT_F_ENABLED | D4D_OBJECT_F_TABSTOP | D4D_OBJECT_F_TOUCHENABLE | D4D_OBJECT_F_FOCUSRECT | D4D_OBJECT_F_FASTTOUCH)

 Notice the last flag: D4D_OBJECT_F_FASTTOUCH

 

 

Best Regards,

View solution in original post

0 Kudos
2 Replies
810 Views
LuisCasado
NXP Employee
NXP Employee

Hello Thommi,

 

In d4d_user_cfg.h

 

In the

/******************************************************************************
* Button Object
******************************************************************************/

section, define your button:

 

#define D4D_BTN_F_DEFAULT  (D4D_OBJECT_F_VISIBLE | D4D_OBJECT_F_ENABLED | D4D_OBJECT_F_TABSTOP | D4D_OBJECT_F_TOUCHENABLE | D4D_OBJECT_F_FOCUSRECT | D4D_OBJECT_F_FASTTOUCH)

 Notice the last flag: D4D_OBJECT_F_FASTTOUCH

 

 

Best Regards,

0 Kudos
809 Views
Thommi_Tulpe
Contributor IV

Thank You Luis, it works well.

 

Have a nice day.

 

Thomas

0 Kudos