🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.atari16
Article #1163

Re: rsc info

#1163
From: dclemans
Date: Mon, 07 Jul 1986 17:53
18 lines
1154 bytes
One way to get the address of text fields in a loaded resource is
as follows:

Assume that "BOX" is the name you gave to the dialog box that
contains the editable field.  Assume further that "FIELD" is the
name of the editable field.  Then with the following code fragment:

#include ".h file created by resource construction program"
OBJECT *obj;
TEDINFO *ted;

    rsrc_gaddr(R_TREE,BOX,&obj);
    ted = (TEDINFO *)obj[FIELD].ob_spec;

the expression "ted->te_ptext" gives you the address of
the te_ptext field, etc.

dgc
Technical Details
Message-ID: <352@apollo.mntgfx.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!caip!topaz!nike!ucbcad!ucbvax!decvax!decwrl!pyramid!hplabs!tektronix!reed!omssw2!ogcvax!sequent!mntgfx!dclemans
References: <8607020432.AA12058@ucbvax.Berkeley.EDU>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!caip!topaz!nike!ucbcad!ucbvax!decvax!decwrl!pyramid!hplabs!tektronix!reed!omssw2!ogcvax!sequent!mntgfx!dclemans
From: dclemans@mntgfx.UUCP
Newsgroups: net.micro.atari16
Subject: Re: rsc info
Message-ID: <352@apollo.mntgfx.UUCP>
Date: Mon, 7-Jul-86 13:53:43 EDT
Article-I.D.: apollo.352
Posted: Mon Jul  7 13:53:43 1986
Date-Received: Thu, 10-Jul-86 01:21:23 EDT
References: <8607020432.AA12058@ucbvax.Berkeley.EDU>
Organization: Mentor Graphics, Beaverton OR
Lines: 18
Summary: Getting address of RCS text fields...