From 1e781eab6c7177df33e016d01dbd78ae25b36e2f Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 4 Nov 2003 13:17:29 +0000 Subject: Generic F-key buttonbar functionality git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4013 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/keyboard.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'apps/recorder') 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(); -- cgit v1.2.3