IupGetText

9

IupGetText

@serial = 814

dialog

Description

Shows a modal dialog to edit a multiline text.

Include

iup.e

Namespace

iup

Signature

public function IupGetText(object title = NULL, atom text)

Creation

text: It contains the initial value of the text and the returned text. It must have room for the edited string.

Returns: a non zero value if successful. In Lua returns the text or nil if an error occurred.

Notes

The function does not allocate memory space to store the text entered by the user. Therefore, the text parameter must be large enough to contain the user input. The string is limited to 10240 characters.

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

? problem with second argument

include iup/iup.e 
 
 
IupOpen(NULL) 
 
object x = IupGetText("hello", NULL ) 
 
 IupMainLoop() IupClose() 

See Also

IupFileDlg IupMessageDlg IupFontDlg IupProgressDlg IupAlarm IupGetFile IupGetColor IupGetParam IupGetText IupListDialog IupMessage IupScanf IupLayoutDialog IupElementPropertiesDialog
IupSetLanguage
Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu