summaryrefslogtreecommitdiff
path: root/components/rtgui/server/panel.c
diff options
context:
space:
mode:
author[email protected] <[email protected]>2010-07-04 23:58:35 +0000
committer[email protected] <[email protected]>2010-07-04 23:58:35 +0000
commitb25f307b9b94918da883ba083ea4b1c33807719d (patch)
treef32c8323a8a62736c00d0019e7f63307e8b6727c /components/rtgui/server/panel.c
parente76cd77c561149c3aa259715571d68729672cae6 (diff)
implement hardware DC in each widget.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@787 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/rtgui/server/panel.c')
-rw-r--r--components/rtgui/server/panel.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/components/rtgui/server/panel.c b/components/rtgui/server/panel.c
index 0d767a3f3d..a7689007d2 100644
--- a/components/rtgui/server/panel.c
+++ b/components/rtgui/server/panel.c
@@ -54,6 +54,7 @@ void rtgui_panel_register(char* name, rtgui_rect_t* extent)
panel->extent = *extent;
panel->wm_thread = RT_NULL;
+ panel->is_focusable = RT_TRUE;
/* init list */
rtgui_list_init(&(panel->sibling));
@@ -90,6 +91,18 @@ void rtgui_panel_set_default_focused(char* name)
}
}
+void rtgui_panel_set_nofocused(char* name)
+{
+ extern struct rtgui_panel* rtgui_server_focus_panel;
+ struct rtgui_panel* panel;
+
+ panel = rtgui_panel_find(name);
+ if (panel != RT_NULL)
+ {
+ panel->is_focusable = RT_FALSE;
+ }
+}
+
struct rtgui_panel* rtgui_panel_find(char* name)
{
struct rtgui_list_node* node;
@@ -304,3 +317,4 @@ void rtgui_panel_set_wm(rtgui_panel_t* panel, rt_thread_t wm)
panel->wm_thread = wm;
}
+