GUI (D4D) touch a button

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

GUI (D4D) touch a button

跳至解决方案
1,643 次查看
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 项奖励
回复
1 解答
1,411 次查看
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 项奖励
回复
2 回复数
1,412 次查看
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 项奖励
回复
1,411 次查看
Thommi_Tulpe
Contributor IV

Thank You Luis, it works well.

 

Have a nice day.

 

Thomas

0 项奖励
回复