5.1.6:SetProp
Handlers
SetProp(プロパティ設定)ハンドラ
Each setProp handler begins with the setProp
control structure
followed by the name of the custom property that this
handler corresponds to. The handler ends with the
end
control structure
and the name of the property. setProp handlers look like
this:
setPropハンドラは必ず「setProp」コントロール構造で始まり、その後ろにこのハンドラが反応すべきカスタム・プロパティ名が続きます。setPropハンドラは必ずプロパティ名が後に続く「end」コントロール構造で終わります。setPropハンドラは以下のようになります:
setProp
myCustomProperty newSetting
set
the hilite of me to true
pass
setProp
end
myCustomProperty
A setProp handler is executed whenever the value of the
corresponding custom property is changed by the
set
command. You can
write a setProp handler for any custom property of the
object or another object lower in the object hierarchy. For
more information, see the section on Custom
Properties.
setPropハンドラは、setコマンドによりこのハンドラが必要とするカスタム・プロパティの値が変更された時にはいつでも実行されます。オブジェクトのどのカスタム・プロパティに対しても、或いはメッセージ階層の下位にある他のオブジェクトのカスタム・プロパティに対しても、setPropハンドラを使うことができます。詳細についてはCustom
Propertiesセクションをご覧下さい。