2020-12-24:

修正了文本输入框演示代码中文字焦点改变后无法及时刷新的问题。
This commit is contained in:
Polarix 2020-12-24 22:21:24 +08:00
parent 8eb9a82de9
commit 227e439a5a

View File

@ -239,6 +239,7 @@ HMI_ENGINE_RESULT HMI_DemoVariableBox_ProcessEvent(SGUI_SCR_DEV* pstDeviceIF, co
if(1 == s_uiFocusedFlag)
{
SGUI_TextVariableBox_DecreaseIndex(&s_stTextVariableBox);
SGUI_TextVariableBox_Repaint(pstDeviceIF, &s_stTextVariableBox, SGUI_DRAW_REVERSE);
}
break;
}
@ -261,6 +262,7 @@ HMI_ENGINE_RESULT HMI_DemoVariableBox_ProcessEvent(SGUI_SCR_DEV* pstDeviceIF, co
if(1 == s_uiFocusedFlag)
{
SGUI_TextVariableBox_IncreaseIndex(&s_stTextVariableBox);
SGUI_TextVariableBox_Repaint(pstDeviceIF, &s_stTextVariableBox, SGUI_DRAW_REVERSE);
}
break;
}