diff --git a/widgets/src/slide_group.cpp b/widgets/src/slide_group.cpp index 399f327..5c1385b 100644 --- a/widgets/src/slide_group.cpp +++ b/widgets/src/slide_group.cpp @@ -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; +} diff --git a/widgets/widgets_include/slide_group.h b/widgets/widgets_include/slide_group.h index db72131..9d47a4f 100644 --- a/widgets/widgets_include/slide_group.h +++ b/widgets/widgets_include/slide_group.h @@ -17,6 +17,8 @@ public: short width, short height, WND_TREE* p_child_tree = NULL, Z_ORDER_LEVEL max_zorder = Z_ORDER_LEVEL_0); 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: virtual c_wnd* clone(){return new c_slide_group();} c_wnd* m_slides[MAX_PAGES];