home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17359 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.5 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!spool.mu.edu!uwm.edu!rutgers!cbmvax!peter
  2. From: peter@cbmvax.commodore.com (Peter Cherna)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Ways to get hold of system gadget images ?
  5. Message-ID: <37879@cbmvax.commodore.com>
  6. Date: 14 Dec 92 22:35:38 GMT
  7. References: <1992Dec11.202213.22176@ida.liu.se>
  8. Reply-To: peter@cbmvax.commodore.com (Peter Cherna)
  9. Organization: Commodore-Amiga, Inc.  West Chester, PA.
  10. Lines: 29
  11.  
  12. In article <1992Dec11.202213.22176@ida.liu.se> d90magri@odalix.ida.liu.se (Magnus Rindeberg) writes:
  13. >Well, the title really says it all... Does anyone know of a way to get
  14. >a pointer to the system gadgets "UPIMAGE" and "DOWNIMAGE", i.e. to
  15. >their "Image" structure. I am trying tmake a scroller gadget but don't
  16. >really want to draw the arrows myself, I'd much rather use the default
  17. >images if it is possible.
  18.  
  19. There is a boopsi image class called "sysiclass" that supplies these
  20. images.  You get them with the NewObject() call.  "sysiclass" images
  21. require a SYSIA_DrawInfo tag, whose value you got back from
  22. GetScreenDrawInfo() for the screen your application opens on.
  23.  
  24. upimage = NewObject( NULL, "sysiclass",
  25.     SYSIA_DrawInfo, dri,
  26.     SYSIA_Which, UPIMAGE,
  27.     TAG_DONE );
  28.  
  29. ...
  30.  
  31. DisposeOjbect( upimage );
  32.  
  33. >Magnus Rindeberg, student of computer science and technology
  34.  
  35.      Peter
  36. --
  37. Peter Cherna, User Interface Development Group, Commodore-Amiga, Inc.
  38. {uunet|rutgers}!cbmvax!peter    peter@cbmvax.commodore.com
  39. My opinions do not necessarily represent the opinions of my employer.
  40. "Opinions enlarged to show detail"
  41.