
コマンド ボタンには、標準のコマンド ボタン(テキストを表示する、角の丸い矩形)が表示されます。 ユーザがボタンをクリックすると、OnClicked イベント コールバックを使用して、Logic 内の関連する関数が呼び出されます。これらは基本パラメータに関連付けられていません(「レイアウトを変更する」を参照)。
コマンド ボタン コントロールを作成するには、PPGLayout.AddButton または PPGLayout::AddButton メソッドを使用して ScriptName 引数およびオプションの Label 引数を指定します。
# ** during control creation (for example, in the DefineLayout callback) **
oLayout.AddButton( "Reframe" );
//...
# ** as part of the logic attached to the custom property **
function Reframe_OnClicked()
{
// call other functions, get or set parameter info, or
// write any other handler code you want here.
}