mirror of
https://gitee.com/idea4good/GuiLite.git
synced 2026-04-01 21:43:23 +08:00
refactor wnd.cpp
This commit is contained in:
@@ -40,7 +40,7 @@ bool c_button::on_touch(int x, int y, TOUCH_ACTION action)
|
||||
{
|
||||
m_status = STATUS_FOCUSED;
|
||||
on_paint();
|
||||
notify_parent(GL_BN_CLICKED, get_id(), 0);
|
||||
notify_parent(GL_BN_CLICKED, 0);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -49,7 +49,7 @@ bool c_button::on_key(KEY_TYPE key)
|
||||
{
|
||||
if (key == KEY_ENTER)
|
||||
{
|
||||
notify_parent(GL_BN_CLICKED, get_id(), 0);
|
||||
notify_parent(GL_BN_CLICKED, 0);
|
||||
return false;// Do not handle KEY_ENTER by other wnd.
|
||||
}
|
||||
return true;// Handle KEY_FOWARD/KEY_BACKWARD by parent wnd.
|
||||
|
||||
Reference in New Issue
Block a user