First commit d
This commit is contained in:
49
PRUEBA_B.CPP
Normal file
49
PRUEBA_B.CPP
Normal file
@ -0,0 +1,49 @@
|
||||
#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<47>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;
|
||||
|
||||
}
|
Reference in New Issue
Block a user