| grandMA3 ユーザマニュアル » プラグイン » Lua 関数 - Object-Free API » TextInput([string[, string[, integer[, integer]]]]) | Version 2.2 |
TextInput 関数は、テキスト入力ポップアップを開き、入力された内容を文字列として返します。これは、ユーザインターフェース機能の一部です。
テキスト入力ポップアップを表示し、入力された値を Command Line History に出力します。
Lua |
return function() -- Create a pop-up with the title and an input field containing some default text -- The returned text is store in a Lua variable local input = TextInput("This is the title","Please provide your input here") -- Print the returned text value Printf("You entered this message: %s",tostring(input)) end |