add scrollbar widget.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@832 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong
2010-08-05 10:00:09 +00:00
parent 0708dd8aa0
commit 8510a938dd
3 changed files with 602 additions and 8 deletions

View File

@@ -174,15 +174,12 @@ static void rtgui_textbox_onkey(struct rtgui_textbox* box, struct rtgui_event_kb
else if (box->position != 0)
{
/* remove current character */
if (box->position != 0)
{
char *c;
char *c;
/* remove character */
for (c = &box->text[box->position - 1]; c[1] != '\0'; c++)
*c = c[1];
*c = '\0';
}
/* remove character */
for (c = &box->text[box->position - 1]; c[1] != '\0'; c++)
*c = c[1];
*c = '\0';
box->position --;
}
}