Path: utzoo!utgpu!watmath!watdragon!tiger!achowe From: achowe@tiger.waterloo.edu (CrackerJack) Newsgroups: comp.sys.atari.st Subject: GEM AES/Resource Questions Message-ID: <13423@watdragon.waterloo.edu> Date: 22 Apr 89 21:17:32 GMT Sender: daemon@watdragon.waterloo.edu Reply-To: achowe@tiger.waterloo.edu (CrackerJack) Distribution: na Organization: U. of Waterloo, Ontario Lines: 43 I have the Developer's Kit and the book << Programmer's Guide to GEM >> but neither can enlighten me on how to do the following: 1) How do I get the address of a string contained in a dialog in order to change its contents? What I'm doing is: : rsrc_gaddr( R_STRING, STR_OBJ, &string ); sprintf( string, "%4d", value ); : 2) How do I send myself a WM_REDRAW message? What I'm doing is: SendRedraw( tree, obj ) long tree; int obj; { int msg[8]; ObjcXywh( tree, obj, &msg[4] ); msg[0] = WM_REDRAW; msg[3] = GemHandle; appl_write( ApplHandle, 16, msg ); }/* SendRedraw */ someroutine() { : /* dirty screen, change string values in object */ : SendRedraw( TreeObj, ROOT ); } Is any of this right? - Ant achowe@tiger.waterloo.edu | "Murdered by pirates is good." __ _ | - The Princess Bride (movie) / _ _ _ |/ _ _ | _ _ |/ | \__| `<_\<_ |\|= | ` \_/<_\<_ |\ | disclaimer...