home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / atari / st / 16797 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  1.1 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!munnari.oz.au!bunyip.cc.uq.oz.au!uqcspe!cs.uq.oz.au!warwick
  2. From: warwick@cs.uq.oz.au (Warwick Allison)
  3. Newsgroups: comp.sys.atari.st
  4. Subject: Re: Help with RCS created .RSC file / header
  5. Message-ID: <11105@uqcspe.cs.uq.oz.au>
  6. Date: 18 Nov 92 23:43:20 GMT
  7. References: <davem.722083065@extro.ucc.su.OZ.AU>
  8. Sender: news@cs.uq.oz.au
  9. Reply-To: warwick@cs.uq.oz.au
  10. Lines: 23
  11.  
  12. davem@extro.ucc.su.OZ.AU (David Monro) writes:
  13.  
  14. >I'm trying to use the Resource Construction Set V1.4.
  15. >Say I have two trees defined, say a menu and a dialog box, and the dialog box
  16. >has on OK button. How do I use rsrc_gaddr to get a pointer to the button?
  17.  
  18. Once you have the pointer to the tree:
  19.  
  20.     OBJECT* Tree;
  21.     rsrc_gaddr... Tree
  22.  
  23. Just use the object indices as indexes into that tree:
  24.  
  25.     x_position_of_ok_button = Tree[OKBUT].ob_x;
  26.  
  27.  
  28. --
  29. Warwick
  30. --
  31.   _-_|\      warwick@cs.uq.oz.au            /Disclaimer:
  32.  /     * <-- Computer Science Department,  /  
  33.  \_.-._/     University of Queensland,    /   C references are NULL && void*
  34.       v      Brisbane, Australia.        /  
  35.