Intel® Fortran Libraries Reference
Intel® Fortran Libraries Reference Intel® Fortran Libraries Reference
2 Intel Fortran Libraries Reference• $MENUGRAYED - Disables and grays out the menu item.• $MENUDISABLED - Disables but does not gray out the menu item.• $MENUENABLED - Enables the menu item.• $MENUSEPARATOR - Draws a separator bar.• $MENUCHECKED - Puts a check by the menu item.• $MENUUNCHECKED - Removes the check by the menu item.text(Input) Character*(*). Menu item name. Must be a null-terminated C string, for example, words oftext’C.routine(Input) EXERNAL. Callback subroutine that is called if the menu item is selected. All routinesmust take a single LOGICAL parameter that indicates whether the menu item is checked or not.You can assign the following predefined routines to menus:• WINPRINT – Prints the program.• WINSAVE – Saves the program.• WINEXIT – Terminates the program.• WINSELECTTEXT – Selects text from the current window.• WINSELECTGRAPHICS – Selects graphics from the current window.• WINSELECTALL – Selects the entire contents of the current window.• WININPUT – Brings to the top the child window requesting input and makes it the currentwindow.• WINCOPY – Copies the selected text and/or graphics from the current window to theClipboard.• WINPASTE – Allows the user to paste Clipboard contents (text only) to the current textwindow of the active window during a READ.• WINCLEARPASTE – Clears the paste buffer.• WINSIZETOFIT – Sizes output to fit window.• WINFULLSCREEN – Displays output in full screen.• WINSTATE – Toggles between pause and resume states of text output.• WINCASCADE – Cascades active windows.• WINTILE – Tiles active windows.• WINARRANGE – Arranges icons.• WINSTATUS – Enables a status bar.• WININDEX – Displays the index for QuickWin help.• WINUSING – Displays information on how to use Help.2-178
Descriptions of the Library Routines 2• WINABOUT – Displays information about the current QuickWin application.• NUL – No callback routine.Results:The result type is LOGICAL(4). The result is .TRUE. if successful; otherwise, .FALSE.Menus and menu items must be defined in order from left to right and top to bottom. For example,INSERTMENUQQ fails if you try to insert menu item 7 when 5 and 6 are not defined yet. For atop-level menu item, the callback routine is ignored if there are subitems under it.The constants available for flags can be combined with an inclusive OR where reasonable, forexample $MENUCHECKED .OR. $MENUENABLED. Some combinations do not make sense,such as $MENUENABLED and $MENUDISABLED, and lead to undefined behavior.You can create quick-access keys in the text strings you pass to INSERTMENUQQ as text byplacing an ampersand (&) before the letter you want underlined. For example, to add a Print menuitem with the r underlined, text should be "P&rint". Quick-access keys allow users of yourprogram to activate that menu item with the key combination ALT+QUICK-ACCESS-KEY (ALT+Rin the example) as an alternative to selecting the item with the mouse.For more information on customizing QuickWin menus, see "Using QuickWin" in your user’sguide.CompatibilityQUICKWIN GRAPHICS LIBSee Also: “APPENDMENUQQ”, “DELETEMENUQQ”, “MODIFYMENUFLAGSQQ”,“MODIFYMENUROUTINEQQ”, “MODIFYMENUSTRINGQQ”Example! build as a QuickWin App.USE IFQWINLOGICAL(4) status! insert new item into Menu 5 (Window)status= INSERTMENUQQ(5, 5, $MENUCHECKED, ’New Item’C, &WINSTATUS)! insert new menu in position 2status= INSERTMENUQQ(2, 0, $MENUENABLED, ’New Menu’C, &WINSAVE)ENDINTCPortability Function: Converts an INTEGER(4) argument to INTEGER(2) type.2-179
- Page 180 and 181: 2 Intel Fortran Libraries Reference
- Page 182 and 183: 2 Intel Fortran Libraries Reference
- Page 184 and 185: 2 Intel Fortran Libraries Reference
- Page 186 and 187: 2 Intel Fortran Libraries Reference
- Page 188 and 189: 2 Intel Fortran Libraries Reference
- Page 190 and 191: 2 Intel Fortran Libraries Reference
- Page 192 and 193: 2 Intel Fortran Libraries Reference
- Page 194 and 195: 2 Intel Fortran Libraries Reference
- Page 196 and 197: 2 Intel Fortran Libraries Reference
- Page 198 and 199: 2 Intel Fortran Libraries Reference
- Page 200 and 201: 2 Intel Fortran Libraries Reference
- Page 202 and 203: 2 Intel Fortran Libraries Reference
- Page 204 and 205: 2 Intel Fortran Libraries Reference
- Page 206 and 207: 2 Intel Fortran Libraries Reference
- Page 208 and 209: 2 Intel Fortran Libraries Reference
- Page 210 and 211: 2 Intel Fortran Libraries Reference
- Page 212 and 213: 2 Intel Fortran Libraries Reference
- Page 214 and 215: 2 Intel Fortran Libraries Reference
- Page 216 and 217: 2 Intel Fortran Libraries Reference
- Page 218 and 219: 2 Intel Fortran Libraries Reference
- Page 220 and 221: 2 Intel Fortran Libraries Reference
- Page 222 and 223: 2 Intel Fortran Libraries Reference
- Page 224 and 225: 2 Intel Fortran Libraries Reference
- Page 226 and 227: 2 Intel Fortran Libraries Reference
- Page 228 and 229: 2 Intel Fortran Libraries Reference
- Page 232 and 233: 2 Intel Fortran Libraries Reference
- Page 234 and 235: 2 Intel Fortran Libraries Reference
- Page 236 and 237: 2 Intel Fortran Libraries Reference
- Page 238 and 239: 2 Intel Fortran Libraries Reference
- Page 240 and 241: 2 Intel Fortran Libraries Reference
- Page 242 and 243: 2 Intel Fortran Libraries Reference
- Page 244 and 245: 2 Intel Fortran Libraries Reference
- Page 246 and 247: 2 Intel Fortran Libraries Reference
- Page 248 and 249: 2 Intel Fortran Libraries Reference
- Page 250 and 251: 2 Intel Fortran Libraries Reference
- Page 252 and 253: 2 Intel Fortran Libraries Reference
- Page 254 and 255: 2 Intel Fortran Libraries Reference
- Page 256 and 257: 2 Intel Fortran Libraries Reference
- Page 258 and 259: 2 Intel Fortran Libraries Reference
- Page 260 and 261: 2 Intel Fortran Libraries Reference
- Page 262 and 263: 2 Intel Fortran Libraries Reference
- Page 264 and 265: 2 Intel Fortran Libraries Reference
- Page 266 and 267: 2 Intel Fortran Libraries Reference
- Page 268 and 269: 2 Intel Fortran Libraries Reference
- Page 270 and 271: 2 Intel Fortran Libraries Reference
- Page 272 and 273: 2 Intel Fortran Libraries Reference
- Page 274 and 275: 2 Intel Fortran Libraries Reference
- Page 276 and 277: 2 Intel Fortran Libraries Reference
- Page 278 and 279: 2 Intel Fortran Libraries Reference
Descriptions of the Library Routines 2• WINABOUT – Displays information about the current QuickWin application.• NUL – No callback routine.Results:The result type is LOGICAL(4). The result is .TRUE. if successful; otherwise, .FALSE.Menus and menu items must be defined in order from left to right and top to bottom. For example,INSERTMENUQQ fails if you try to insert menu item 7 when 5 and 6 are not defined yet. For atop-level menu item, the callback routine is ignored if there are subitems under it.The constants available for flags can be combined with an inclusive OR where reasonable, forexample $MENUCHECKED .OR. $MENUENABLED. Some combinations do not make sense,such as $MENUENABLED and $MENUDISABLED, and lead to undefined behavior.You can create quick-access keys in the text strings you pass to INSERTMENUQQ as text byplacing an ampersand (&) before the letter you want underlined. For example, to add a Print menuitem with the r underlined, text should be "P&rint". Quick-access keys allow users of yourprogram to activate that menu item with the key combination ALT+QUICK-ACCESS-KEY (ALT+Rin the example) as an alternative to selecting the item with the mouse.For more information on customizing QuickWin menus, see "Using QuickWin" in your user’sguide.CompatibilityQUICKWIN GRAPHICS LIBSee Also: “APPENDMENUQQ”, “DELETEMENUQQ”, “MODIFYMENUFLAGSQQ”,“MODIFYMENUROUTINEQQ”, “MODIFYMENUSTRINGQQ”Example! build as a QuickWin App.USE IFQWINLOGICAL(4) status! insert new item into Menu 5 (Window)status= INSERTMENUQQ(5, 5, $MENUCHECKED, ’New Item’C, &WINSTATUS)! insert new menu in position 2status= INSERTMENUQQ(2, 0, $MENUENABLED, ’New Menu’C, &WINSAVE)ENDINTCPortability Function: Converts an INTEGER(4) argument to INTEGER(2) type.2-179