home *** CD-ROM | disk | FTP | other *** search
/ PC Media 23 / PC MEDIA CD23.iso / share / prog / anubis / vboton2.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-15  |  1.5 KB  |  57 lines

  1. // VBOTON2.H
  2. // (C) Anubis Software, Julio 1995
  3.  
  4. #ifndef VBOTON2.H
  5. #define VBOTON2.H
  6.  
  7. // --------------------------------------------+
  8. // Librerias Anubis software                   |
  9. // --------------------------------------------+
  10. #include "ventana2.h"
  11. #include "mdefs.h"
  12. #include "cadena.h"
  13. #include "scancode.h"
  14.  
  15. //---------------------------------------------+
  16. // Definición de estructuras de la librería    |
  17. //---------------------------------------------+
  18. typedef struct {
  19.    char Nombre[10];
  20.    Ventana2 *Ventana;
  21.    char LActivacion;
  22.    BYTE PosRelLetra;
  23.    BYTE PosX;
  24.    BYTE PosY;
  25.    BYTE CTexto;
  26.    BYTE CFondo;
  27.    BYTE CSeleccionado;
  28.    BYTE CLetra;
  29.    boolean Estado;
  30.     WORD TecRapid;
  31. } VBoton2;
  32.  
  33. // ------------------------------------------+
  34. // Declaración de constantes de la librería  |
  35. // ------------------------------------------+
  36. // Valores devueltos por VBotonEvent
  37. #define VBOTON_NADA         10
  38. #define VBOTON_SIGUIENTE    11
  39. #define VBOTON_ANTERIOR     12
  40. #define VBOTON_CAMBIADO     13
  41. #define VBOTON_PULSADO      14
  42. #define VBOTON_SELECCIONADO 15
  43.  
  44. // Eventos que se le pasan a VBotonEvent
  45. // Después algunos se pasarán a VENTANA2.H
  46. #define PULSAR_TECLA    0
  47. #define TECLA_RAPIDA    3
  48.  
  49. // ------------------------------------------+
  50. // Implementacion de las funciones           |
  51. // ------------------------------------------+
  52. void DibujarVBoton( VBoton2 *);
  53. void SeleccionarVBoton( VBoton2 *);
  54. void DeseleccionarVBoton( VBoton2 *);
  55. WORD VBotonEvent( VBoton2 *, WORD , WORD );
  56. #endif
  57.