home *** CD-ROM | disk | FTP | other *** search
- // VFORM2.H
- // (C) Anubis Software Agosto 1995
- #ifndef VFORM2.H
- #define VFORM2.H
-
- #include <stdio.h>
-
- // ------------------------------------+
- // Librerias Anubis Software |
- // ------------------------------------+
- #include "ventana2.h"
- #include "vcadena2.h"
- #include "vcsecret.h"
- #include "vboton2.h"
- #include "vscroll2.h"
- #include "vopcion2.h"
- #include "mdefs.h"
-
- // -------------------------------------+
- // Tipos predefinidos por la librerÃa |
- // -------------------------------------+
- typedef struct {
- void *Apuntador; // Es una apuntador al tipo que se da.
- void *Siguiente; // VEnlace * Es una lista de apuntadores.
- WORD TipoEstructura; // Indica que estructura cuelga de el.
- } VEnlace2;
-
- typedef struct {
- VEnlace2 *ListaObjetos;
- VEnlace2 *ObjSeleccionado;
- } VForm2;
-
- // --------------------------------------+
- // Declaracion de las constantes |
- // --------------------------------------+
- // Definicion de los eventos que se pueden pasar a VFormEvent
- #define PULSAR_TECLA 0
-
- // Declaracion de los valores que devuelve VFormEvent
- #define VFORM_NADA 0
-
- // Declaracion de los tipos para VEnlace
- #define VFORM_VCADENA 0
- #define VFORM_VBOTON 1
- #define VFORM_VSCROLL 2
- #define VFORM_VOPCION 3
- #define VFORM_VCSECRET 4
-
- // -----------------------------------------+
- // Algoritmos |
- // -----------------------------------------+
-
- WORD VFormExec( VEnlace2 *, WORD , WORD );
- WORD VFormScan( VEnlace2 *);
- void VFormDeseleccionar( VEnlace2 *);
- void VFormSeleccionar( VEnlace2 *);
- void VFormTratar( VForm2 *, WORD , VEnlace2 *);
- WORD VFormEvent(VForm2 *, WORD ,WORD , VEnlace2 **);
- #endif
-