home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1997 February / macformat-047.iso / Shareware Plus / Developers / DLOGManager 1.02 / Source Code / CPushButton_v002.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-14  |  1.4 KB  |  65 lines  |  [TEXT/KAHL]

  1. /***
  2.  *    CPushButton_v002.cp
  3.  *
  4.  *    Handle a push button.
  5.  *    © 1994-96 Francesco Cadili.
  6.  *
  7.  ****/
  8. #ifndef __CPushButton__
  9. #define __CPushButton__
  10. #include <Dialogs.h>
  11.  
  12. class CPushButton
  13. {
  14.     private:
  15.     protected:
  16.         DialogPtr    theDialog;        //    pointer to the Dialog Record
  17.         
  18.         short        iType;            //    the item type
  19.         long        time;            //    the blink time
  20.         Handle        iHandle;        //    the item pointer
  21.  
  22.     public:
  23.         short         item;            //    the item number
  24.  
  25.         /****
  26.          *    CPushButton();
  27.          *
  28.          ****/
  29.         CPushButton::CPushButton(void);
  30.  
  31.         /****
  32.          *    result = IPushButton(theDialog, item);
  33.          *
  34.          *    Inizializza la struttura.
  35.          *
  36.          *    Val OUTPUT:    false se tutto OK, true altrimenti.
  37.          *
  38.          ****/
  39.         Boolean CPushButton::IPushButton(DialogPtr theDialog, short itemButton);
  40.  
  41.         /****
  42.          *    result = BlinkButton();
  43.          *
  44.          *    Lampeggia un bottone relativo ad un dialog.
  45.          *    Nota (viene usato il valore massimo e minimo per stabilire se il bottone
  46.          *    è abilitato)
  47.          *
  48.          *    Val OUTPUT:    false se il bottone era abilitato, true altrimenti.
  49.          *
  50.          ****/
  51.         Boolean BlinkButton(void);
  52.  
  53.         /****
  54.          *    result = SetButton();
  55.          *
  56.          *    Lampeggia un bottone relativo ad un dialog.
  57.          *    Nota (viene considerato come valore minimo 0 e come massimo 1)
  58.          *
  59.          *    Par INPUT:    'status' 1 se bisogna abilitarlo, 0 per disabilitarlo.
  60.          *    Val OUTPUT:    false se tutto ok, true altrimenti.
  61.          *
  62.          ****/
  63.         Boolean SetButton(int status);
  64. };
  65. #endif