label コントロールは、ロールアウト上に、他の項目のラベルやテキストメッセージなどの 編集不可能なテキストを配置するのに使用します。
構文は次のようになります。
label <name> [<string>] [style_sunkenedge:<boolean>] [toolTip:<string>]
label
項目の位置合わせの既定値は、#center
です。
3ds Max 2009 以降で使用可能なオプション キーワード パラメータ style_sunkenedge:
を指定し、true
に設定すると、ラベル コントロールの周囲に半分くぼんだ状態の縁取りを描画することができます。
toolTip:
パラメータはラベルのツールチップに使用するテキストを提供します。指定しない場合、ツールチップは表示されません。3ds Max 2017 以降で使用可能です。
例:
rollout test "Test Label" ( label lab1 "Sorry For The Inconveniences!" label lab2 "DoN't PaNiC!"style_sunkenedge:true width:150 height:16 ) createDialog test
rollout my_rollout "My Rollout" ( label my_label "ABCDEFGHIJ" ) createdialog my_rollout my_rollout.my_label.text += "\nXXX" my_rollout.my_label.height *=2 -- start to see the "XXX" line my_rollout.height *=2 -- expand dialog so can see the "XXX" line my_rollout.my_label.width -= 20 -- crops end of text display
プロパティ
<label>.height Integer
ラベルの高さを取得または設定します。ラベルの寸法を変更しても、親のロールアウト サイズには影響しません。
3ds Max 2020 以降で使用可能です。
<label>.width Integer
ラベルの幅を取得または設定します。ラベルの寸法を変更しても、親のロールアウト サイズには影響しません。
3ds Max 2020 以降で使用可能です。
イベント
公開されているイベントははありません。