SV/SV_CFG.CPP
2021-09-08 21:43:28 +02:00

89 lines
2.2 KiB
C++
Raw Permalink Blame History

#include<graphics.h>
#include<dos.h>
#include<io.h>
#include<conio.h>
#include<stdio.h>
#include<ctype.h>
#include<alloc.h>
#include<stdlib.h>
#include "..\libs\make_bot\make_bot.h"
#define Letra_Boton setcolor(1);
#define Azul 1
#define Texto_Normal setcolor(63);
#define Texto_Negrita setcolor(0);
extern int x_raton, y_raton, raton;
extern int boton_izq, boton_der;
extern int InputCadenaG(char *s, int numalp, int lmax, int cc, int cf, struct boton Campo);
extern void desactiva_raton(void);
extern void activa_raton(void);
// extern void Anclar_Raton(void);
extern void inicializa_raton_grafico(int x1, int y1, int x2, int y2, int px, int py);
extern int Espera_Tecla_o_Raton(void);
extern void BEEP(void);
extern void textxy(int x, int y, char *text);
#define NEGRO 0
#define AZUL 1
#define ROJO 4
#define VERDE 2
#define BLANCO 63
#define GRIS_O 56
#define GRIS_C 7
#define AMARILLO 62
extern void textxy(int x, int y, char *text);
void Dibuja_Pantalla_Configuracion(void);
void Configuracion(void){
Dibuja_Pantalla_Configuracion();
getch();
}
void Dibuja_Pantalla_Configuracion(void){
struct boton DBC[10];
DBC[0].up = /*140*/130; DBC[0].down = /*255*/400;
DBC[0].left= /*200*/150; DBC[0].right= /*370*/465;
ImprimeBoton (1, GRIS_C, GRIS_O, BLANCO, DBC[0]);
textxy(160+2, 145+2, "PANTALLA DE CONFIGURACION");
DBC[0].up = /*143*/135; DBC[0].down = /*252*/395;
DBC[0].left= /*203*/155; DBC[0].right= /*367*/460;
ImprimeBoton (0, GRIS_C, BLANCO, GRIS_O, DBC[0]);
DBC[0].up = /*235*/370; DBC[0].down = /*250*/390;
DBC[0].left= /*210*/160; DBC[0].right= /*270*/230;
ImprimeBoton (1, GRIS_C, BLANCO, GRIS_O, DBC[0]);
textxy(162, 372, " Aceptar");
textxy(162, 373, " _");
DBC[1].up = /*235*/370; DBC[1].down = /*250*/390;
DBC[1].left= /*300*/385; DBC[1].right= /*360*/455;
ImprimeBoton (1, GRIS_C, BLANCO, GRIS_O, DBC[1]);
textxy(387, 372, " Cancelar");
textxy(387, 373, " _");
DBC[2].up = /*165*/180; DBC[2].down = /*185*/195;
DBC[2].left= 235; DBC[2].right= 300;
Fuente(SMALL_FONT, 4);
textxy(160+2, 175+2, "A<EFBFBD>o para las");
textxy(160+2, 185+2, "gestiones...");
ImprimeBoton (1, NEGRO, BLANCO, GRIS_O, DBC[2]);
textxy(305+2, 185+2, "<--- ( no Backup )");
}