agenda/PRUEBA_B.CPP
2021-09-03 17:09:36 +02:00

50 lines
1.2 KiB
C++
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include <conio.h> // Para getch();
#include <graphics.h> // Para outtextxy(...); y cleardevice(...);
#include "..\libs\make_bot\make_bot.h" // Fuciones de MAKE_BOTON
int main(void){
Initialize( 9, 2 ); // Inicializa el Modo Gr fico
carga_botones("Agenda.img"); // Carga botones del fichero "botones.p1"
Imprime_Estaticos( 1, "Agenda.img"); // Imprime botones estaticos 'Seccion 1'
Imprime_Secuencia(1); // Imprime secuencia 1.
Imprime_Estaticos(11, "Agenda.img"); // Imprime Textos ( 1 ), secuencia 1
/*
while(1){ // Bucle infinito
switch( Comprueba_Secuencia( 1 ) ) { // Iniciamos comprobacion
case 0: // No se pulso ningun BOTON
while( kbhit() ) getch(); // Limpiamos posibles teclas en BUFFER
break;
case -1: // Hay una tecla especial en BUFFER
getch(); // La eliminamos
break;
case 1:
Ayuda();
cleardevice();
Imprime_Estaticos( 1, "botones.p1"); // Devolvemos el aspecto inicial
Imprime_Secuencia(1);
break;
case 2:
restorecrtmode();
return 0;
default:
break;
}
}
*/
getch();
restorecrtmode();
return 0;
}