Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!mit-eddie!genrad!decvax!ucbvax!decwrl!cookie.dec.com!wecker From: wecker@cookie.dec.com.UUCP Newsgroups: comp.sys.amiga Subject: VT100 patches.... Message-ID: <8155@decwrl.DEC.COM> Date: Thu, 19-Feb-87 14:29:20 EST Article-I.D.: decwrl.8155 Posted: Thu Feb 19 14:29:20 1987 Date-Received: Fri, 20-Feb-87 21:31:05 EST Sender: daemon@decwrl.DEC.COM Organization: Digital Equipment Corporation Lines: 43 Some changes to VT100 V2.5: 1. Rename all references to dopen,dnext,dclose in EXPAND.C to diropen,dirnext,dirclose. I forgot about the LATTICE name conflict (this is not necessary if you are using MANX). 2. Ok, I now know about the ActivateGadget() call... execpt: a) I don't have documentation on number/type of arguments b) Manx 3.20a doesn't know about it.. so how can I call it? (Right now the linker just says UNDEFINED). If you CAN call ActivateGadget, make the following changes to the "void req(prmpt,name,getinp)" routine in WINDOW.C (- = delete, + = add): - /* If we want input, select the gadget */ - if (getinp) mystrgad.Flags |= SELECTED; - else mystrgad.Flags &= ~SELECTED; /* If there is a requester... reuse it */ if (numreqs == 1) RefreshGadgets(&mydonegad,mywindow,&myrequest); /* otherwise create it */ else { if (Request(&myrequest,mywindow) == 0) { emits("ERROR - CAN'T CREATE REQUESTOR FOR:\n"); emits(Prompt); emit('\n'); emits(InpBuf); emit('\n'); return; } else numreqs = 1; } /* if we don't want input, we're done */ - if (getinp == 0) return; + if (getinp == 0 || numreqs == 0) return; + /* now select the gadget and wait for input */ + ActivateGadget(...whatever parameters you need...); That's it for now, dave decwrl!cookie.dec.com!wecker