[comp.sys.amiga] VT100 patches....

wecker@cookie.dec.com.UUCP (02/19/87)

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