home *** CD-ROM | disk | FTP | other *** search
- /* C code generated by: */
- /* Visual Arts Version 2.1 */
- /* Copyright (c)1994-95 Danny Y. Wong All rights reserved */
- /* Calgary, Alberta (CANADA) */
-
- extern struct Window *SpeechWnd;
- extern struct Gadget *SpeechGadgets[SpeechNumGads];
- extern void CreateSpeechLists(void);
- extern UBYTE *SexLabels[];
-
- struct List *SpeechLists[1];
-
- void CreateSpeechLists(void)
- {
- short i;
-
- i=0;
- while (SexLabels[i])
- AddNewNode(SpeechLists[0], SexLabels[i++]);
-
- }
-
- /* gadget functions */
-
- int quitObj(struct VAobject VAObject)
- {
- return(-1L);
- }
- /* Button Quit */
-
- int sentenceObj(struct VAobject VAObject)
- {
-
- /* --> get the string from the string gadget and call speak with the
- parameters
- */
-
- Speak(GetString(SpeechGadgets[ID_sentence]), SpeechInfo.volume,
- SpeechInfo.rate, SpeechInfo.sex);
- return(1L);
- }
- /* String Sentence */
-
- int sexObj(struct VAobject VAObject)
- {
- /* --> get the MX value you selected
- */
-
- SpeechInfo.sex = VAObject.va_IntuiMsg->Code;
- return(1L);
- }
- /* MX */
-
- int volumeObj(struct VAobject VAObject)
- {
- SpeechInfo.volume = VAObject.va_IntuiMsg->Code;
- return(1L);
- }
- /* Slider Volume */
-
- int rateObj(struct VAobject VAObject)
- {
- SpeechInfo.rate = VAObject.va_IntuiMsg->Code;
- return(1L);
- }
- /* Slider Rate */
-
-
- int SpeechIDCMP_MOUSEMOVE (struct VAobject VAObject)
- {
- return(1L);
- } /* IDCMP_MOUSEMOVE IDCMP */
-