| grandMA3 ユーザマニュアル » プラグイン » Lua 関数 - Object-Free API » Confirm(string[, string[, integer[, boolean]]]) | Version 2.2 |
Confirm 関数は、true/false を尋ねる簡単な確認ポップアップを表示します。これは、ユーザインターフェース機能の一部です。
確認ポップアップを作成し、その結果を Command Line History に出力します。
Lua |
return function() --Creates a pop-up asking to be confirmed and prints a useful text. if Confirm("Confirm me", "Tap OK or Cancel", nil, true) then Printf("Pop-up result: OK") else Printf("Pop-up result: Cancel") end end |