HListBox tiene un parámetro opcional para ajustar la alineación horizontal de los cuadros secundarios.Probar
logo = open("company_logo.png", png);
logo << set size({93, 48});
H List Box(
Align("Bottom"),
Picture Box(logo),
Text Box( "Company Name " )
)Si quieres algo como esto
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.Un informe JMP en el lado derecho de un árbol de visualización. El lado izquierdo es una pila vertical de dos elementos.
Podrías usar algo como esto
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 )
)
)
);
El uso de un vlistbox para capturar el informe funcionará mejor que la mayoría de los otros cuadros en algunos casos excepcionales. El informe nota que se está creando dentro de la lista virtual y no abre su propia ventana. Agregué un pequeño espacio con la izquierda (5) dentro de la placa de la caldera del logotipo y alejé el logotipo del borde con la izquierda (10), la parte superior (10).
No tiene que mostrar la ventana en la pantalla y capturar manualmente la imagen. Podrías usar esto:
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>
Llegar
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.Guardado sin abrir una ventana.
Gracias por tomarse el tiempo para responder. Nunca pensé en poner un Icon Box dentro de un Picture Box.
Muchas gracias.
¡De nada! Solo estaba tomando la imagen del ícono para seguir tu ejemplo. Podría haber usado el ícono directamente, pero entonces no habría podido cambiar su tamaño.
Estoy tratando de crear un banner de empresa en la parte superior de mi archivo de salida html, que se guarda desde un diario.
Yo uso el siguiente código jsl:
logotipo = abrir("logo_empresa.png", png);
logotipo << establecer tamaño ({93, 48});
Cuadro de lista H(
Cuadro de imagen (logotipo),
Cuadro de texto ("Nombre de la empresa")
),
El problema que tengo es que el texto dentro del cuadro de texto está alineado con la parte superior de la imagen. Necesito colocar el texto en la parte inferior de la imagen.
¿Cuál sería la mejor manera de crear un buen encabezado de informe?
Nota: utilizando JMP 16.