ユーザが GUI でコマンドを作成するためのコマンド エディタを開きます。
注: ユーザ インターフェイスを表示せずにプログラミングでコマンドを作成するには、XSIApplication.CreateCommand を使用します。
oReturn = CreateAndEditCommand(); |
編集セッションがキャンセルされた場合は True、それ以外の場合は False を戻します。
/*
This example shows how to display the Command Editor to allow the
user to create a command through the UI. If the user presses
Cancel (fails to commit the changes), a warning message is logged:
//WARNING : "Command creation aborted."
*/
var editCanceled = CreateAndEditCommand();
if (true == editCanceled)
{
LogMessage( "Command creation aborted.", siWarning );
} |