mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 17:18:24 +00:00
update menu control and add notebook control.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1220 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -306,7 +306,9 @@ rt_bool_t rtgui_win_is_activated(struct rtgui_win* win)
|
||||
{
|
||||
RT_ASSERT(win != RT_NULL);
|
||||
|
||||
return win->style & RTGUI_WIN_STYLE_ACTIVATE;
|
||||
if (win->style & RTGUI_WIN_STYLE_ACTIVATE) return RT_TRUE;
|
||||
|
||||
return RT_FALSE;
|
||||
}
|
||||
|
||||
void rtgui_win_move(struct rtgui_win* win, int x, int y)
|
||||
@@ -413,7 +415,8 @@ rt_bool_t rtgui_win_event_handler(struct rtgui_widget* widget, struct rtgui_even
|
||||
case RTGUI_EVENT_WIN_ACTIVATE:
|
||||
if (RTGUI_WIDGET_IS_HIDE(RTGUI_WIDGET(win)))
|
||||
{
|
||||
rt_kprintf("activate window, but window is hide!\n");
|
||||
/* activate a hide window */
|
||||
return RT_TRUE;
|
||||
}
|
||||
|
||||
win->style |= RTGUI_WIN_STYLE_ACTIVATE;
|
||||
|
||||
Reference in New Issue
Block a user