Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference Intel® Fortran Libraries Reference

h.eng.cam.ac.uk
from h.eng.cam.ac.uk More from this publisher
12.07.2015 Views

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

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!