home *** CD-ROM | disk | FTP | other *** search
- /***
- * CPushButton_v002.cp
- *
- * Handle a push button.
- * © 1994-96 Francesco Cadili.
- *
- ****/
- #ifndef __CPushButton__
- #define __CPushButton__
- #include <Dialogs.h>
-
- class CPushButton
- {
- private:
- protected:
- DialogPtr theDialog; // pointer to the Dialog Record
-
- short iType; // the item type
- long time; // the blink time
- Handle iHandle; // the item pointer
-
- public:
- short item; // the item number
-
- /****
- * CPushButton();
- *
- ****/
- CPushButton::CPushButton(void);
-
- /****
- * result = IPushButton(theDialog, item);
- *
- * Inizializza la struttura.
- *
- * Val OUTPUT: false se tutto OK, true altrimenti.
- *
- ****/
- Boolean CPushButton::IPushButton(DialogPtr theDialog, short itemButton);
-
- /****
- * result = BlinkButton();
- *
- * Lampeggia un bottone relativo ad un dialog.
- * Nota (viene usato il valore massimo e minimo per stabilire se il bottone
- * è abilitato)
- *
- * Val OUTPUT: false se il bottone era abilitato, true altrimenti.
- *
- ****/
- Boolean BlinkButton(void);
-
- /****
- * result = SetButton();
- *
- * Lampeggia un bottone relativo ad un dialog.
- * Nota (viene considerato come valore minimo 0 e come massimo 1)
- *
- * Par INPUT: 'status' 1 se bisogna abilitarlo, 0 per disabilitarlo.
- * Val OUTPUT: false se tutto ok, true altrimenti.
- *
- ****/
- Boolean SetButton(int status);
- };
- #endif