First commit 09/04/1995
This commit is contained in:
55
CD_IN/CD_CFG.CPP
Normal file
55
CD_IN/CD_CFG.CPP
Normal file
@ -0,0 +1,55 @@
|
||||
#include <dos.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <conio.h> // Para getch();
|
||||
#include <graphics.h> // Para outtextxy(...); y cleardevice(...);
|
||||
#include "..\..\..\jd_lib\make_bot.h" // Fuciones de MAKE_BOTON
|
||||
#include "cd_icons.h"
|
||||
|
||||
#define DOS 1
|
||||
#define WINDOWS 2
|
||||
|
||||
|
||||
void Init_CFG(void);
|
||||
|
||||
void Init_CFG(void){
|
||||
int ok = 0;
|
||||
|
||||
setfillstyle(SOLID_FILL, 240);
|
||||
bar(395, 140, 625, 410);
|
||||
|
||||
Imprime_Estaticos( 4, "cd_out.img"); // Imprime botones estaticos 'Seccion 4'
|
||||
Imprime_Secuencia(2); // Imprime secuencia 1.
|
||||
Imprime_Estaticos( 5, "cd_out.img"); // Imprime textos estaticos 'Seccion 5'
|
||||
|
||||
while(!ok){ // Bucle infinito
|
||||
|
||||
switch( Comprueba_Secuencia( 2 ) ) { // Iniciamos comprobacion de 2<> sec
|
||||
|
||||
case 0: // No se pulso ningun BOTON
|
||||
// Pero el raton fue presionado en
|
||||
// algun sitio...
|
||||
break;
|
||||
case -2: // Hay una tecla normal en BUFFER
|
||||
getch(); // La eliminamos
|
||||
break;
|
||||
case -1: // Hay una tecla especial en BUFFER
|
||||
getch(); // La eliminamos
|
||||
break;
|
||||
// Boton Cancelar
|
||||
case 1:
|
||||
ok = 1;
|
||||
break;
|
||||
default:
|
||||
while( kbhit() ) getch(); // Limpiamos posibles teclas en BUFFER
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
setfillstyle(SOLID_FILL, 240);
|
||||
bar(395, 140, 625, 410);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user