Article View: comp.sys.atari.st
Article #39662Problem with menu_text()
From: John Oldfield
Date: Tue, 19 Dec 1989 16:21
Date: Tue, 19 Dec 1989 16:21
34 lines
1483 bytes
1483 bytes
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
Technical Details
Message-ID:
<1616@bnr-rsc.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!bnrgate!bnr-fos!bigsur!bnr-rsc!oldfieldShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!bnrgate!bnr-fos!bigsur!bnr-rsc!oldfield From: oldfield@bnr-rsc.UUCP (John Oldfield) Newsgroups: comp.sys.atari.st Subject: Problem with menu_text() Keywords: menutext,crash,AES Message-ID: <1616@bnr-rsc.UUCP> Date: 19 Dec 89 16:21:11 GMT Organization: Bell-Northern Research, Ottawa, Canada Lines: 34