oldfield@bnr-rsc.UUCP (John Oldfield) (12/20/89)
This is from a friend who doesn't have net-access.... ------------------------------------------------------- Every time I try to update the text in a menu item, my program crashes. The call I am using to change the text is menu_text(menu_ptr, ITEM_CONST, new_text); menu_ptr - a pointer to the menu tree ITEM_CONST - index of a menu item - from the .H file created by a resource construction program new_text - pointer to a null-terminated character string I have tried using strings that are shorter, the same length and longer than the existing menu item text. I have tried putting wind_update(BEG_UPDATE) before the menu_text call and wind_update(END_UPDATE) after. I have tried putting menu_bar(menu_ptr, FALSE) before the menu_text call and menu_bar(menu_ptr, TRUE) after. I have also tried surrounding the menu_text call with both wind_update and menu_bar calls. What am I doing wrong? Please help. ----------------------------------------------------- from John Oldfield oldfield@bnr-rsc
mui@atari.UUCP (Derek Mui) (12/21/89)
in article <1616@bnr-rsc.UUCP>, oldfield@bnr-rsc.UUCP (John Oldfield) says: > > > Every time I try to update the text in a menu item, > my program crashes. The call I am using to change > the text is > > menu_text(menu_ptr, ITEM_CONST, new_text); > I just wrote a test program to do the same thing but I didn't have any problem. Could it be your menu_ptr or ITEM_CONST got screwed up? ================================================================== Derek Mui, Atari Corp, 1196 Borregas Ave, Sunnyvale, CA 94086 UUCP: {..ames!atari!mui} FAX: 408-745-5179 Disclaimer: Opinions expressed here are my own and they may be hazardous to your mind. ==================================================================