垂直排列盒对齐我将文本框,数字编辑框和按钮框组合在一个对齐的框对齐中,但最终得到的显示不一定是笔直的(请参见快照)。 有没有办法解决这个问题,使每个框成比例对齐?
new window("Test",
line up box(ncol(3),
Text box("Variable 1"),Number edit box(0),Button box("Create Column"),
Text box("Variable 2"),Number edit box(0),TExt box(""),
Text box("Variable 3"),Number edit box(0),Button box("Create Column")
)
)图形学脚本编写回复:排队盒的垂直对齐不同的对象具有不同的尺寸,所以我要做的是使用间隔盒进行调整

new window( "Test",
line up box( N Col( 2 ),
V List Box(
Spacer Box( size( 0, 2 ) ),
H List Box(
Text Box( "Variable 1" ),
Number Edit Box( 0 )
)
),
Button Box( "Create Column" ),
H List Box(
Text Box( "Variable 2" ),
Number Edit Box( 0 )
),
Text Box( "" ),
V List Box(
Spacer Box( size( 0, 2 ) ),
H List Box(
Text Box( "Variable 3" ),
Number Edit Box( 0 )
)
),
Button Box( "Create Column" )
)
)