home *** CD-ROM | disk | FTP | other *** search
- // VBOTON2.H
- // (C) Anubis Software, Julio 1995
-
- #ifndef VBOTON2.H
- #define VBOTON2.H
-
- // --------------------------------------------+
- // Librerias Anubis software |
- // --------------------------------------------+
- #include "ventana2.h"
- #include "mdefs.h"
- #include "cadena.h"
- #include "scancode.h"
-
- //---------------------------------------------+
- // Definición de estructuras de la librería |
- //---------------------------------------------+
- typedef struct {
- char Nombre[10];
- Ventana2 *Ventana;
- char LActivacion;
- BYTE PosRelLetra;
- BYTE PosX;
- BYTE PosY;
- BYTE CTexto;
- BYTE CFondo;
- BYTE CSeleccionado;
- BYTE CLetra;
- boolean Estado;
- WORD TecRapid;
- } VBoton2;
-
- // ------------------------------------------+
- // Declaración de constantes de la librería |
- // ------------------------------------------+
- // Valores devueltos por VBotonEvent
- #define VBOTON_NADA 10
- #define VBOTON_SIGUIENTE 11
- #define VBOTON_ANTERIOR 12
- #define VBOTON_CAMBIADO 13
- #define VBOTON_PULSADO 14
- #define VBOTON_SELECCIONADO 15
-
- // Eventos que se le pasan a VBotonEvent
- // Después algunos se pasarán a VENTANA2.H
- #define PULSAR_TECLA 0
- #define TECLA_RAPIDA 3
-
- // ------------------------------------------+
- // Implementacion de las funciones |
- // ------------------------------------------+
- void DibujarVBoton( VBoton2 *);
- void SeleccionarVBoton( VBoton2 *);
- void DeseleccionarVBoton( VBoton2 *);
- WORD VBotonEvent( VBoton2 *, WORD , WORD );
- #endif
-