menu_bar_change_entry_c
status.i4.v = menu_bar_change_entry_c(window_id.i2.v, field.i4.v,
text.i1a.r)
This routine will replace the label for the requested field with
the passed text.
window_id ID of desired window
field field number to change (starting at 1)
text null terminated string containing the new menu bar
field label
This function returns ACNET status values as follows:
OK success
CBS_INVARG invalid window ID
CBS_NO_SUCH no menu bar is present or no such field
This function requires the following include files:
cbslib_h, acnet_errors_h
Related functions:
menu_bar_dncase_entry_c, menu_bar_upcase_entry_c, menu_bar_create,
window_menu_bar_create_c, menu_bar_min_width_c
C/C++ usage:
static const char text[] = "New text";
short window_id = WMNGR_BACKGROUND;
int status;
int field = 1;
status = menu_bar_change_entry_c(window_id,field,text);