home *** CD-ROM | disk | FTP | other *** search
/ PC Media 23 / PC MEDIA CD23.iso / share / prog / anubis / vcsecret.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-26  |  1.9 KB  |  77 lines

  1. // VCSECRET.H
  2.  
  3. // (C) Anubis Software Julio 1995
  4. // Esta librería permite pedir cadenas de caracteres
  5. // de una forma elegante en el entorno de ventanas AVISION.
  6.  
  7. #ifndef VCSECRET.H
  8. #define VCSECRET.H
  9.  
  10. // -----------------------------------------+
  11. // Inclusion de librerias Borland C++       |
  12. // -----------------------------------------+
  13.  
  14. // -----------------------------------------+
  15. // Inclusion de librerias Anubis Software   |
  16. // -----------------------------------------+
  17. #include "mdefs.h"
  18. #include "ventana2.h"
  19. #include "cadena.h"
  20. #include "scancode.h"
  21. #include "mouse.h"
  22.  
  23.  
  24. // -------------------+
  25. // Tipos predefinidos |
  26. // -------------------+
  27. typedef struct {
  28.    Ventana2 *Ventana;
  29.    char Nombre[50];
  30.    char LActivacion;
  31.    char *Cadena;
  32.    BYTE PosXNombre;
  33.    BYTE PosYNombre;
  34.    BYTE PosX;
  35.    BYTE PosY;
  36.    BYTE Ancho;
  37.    BYTE PosRelLetra;
  38.    BYTE CursorCadena;
  39.    BYTE CNombre;
  40.    BYTE CLetra;
  41.    BYTE CTexto;
  42.    BYTE CFondo;
  43.    BYTE CNSeleccionado;
  44.    boolean Estado;
  45.    WORD TecRapid;
  46. } VCsecret;
  47.  
  48.  
  49. // ----------------------------+
  50. // Definición de constantes    |
  51. // ----------------------------+
  52. // Eventos que devuelve VCsecretEvent
  53. #define VCSECRET_NADA         50
  54. #define VCSECRET_SIGUIENTE    51
  55. #define VCSECRET_ANTERIOR     52
  56. #define VCSECRET_CAMBIADA     53
  57. #define VCSECRET_PULSADA      54
  58. #define VCSECRET_SELECCIONADA 55
  59.  
  60. // Eventos que se le pasan a VCadenaEvent
  61. // Después algunos se pasarán a VENTANA2.H
  62. #define PULSAR_TECLA    0   
  63. #define TECLA_RAPIDA    3
  64.  
  65. //Después se pasará a ventana2.h
  66.  
  67. // ----------------------------------------------+
  68. // Declaración e implementacion de las librerias |
  69. // ----------------------------------------------+
  70. void DibujarVCsecret(VCsecret *);
  71. void SeleccionarVCsecret( VCsecret *);
  72. void DeseleccionarVCsecret( VCsecret *);
  73. void VCsecretCambiarCadena(VCsecret *, char *);
  74. WORD VCsecretEvent( VCsecret *, WORD , WORD );
  75.  
  76. #endif
  77.