From: Ricardo Markiewicz Date: Sat, 10 Apr 2004 19:56:24 +0000 (+0000) Subject: * Poniendo linda a la cosa X-Git-Tag: svn_import_r684~575 X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/commitdiff_plain/466a2fa0b957384fc43b016b18a8ee2f1f271404?ds=sidebyside * Poniendo linda a la cosa --- diff --git a/emufs_gui/articulos.c b/emufs_gui/articulos.c index db32b74..537d051 100644 --- a/emufs_gui/articulos.c +++ b/emufs_gui/articulos.c @@ -81,6 +81,7 @@ t_LstArticulos *art_cargar(const char *filename) xmlCleanupParser(); } else { tmp->fp = emufs_abrir("articulos"); + /* TODO Cargar registros desde el archivo */ } lst_articulos = tmp; @@ -143,7 +144,7 @@ void art_modificar(char *s) t_Articulo *articulo; char num[8]; - win = newwin(8, 68, 13, 1); + win = newwin(8, COLS-2, 13, 1); box(win, 0, 0); wrefresh(win); @@ -164,8 +165,13 @@ void art_modificar(char *s) form_destruir(form); free(articulo); - } - + } else { + wattron(win, COLOR_PAIR(COLOR_YELLOW)); + mvwaddstr(win, 6, 4, "No existe artículo con ese código. Abortando!"); + wattroff(win, COLOR_PAIR(COLOR_YELLOW)); + wrefresh(win); + getch(); + } werase(win); wrefresh(win); delwin(win); @@ -176,7 +182,7 @@ void art_eliminar(char *s) WINDOW *win; t_Articulo *articulo; - win = newwin(8, 68, 13, 1); + win = newwin(8, COLS-2, 13, 1); box(win, 0, 0); wrefresh(win); @@ -203,7 +209,7 @@ void art_agregar(char *s) t_Form *form; t_Articulo art; - win = newwin(8, 68, 13, 1); + win = newwin(8, COLS-2, 13, 1); box(win, 0, 0); wrefresh(win);