ermili.blogg.se

Dialogs simply fortran
Dialogs simply fortran













dialogs simply fortran

True if a file was selected, false otherwise. To leave this field blank, the value of filename should be a zero-length string in C or a string of spaces in Fortran. The value of the filename parameter must be initialized properly since it is used as an initial filename. If unsuccessful, the contents of text will remain unchanged dlgsavefileĬ bool dlgsavefile (title, filename, filelength, maskdesc, mask)įortran function dlgsavefile (filename, maskdesc, mask, title) Descriptionĭisplays a standard file selection dialog formatted for saving a file. If successful, the text parameter will contain the user’s input. If successful, this parameter will contain the text entered by a user The text to initially display in the box. dlgrequesttextĭisplays a popup dialog requesting text input from the user. In Fortran, the routine returns the 1-based index of the selected item. In C, the routine returns the 0-based index of the selected item. The text to display above the list in the dialog In C, the list should be a string where the items are separated by NULL characters and terminated with a pair of NULL characters. If unsuccessful, the contents of text will remain unchanged dlgrequestselectionĬ int dlgrequestselection (items, title, label)įortran function dlgrequestselection (items, title, label) Descriptionĭisplays a popup dialog containing a list from which the user may select an item.

dialogs simply fortran

The text to display above the text entry box in the dialog The user’s typing will appear as asterisks in the text box to obscure the characters. dlgrequestpasswordĬ bool dlgrequesttext (text, textlength, title, label)įortran function dlgrequesttext (text, title, label) Descriptionĭisplays a popup dialog requesting text input from the user. If a file was not selected, the contents of the filename parameter will remain unchanged. If a file was selected, the new filename will be present in the filename parameter. The file mask, normally an asterisk followed by the file extension The description to display for the file mask if one was provided Upon a successful return, the selected filename is held by this parameter The initial file location to use when the dialog is displayed. The message to display in the popup message boxĬ bool dlgopenfile (title, filename, filelength, maskdesc, mask)įortran function dlgopenfile (filename, maskdesc, mask, title) Descriptionĭisplays a standard file selection dialog formatted for opening a file. The type of message box to display, as explained above The message box may be of a type specified by the following constants: Type dlgmessageįortran subroutine dlgmessage (type, message) Descriptionĭisplays a simple message on the screen in a popup dialog with an “Ok” button.

#Dialogs simply fortran windows#

In other words, a program that is normally only running in a text console may call these dialogs to, for example, prompt the user for a file selection without having any other windows opened. While they have been designed to be called with reference to a particular AppGraphics window, they can be called without any windows having been opened or initialized.

dialogs simply fortran dialogs simply fortran

These procedures allow access to simple dialogs from within C or Fortran.















Dialogs simply fortran