Intel® Fortran Libraries Reference
Intel® Fortran Libraries Reference Intel® Fortran Libraries Reference
2 Intel Fortran Libraries ReferenceResults:The result type is LOGICAL(4). The result is .TRUE. if successful; otherwise, .FALSE..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.CompatibilityQUICKWIN GRAPHICS LIBSee Also: “APPENDMENUQQ”, “DELETEMENUQQ”, “INSERTMENUQQ”,“MODIFYMENUROUTINEQQ”, “MODIFYMENUSTRINGQQ”, "Using QuickWin" in youruser’s guideExampleUSE IFQWINLOGICAL(4) resultCHARACTER(20) str! Append item to the bottom of the first (FILE) menustr = '&Add to File Menu'Cresult = APPENDMENUQQ(1, $MENUENABLED, str, WINSTATUS)! Gray out and disable the first two menu items in the! first (FILE) menuresult = MODIFYMENUFLAGSQQ (1, 1, $MENUGRAYED)result = MODIFYMENUFLAGSQQ (1, 2, $MENUGRAYED)ENDMODIFYMENUROUTINEQQQuickWin Function: Changes a menu item’s callback routine. This function is only available onWindows* systems.Module: USE IFQWINSyntaxresult = MODIFYMENUROUTINEQQ (menuIdD, itemID, routine)menuIdD(Input) INTEGER(4). Identifies the menu that contains the item whose callback routine is bechanged, starting with 1 as the leftmost menu.2-216
Descriptions of the Library Routines 2itemID(Input) INTEGER(4). Identifies the menu item whose callback routine is to be changed, startingwith 0 as the top item.routine(Input) EXTERNAL. Callback subroutine called if the menu item is selected. All routines take asingle LOGICAL parameter that indicates whether the menu item is checked or not. You canassign 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.• 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..CompatibilityQUICKWIN GRAPHICS LIB2-217
- 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 230 and 231: 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 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
- Page 280 and 281: 2 Intel Fortran Libraries Reference
- Page 282 and 283: 2 Intel Fortran Libraries Reference
- Page 284 and 285: 2 Intel Fortran Libraries Reference
- Page 286 and 287: 2 Intel Fortran Libraries Reference
- Page 288 and 289: 2 Intel Fortran Libraries Reference
- Page 290 and 291: 2 Intel Fortran Libraries Reference
- Page 292 and 293: 2 Intel Fortran Libraries Reference
- Page 294 and 295: 2 Intel Fortran Libraries Reference
- Page 296 and 297: 2 Intel Fortran Libraries Reference
- Page 298 and 299: 2 Intel Fortran Libraries Reference
- Page 300 and 301: 2 Intel Fortran Libraries Reference
- Page 302 and 303: 2 Intel Fortran Libraries Reference
- Page 304 and 305: 2 Intel Fortran Libraries Reference
- Page 306 and 307: 2 Intel Fortran Libraries Reference
- Page 308 and 309: 2 Intel Fortran Libraries Reference
- Page 310 and 311: 2 Intel Fortran Libraries Reference
- Page 312 and 313: 2 Intel Fortran Libraries Reference
- Page 314 and 315: 2 Intel Fortran Libraries Reference
- Page 316 and 317: 2 Intel Fortran Libraries Reference
2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>Results:The result type is LOGICAL(4). The result is .TRUE. if successful; otherwise, .FALSE..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.CompatibilityQUICKWIN GRAPHICS LIBSee Also: “APPENDMENUQQ”, “DELETEMENUQQ”, “INSERTMENUQQ”,“MODIFYMENUROUTINEQQ”, “MODIFYMENUSTRINGQQ”, "Using QuickWin" in youruser’s guideExampleUSE IFQWINLOGICAL(4) resultCHARACTER(20) str! Append item to the bottom of the first (FILE) menustr = '&Add to File Menu'Cresult = APPENDMENUQQ(1, $MENUENABLED, str, WINSTATUS)! Gray out and disable the first two menu items in the! first (FILE) menuresult = MODIFYMENUFLAGSQQ (1, 1, $MENUGRAYED)result = MODIFYMENUFLAGSQQ (1, 2, $MENUGRAYED)ENDMODIFYMENUROUTINEQQQuickWin Function: Changes a menu item’s callback routine. This function is only available onWindows* systems.Module: USE IFQWINSyntaxresult = MODIFYMENUROUTINEQQ (menuIdD, itemID, routine)menuIdD(Input) INTEGER(4). Identifies the menu that contains the item whose callback routine is bechanged, starting with 1 as the leftmost menu.2-216