マウス ツールの定義

マウス ツールを定義して、MCG ツールのロールアウトから呼び出すことができます。

これを実行するには、通常の方法でマウス ツールを定義して、[カスタムの UI](Custom UI)プロパティで呼び出すためにボタンを追加します。

例:

-- Define mouse tool before it is called
tool myMouseCapture 
( 
    on mousePoint click do 
    (
        format "Captured click!!! % \n" click 
    ) 
--Right-Click to stop 
) 
  
rollout params "Parameters" 
( 
-- Restore the default rollout 
<<ParamUIDefs>> 
<<RolloutParamsHanders>>

-- Define button to start mouse tool
    button ToolStart "Begin Mouse Capture" width:140 
    on ToolStart pressed do 
        (
            startTool myMouseCapture 
        ) 
)