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