HListBox 有一个可选参数来调整子框的水平对齐方式。尝试
logo = open("company_logo.png", png);
logo << set size({93, 48});
H List Box(
Align("Bottom"),
Picture Box(logo),
Text Box( "Company Name " )
)如果你想要这样的东西
A JMP report in the right side of a display tree. The left side is a vertical stack of two items.A JMP report in the right side of a display tree. The left side is a vertical stack of two items.A JMP report in the right side of a display tree. The left side is a vertical stack of two items.A JMP report in the right side of a display tree. The left side is a vertical stack of two items.A JMP report in the right side of a display tree. The left side is a vertical stack of two items.A JMP report in the right side of a display tree. The left side is a vertical stack of two items.A JMP report in the right side of a display tree. The left side is a vertical stack of two items.A JMP report in the right side of a display tree. The left side is a vertical stack of two items.A JMP report in the right side of a display tree. The left side is a vertical stack of two items.A JMP report in the right side of a display tree. The left side is a vertical stack of two items.A JMP report in the right side of a display tree. The left side is a vertical stack of two items.A JMP report in the right side of a display tree. The left side is a vertical stack of two items.A JMP report in the right side of a display tree. The left side is a vertical stack of two items.A JMP report in the right side of a display tree. The left side is a vertical stack of two items.A JMP report in the right side of a display tree. The left side is a vertical stack of two items.A JMP report in the right side of a display tree. The left side is a vertical stack of two items.A JMP report in the right side of a display tree. The left side is a vertical stack of two items.A JMP report in the right side of a display tree. The left side is a vertical stack of two items.A JMP report in the right side of a display tree. The left side is a vertical stack of two items.A JMP report in the right side of a display tree. The left side is a vertical stack of two items.A JMP report in the right side of a display tree. The left side is a vertical stack of two items.A JMP report in the right side of a display tree. The left side is a vertical stack of two items.显示树右侧的 JMP 报告。 左侧是两个项目的垂直堆栈。
你可以使用这样的东西
dt = Open( "$sample_data/big class.jmp" );
the_report = V List Box( // use vlist for capturing, not displaying
dt << Bivariate( Y( :weight ), X( :height ), Fit Line )
);
logo = Icon Box( "JMPLogo" ) << getpicture; // 262 wide by 152 tall
logo << set size( {93, 48} );
New Window( "test the logo",
Border Box( Left( 10 ), top( 10 ),
H List Box(
V List Box(
Picture Box( logo ),
Text Box( "Company Name " )
),
Border Box( Left( 5 ), the_report )
)
)
);
在极少数情况下,使用 vlistbox 捕获报告会比大多数其他框更好。 报告注意到它是在 vlist 内创建的,并且没有打开自己的窗口。 我在标志样板内用左(5)添加了一点空间,并用左(10)、上(10)将标志从边缘移开。
您不必在屏幕上显示窗口并手动捕获图片。 你可以使用这个:
dt = Open( "$sample_data/big class.jmp" );
the_report = V List Box( // use vlist for capturing, not displaying
dt << Bivariate( Y( :weight ), X( :height ), Fit Line )
);
logo = Icon Box( "JMPLogo" ) << getpicture; // 262 wide by 152 tall
logo << set size( {93, 48} );
logoreport =
Border Box( Left( 10 ), top( 10 ),
H List Box(
V List Box(
Picture Box( logo ),
Text Box( "Company Name " )
),
Border Box( Left( 5 ), the_report )
)
);
logoreport<<SAVEPICTURE></SAVEPICTURE>
要得到
Saved without opening a window.Saved without opening a window.Saved without opening a window.Saved without opening a window.Saved without opening a window.Saved without opening a window.Saved without opening a window.Saved without opening a window.Saved without opening a window.Saved without opening a window.Saved without opening a window.Saved without opening a window.Saved without opening a window.Saved without opening a window.Saved without opening a window.Saved without opening a window.Saved without opening a window.Saved without opening a window.Saved without opening a window.Saved without opening a window.Saved without opening a window.Saved without opening a window.无需打开窗口即可保存。
感谢您抽出时间回复。 我从来没有想过将图标框放在图片框内。
非常感谢。
不客气! 我只是从图标中抓取图片来效仿你的例子。 它本可以直接使用图标,但那样我就无法调整它的大小了。
我正在尝试在 html 输出文件的顶部创建一个公司横幅,该文件是从日记中保存的。
我使用以下 jsl 代码:
徽标 = 打开("company_logo.png", png);
徽标 << 设置大小({93, 48});
H 列表框(
图片盒(标志),
文本框(“公司名称”)
),
我遇到的问题是文本框中的文本与图像的顶部对齐。 我需要将文本放在图像底部。
创建漂亮的报告标题的最佳方法是什么?
注意:使用 JMP 16。