HListBox a un paramètre facultatif pour ajuster l'alignement horizontal des boîtes enfants.Essayer
logo = open("company_logo.png", png);
logo << set size({93, 48});
H List Box(
Align("Bottom"),
Picture Box(logo),
Text Box( "Company Name " )
)Si vous voulez quelque chose comme ça
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 rapport JMP dans la partie droite d'une arborescence d'affichage. Le côté gauche est une pile verticale de deux éléments.
Vous pourriez utiliser quelque chose comme ça
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 )
)
)
);
L'utilisation d'une vlistbox pour capturer le rapport fonctionnera mieux que la plupart des autres boîtes dans de rares cas. Le rapport remarque qu'il est créé à l'intérieur de la vlist et n'ouvre pas sa propre fenêtre. J'ai ajouté un peu d'espace avec left(5) à l'intérieur de la plaque chauffante du logo et j'ai éloigné le logo du bord avec left(10), top(10).
Vous n'avez pas besoin d'afficher la fenêtre à l'écran et de capturer manuellement l'image. Vous pouvez utiliser ceci :
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>
Pour obtenir
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.Enregistré sans ouvrir de fenêtre.
Merci de prendre le temps de répondre. Je n'ai jamais pensé à mettre une Icon Box dans une Picture Box.
Merci beaucoup.
Je t'en prie! Je prenais juste l'image de l'icône pour suivre votre exemple. Il aurait pu utiliser l'icône directement, mais je n'aurais pas pu la dimensionner.
J'essaie de créer une bannière d'entreprise en haut de mon fichier de sortie html, qui est enregistré à partir d'un journal.
J'utilise le code jsl suivant :
logo = open("logo_entreprise.png", png);
logo << définir la taille ({93, 48});
H Zone de liste(
Boîte d'image (logo),
Zone de texte( "Nom de l'entreprise")
),
Le problème que j'ai eu est que le texte à l'intérieur de la zone de texte est aligné sur le haut de l'image. J'ai besoin d'obtenir le texte assis au bas de l'image.
Quelle serait la meilleure façon de créer un joli en-tête de rapport.
Remarque : en utilisant JMP 16.