home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / atari / st / 16750 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.2 KB  |  31 lines

  1. Newsgroups: comp.sys.atari.st
  2. Path: sparky!uunet!munnari.oz.au!metro!extro.ucc.su.OZ.AU!davem
  3. From: davem@extro.ucc.su.OZ.AU (David Monro)
  4. Subject: Help with RCS created .RSC file / header
  5. Message-ID: <davem.722083065@extro.ucc.su.OZ.AU>
  6. Sender: news@ucc.su.OZ.AU
  7. Nntp-Posting-Host: extro.ucc.su.oz.au
  8. Organization: Sydney University Computing Service, Sydney, NSW, Australia
  9. Date: Wed, 18 Nov 1992 10:37:45 GMT
  10. Lines: 19
  11.  
  12. I'm trying to use the Resource Construction Set V1.4.
  13. Say I have two trees defined, say a menu and a dialog box, and the dialog box
  14. has on OK button. How do I use rsrc_gaddr to get a pointer to the button?
  15. If I give the button a name eg OKBUTT, the .H file produced by the RCS defines
  16. it as 3, as it is the third object i tree #1 (The menu is tree #0). So
  17. if I do rsrc_gaddr(1,OKBUTT,&buttpoint) I get a pointer to the third object
  18. in tree #0 (which happens to be the Desk menu title). So how do I tell
  19. rsrc_gaddr theat I want to get the third item in tree #1, not tree #0?
  20. Do I have to calculate the offset by counting the number of items in tree #0?
  21. Or is there a more elegant way? Am I missing something obvious?
  22.  
  23. Thanks,
  24.     David Monro
  25. -- 
  26. David Monro
  27. e-mail: davem@extro.ucc.su.OZ.AU
  28. -- 
  29. David Monro
  30. e-mail: davem@extro.ucc.su.OZ.AU
  31.