mirror of
https://gitee.com/idea4good/GuiLite.git
synced 2025-06-07 23:57:20 +08:00
fix issue: all slide page would response user touch action
This commit is contained in:
parent
433a31ecee
commit
7fbb81bcfc
@ -152,3 +152,21 @@ void c_slide_group::disabel_all_slide()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool c_slide_group::on_touch(int x, int y, TOUCH_ACTION action)
|
||||||
|
{
|
||||||
|
if (m_slides[m_active_slide_index])
|
||||||
|
{
|
||||||
|
m_slides[m_active_slide_index]->on_touch(x, y, action);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool c_slide_group::on_key(KEY_TYPE key)
|
||||||
|
{
|
||||||
|
if (m_slides[m_active_slide_index])
|
||||||
|
{
|
||||||
|
m_slides[m_active_slide_index]->on_key(key);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
@ -17,6 +17,8 @@ public:
|
|||||||
short width, short height, WND_TREE* p_child_tree = NULL,
|
short width, short height, WND_TREE* p_child_tree = NULL,
|
||||||
Z_ORDER_LEVEL max_zorder = Z_ORDER_LEVEL_0);
|
Z_ORDER_LEVEL max_zorder = Z_ORDER_LEVEL_0);
|
||||||
void disabel_all_slide();
|
void disabel_all_slide();
|
||||||
|
virtual bool c_slide_group::on_touch(int x, int y, TOUCH_ACTION action);
|
||||||
|
virtual bool on_key(KEY_TYPE key);
|
||||||
protected:
|
protected:
|
||||||
virtual c_wnd* clone(){return new c_slide_group();}
|
virtual c_wnd* clone(){return new c_slide_group();}
|
||||||
c_wnd* m_slides[MAX_PAGES];
|
c_wnd* m_slides[MAX_PAGES];
|
||||||
|
Loading…
Reference in New Issue
Block a user