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