# IupGetText

Definition: | include pGUI.e string result = IupGetText(string title, text, integer maxsize=10240)
Description: | Shows a modal dialog to edit a multiline text. title: for the containing dialog ("IupGetText Text" in the example below). text: the initial value of the text. maxsize: maximum size for the edited string. If set to 0 will be the current length of text, if set to -1 the dialog will be read-only and only the OK button is displayed (since 3.29). (since 3.17) Returns: the modified text or "" if cancelled.
pwa/p2js: | Not supported.
Notes: | The default of 10240 characters is about 250..300 lines of average length. The dialog uses a global attribute called "PARENTDIALOG" as the parent dialog if it is defined. It also uses a global attribute called "ICON" as the dialog icon if it is defined.
Example: |
See Also: | IupMessage, IupListDialog, IupAlarm, IupSetLanguage