Article View: comp.sys.amiga.tech
Article #10153Re: Updating text in requesters.
From: Leo 'Bols Ewhac' Schwab
Date: Sat, 05 Nov 1988 10:30
Date: Sat, 05 Nov 1988 10:30
26 lines
1852 bytes
1852 bytes
In article <308@eklektik.UUCP> mike@eklektik.UUCP (Mike Stilson) writes:
>Ok, here's the problem:
> A requester which will let the user set the size of a RAM buffer using a
>prop gadget. What I NEED to do is to to update the amount display as the user
>slides the gadget. (it looks like this)
> [ pretty picture deleted ]
>What I WANT to do is to update the ___ as the user moves the gadget. I know I
>can do it using a window instead, then I can print the IText as I go, but I
>already have the requester made up & worked into the code, and it SEEMS there
>should be a way to do it.
>
There is. You want to render directly into the Requester using
PrintIText(), right? But you need a pointer to a RastPort, right? Well...
--------
struct Requester *req;
struct RastPort *rp;
rp = req -> ReqLayer -> rp; /* Ta da! */
--------
I got this trick from John Draper (remember him?)
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
Leo L. Schwab -- The Guy in The Cape INET: well!ewhac@ucbvax.Berkeley.EDU
\_ -_ Recumbent Bikes: UUCP: pacbell > !{well,unicom}!ewhac
O----^o The Only Way To Fly. hplabs / (pronounced "AE-wack")
"Work FOR? I don't work FOR anybody! I'm just having fun." -- The Doctor
Technical Details
Message-ID:
<7560@well.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!cbmvax!rutgers!apple!well!ewhacReferences:
<308@eklektik.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cbmvax!rutgers!apple!well!ewhac From: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) Newsgroups: comp.sys.amiga.tech,comp.sys.amiga Subject: Re: Updating text in requesters. Summary: Neat solution. Message-ID: <7560@well.UUCP> Date: 5 Nov 88 10:30:11 GMT References: <308@eklektik.UUCP> Reply-To: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) Followup-To: comp.sys.amiga.tech Distribution: na Organization: The Society to Turn Wesley into a Styrofoam Tetradecahedron Lines: 26 Quote: Why ask, "What if...?" when you can ask, "Who cares?"