home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!nott!cu23.crl.aecl.ca!wl.aecl.ca!taylorm
- From: taylorm@wl.aecl.ca
- Subject: RE: Listview slider problem (Code included)
- Message-ID: <7NOV92.19133372@wl.aecl.ca>
- Sender: news@cu23.crl.aecl.ca (USENET News System)
- Nntp-Posting-Host: wc4.wl.aecl.ca
- Organization: AECL RESEARCH
- References: <7NOV92.13340477@wl.aecl.ca> <mbs.1a46@adastra.cvl.va.us>
- Date: Sun, 8 Nov 1992 01:13:33 GMT
- Lines: 39
-
-
- I wrote:
- >> (imsg = GT_GetIMsg(calcwin->UserPort)))
- >> {
- >> gad = (struct Gadget *)imsg->IAddress;
- >>
-
- mbs@adastra.cvl.va.us (Michael B. Smith) writes:
- >
- > NO! This isn't your bug, but NEVER EVER do this, unless you know that
- > imsg->Class is IDCMP_GADGETUP or IDCMP_GADGETDOWN. It isn't a gadget
- > unless the Class is for one of those two.
-
- The pointer only gets deferenced if the imsg->Class is a IDCMP_GADGETUP or
- IDCMP_GADGETDOWN. I realize that this my not be the best style, but it
- is based on an example in the Amiga Rom Kernal Libraries manual (p409).
-
- The 'C' language lets you get away with murder, and the victim is usually
- yourself.
-
- >> WA_DetailPen, -1,
- >> WA_BlockPen, -1,
-
- > THIS is your problem. I personally would suggest:
- >
- > WA_DetailPen, 0,
- > WA_BlockPen, 1,
-
- Correct you are. Strangely, one of the examples I was studying sets the
- pens to -1 as I did, the difference being that his worked.
-
- Oh well, thank you very much. My sanity, whatever it is worth, is once
- again intact.
-
- *****************************************************************************
- In search of the virtual world * /\/\ike Taylor
- * mataylor@undergrad.math.uwaterloo.ca
- Sometimes real is too real * taylorm@wl.aecl.ca
- *****************************************************************************
-