johns@maccs.dcss.mcmaster.ca (Conan the Barbarian) (10/26/90)
I'm trying to figure out how to use the AES call objc_edit().
I'm looking at the Sybex book Programmer's Guide to GEM and it lists what
the arguments are, but I don't know what some of them mean.
int ret_code =
objc_edit(obj_tree, object, character, char_idx, kind, &new_idx);
obj_tree pointer to the object tree; ok
int object object index into the tree, right?
int character replacement character; this is the one I don't understand
int char_idx index of the next position in the text string;
don't understand this one either
int kind a flag for either ED_START, ED_INIT, ED_CHAR, ED_END
I'm not sure what to do with this one
int new_idx index into the text string that points to the next
character position; don't know what to use this one for
either
What I've done is created a .RSC file that has a dialog box with some
buttons and some G_TEXT fields in it. I want to be able to change the text
in these fields, and I thought this was the call to do it.
Can anyone offer some help. Thanks a lot.
--
John Schmitt
johns@maccs.dcss.mcmaster.ca
...!unet!utai!utgpu!maccs!johns
SCHMITTJ@SCIvax.McMaster.CAmui@atari.UUCP (Derek Mui) (11/01/90)
in article <272752B8.18302@maccs.dcss.mcmaster.ca>, johns@maccs.dcss.mcmaster.ca (Conan the Barbarian) says: > > > I'm trying to figure out how to use the AES call objc_edit(). > I'm looking at the Sybex book Programmer's Guide to GEM and it lists what > the arguments are, but I don't know what some of them mean. > > int ret_code = > objc_edit(obj_tree, object, character, char_idx, kind, &new_idx); > Lots of stuff deleted .... I suggest you use the form_do() function. ================================================================== Derek Mui, Atari Corp, 1196 Borregas Ave, Sunnyvale, CA 94086 UUCP: {..ames!atari!mui} Disclaimer: Opinions expressed here are my own and they may be hazardous to your mind. ==================================================================