mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-23 19:09:27 +08:00
add scrollbar widget.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@832 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -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 --;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user