diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2003-11-04 13:17:29 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2003-11-04 13:17:29 +0000 |
commit | 1e781eab6c7177df33e016d01dbd78ae25b36e2f (patch) | |
tree | 9a230531ebb5e79f09d8ab82909f30b060c6fb13 /apps/recorder/keyboard.c | |
parent | 6afd0a7a083fa470c62cc2189f30ae4c63c534f7 (diff) | |
download | rockbox-1e781eab6c7177df33e016d01dbd78ae25b36e2f.tar.gz rockbox-1e781eab6c7177df33e016d01dbd78ae25b36e2f.zip |
Generic F-key buttonbar functionality
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4013 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/keyboard.c')
-rw-r--r-- | apps/recorder/keyboard.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c index 9edf24694d..95b2cb3386 100644 --- a/apps/recorder/keyboard.c +++ b/apps/recorder/keyboard.c @@ -55,7 +55,7 @@ static void kbd_setupkeys(char* line[KEYBOARD_LINES], int page) break; } } - +#if 0 static void kbd_draw_statusbar_button(int num, char* caption, int y, int fw) { int x, x2, tw, cx; @@ -67,7 +67,7 @@ static void kbd_draw_statusbar_button(int num, char* caption, int y, int fw) lcd_putsxy((x + (cx/2)) - (tw/2), y, caption); lcd_invertrect(x, y - 1, (x2-x)-1, LCD_HEIGHT-y+1); } - +#endif int kbd_input(char* text, int buflen) { bool done = false; @@ -168,10 +168,9 @@ int kbd_input(char* text, int buflen) lcd_drawline(curpos, main_y, curpos, main_y + font_h); /* draw the status bar */ - kbd_draw_statusbar_button(0, "Shift", status_y1, font_w); - kbd_draw_statusbar_button(1, "OK", status_y1, font_w); - kbd_draw_statusbar_button(2, "Del", status_y1, font_w); - + set_buttonbar("Shift", "OK", "Del"); + draw_buttonbar(); + /* highlight the key that has focus */ lcd_invertrect(font_w * x, font_h * y, font_w, font_h); lcd_update(); |