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.顯示樹右側的 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.無需打開窗口即可保存。
感謝您抽出時間回复。 我從來沒有想過將圖標框放在圖片框內。
非常感謝。
不客氣! 我只是從圖標中抓取圖片來效仿你的例子。 它本可以直接使用圖標,但那樣我就無法調整它的大小了。
我正在嘗試在 html 輸出文件的頂部創建一個公司橫幅,該文件是從日記中保存的。
我使用以下 jsl 代碼:
徽標 = open("company_logo.png", png);
徽標 << 設置大小({93, 48});
H 列錶框(
圖片盒(標誌),
文本框(“公司名稱”)
),
我遇到的問題是文本框中的文本與圖像的頂部對齊。 我需要將文本放在圖像底部。
創建漂亮的報告標題的最佳方法是什麼?
注意:使用 JMP 16。