PPGItem.WidthPercentage operator

導入

v4.0

詳細

コントロールの幅を表す Long 値を、プロパティページの幅全体に対する比率として戻したり、設定したりします。このプロパティは、グループが行の一部である場合にのみ有効です。この項目が占有する横幅をどの程度取ればよいのかを Softimage に指定します。指定しない場合は、Softimage は自動的に行のレイアウトを決定します。

C#構文

// get accessor

Int32 rtn = PPGItem.WidthPercentage;

// set accessor

PPGItem.WidthPercentage = Int32;

VBScript の例

'example demonstrating WidthPercentage

dim oPSet,oPPGLayout

set oPSet=ActiveSceneRoot.AddProperty("CustomProperty",false,"Demo")

oPSet.AddParameter3 "P1",siString, "Default Text"

set oPPGLayout = oPSet.PPGLayout

oPPGLayout.AddRow

'Give Softimage the hint that we want the edit box to

'have extra space

set oItem = oPPGLayout.AddItem( "P1", "Parameter 1" )

oItem.WidthPercentage = 80

set oItem = oPPGLayout.AddButton( "Button" )

oItem.WidthPercentage = 20

oPPGLayout.EndRow

'Show our PPG

InspectObj oPSet

関連項目

PPGLayout.AddGroup