home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / amiga / programm / 11510 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1.9 KB  |  51 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!destroyer!ubc-cs!newsserver.sfu.ca!sfu.ca!epang
  3. From: epang@fraser.sfu.ca (Eugene Pang)
  4. Subject: Re: GadTools: My cycle gadget don't cycle!
  5. Message-ID: <epang.711856074@sfu.ca>
  6. Sender: news@sfu.ca
  7. Organization: Simon Fraser University, Burnaby, B.C., Canada
  8. References: <14jtm2INN94l@matt.ksu.ksu.edu>
  9. Date: Thu, 23 Jul 1992 01:47:54 GMT
  10. Lines: 39
  11.  
  12. strat@matt.ksu.ksu.edu (Steve Davis) writes:
  13. >Okay, I'm about to give up on "GadToolsBox v1.3".  I got this
  14. >program hoping it would speed up the process of gadget placement in
  15. >my custom windows, but this program just outputs unworkable code.
  16.  
  17. Yes, GTB 1.3 still has problems writing the correct IDCMP flags.  You'll
  18. want to get your RKM Includes & Autodocs and/or RKM Libraries out.  Did you
  19. get the old 1.3 that circulated on the net (v37.91?) or the newer one off
  20. Fish disk 659 (v37.111)?
  21.  
  22. >:-(  For one thing, it screws up with TAG_DONE by writing it
  23. >TAGDONE in places without bothering to define a TAGDONE.
  24.  
  25. Hmm...fgrepping the source for TAGDONE turns up nada.
  26.  
  27. >I can't figure out how to make the cycle gadgets visibly cycle in my
  28. >custom windows.
  29.  
  30. If you mean they're not cycling when clicked on, then you should check that
  31. IDCMP_GADGETUP is in the ti_Data field for the WA_IDCMP tag.  My copy of
  32. GTB seems to forget to write this one.
  33.  
  34. If you mean they're not cycling when the keyboard shortcut is pressed, then
  35. you should know that you have to do your own trapping of IDCMP_VANILLAKEY.
  36. For example:
  37.  
  38.   case IDCMP_VANILLAKEY:
  39.     switch (Code) {
  40.       case 'c': /* this is our keyboard shortcut for this gadget */
  41.         if (cyclelevel < OURMAXLEVEL)
  42.           cyclelevel++;
  43.         else
  44.           cyclelevel = 0;
  45.         GT_SetGadgetAttrs(MainGadgets[GD_MAIN_CYCLE_GADGET], MainWindow, NULL,
  46.               GTCY_Active, cyclelevel, TAG_END);
  47.         break;
  48.  
  49.     /* etc */
  50.  
  51.