![]() ![]() 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. If successful, the text parameter will contain the user’s input. The text to display above the text entry box in the dialog If successful, this parameter will contain the text entered by a user 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. True if a file was selected, false otherwise. 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. 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. 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. 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. These procedures allow access to simple dialogs from within C or Fortran.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |