Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
MODIFYMENUSTRINGQQ
QuickWin Function: Changes a menu item's text string. This routine is only available for Windows.
USE IFQWIN
result = MODIFYMENUSTRINGQQ (menuID,itemID,text)
menuID  |  
      (Input) INTEGER(4). Identifies the menu containing the item whose text string is to be changed, starting with 1 as the leftmost item.  |  
     
itemID  |  
      (Input) INTEGER(4). Identifies the menu item whose text string is to be changed, starting with 0 as the top menu item.  |  
     
text  |  
      (Input) Character*(*). Menu item name. Must be a null-terminated C string. For example, words of text'C.  |  
     
The result type is LOGICAL(4). The result is .TRUE. if successful; otherwise, .FALSE..
You can add access keys in your text strings by placing an ampersand (&) before the letter you want underlined. For example, to add a Print menu item with the r underlined, use "P&rint"C as text.
 USE IFQWIN
 LOGICAL(4) result
 CHARACTER(25) str
 ! Append item to the bottom of the first (FILE) menu
 str = '&Add to File Menu'C
 result = APPENDMENUQQ(1, $MENUENABLED, str, WINSTATUS)
 ! Change the name of the first item in the first menu
 str ='&Browse'C
 result = MODIFYMENUSTRINGQQ (1, 1, str)
 END