<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Automatically Resize Column Widths in a results display in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Automatically-Resize-Column-Widths-in-a-results-display/m-p/773832#M95521</link>
    <description>&lt;P&gt;Thank you for your response. I am currently trying to understand how to apply these function in my situation.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2024 10:15:08 GMT</pubDate>
    <dc:creator>Yass</dc:creator>
    <dc:date>2024-07-18T10:15:08Z</dc:date>
    <item>
      <title>Automatically Resize Column Widths in a results display</title>
      <link>https://community.jmp.com/t5/Discussions/Automatically-Resize-Column-Widths-in-a-results-display/m-p/773820#M95519</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have an issue with my results display: every time I change sizes or there is a long name, the display gets deformed. Therefore, I would like to know if there is a method to automatically resize column widths.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//Variables pour la mise en page
	// l : left, r : right, t : top, b : bottom, s : sides, w : width, sf : size font
	l = 20;
	r = 20;
	t = 30;
	b = 30;
	s = 25;
	w = 150;
	sf = 25;
	pad_baie = -30;
	pad_nok = -30;
	pad_code = 170;
	pad_ref = 30;
	pad_prod = 500;

	//Création de la fenetre du top 5
	window = new Window ("TOP5",
		V List Box(
			pb = Picture Box( Open( "D:\Project JMP\Images\ldl-logo.png", png ) ),
			Border Box( Top(50),
				V List Box(
					tb1 = Text Box("Production results report of "||Format( date2, "yyyy-mm-dd" )),
					tb1 &amp;lt;&amp;lt; Set Base Font( "Title" ),
					tb1 &amp;lt;&amp;lt; Set Font Scale (3),
					tb1 &amp;lt;&amp;lt; Justify Text("Center"),
					tb1 &amp;lt;&amp;lt; Set Width(2770),
					tb1 &amp;lt;&amp;lt; Background Color(RGB Color(225, 225, 225)),
					
					tb2 = Text Box ("SVI, PY"),
					tb2 &amp;lt;&amp;lt; Justify Text("Center") &amp;lt;&amp;lt; Set Font Size(25),
					tb2 &amp;lt;&amp;lt; Set Width(2770),
					tb2 &amp;lt;&amp;lt; Background Color(RGB Color(240, 240, 240)),
				)
			),
			V List Box (
				Border Box (Top (100), Bottom(100), Left (25),
					// TOP 5 ICT
					V List Box(
						tb3 = Text Box( "Top 5 NOK results for ICT"),
						tb3 &amp;lt;&amp;lt; Set Base Font( "Title" ),
						tb3 &amp;lt;&amp;lt; Set Font Scale (2),
						H List Box(
							//Colonne Baie
							V List Box (
								b1 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t1 = Text Box ("Bay")),
								b1 &amp;lt;&amp;lt; Set Background Color(RGB Color(93, 173, 226)),
								t1 &amp;lt;&amp;lt; Set Width (w+pad_baie) &amp;lt;&amp;lt; Set Font Size (sf) &amp;lt;&amp;lt; Set Font Style ("Bold"),
								b2 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t2 = Text Box (filtered_top5_ict_baie[1])),
								b2 &amp;lt;&amp;lt; Set Background Color(RGB Color(93, 173, 226)),
								t2 &amp;lt;&amp;lt; Set Width (w+pad_baie) &amp;lt;&amp;lt; Set Font Size (sf),
								b3 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t3 = Text Box (filtered_top5_ict_baie[2])),
								b3 &amp;lt;&amp;lt; Set Background Color(RGB Color(93, 173, 226)),
								t3 &amp;lt;&amp;lt; Set Width (w+pad_baie) &amp;lt;&amp;lt; Set Font Size (sf),
								b4 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t4 = Text Box (filtered_top5_ict_baie[3])),
								b4 &amp;lt;&amp;lt; Set Background Color(RGB Color(93, 173, 226)),
								t4 &amp;lt;&amp;lt; Set Width (w+pad_baie) &amp;lt;&amp;lt; Set Font Size (sf),
								b5 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t5 = Text Box (filtered_top5_ict_baie[4])),
								b5 &amp;lt;&amp;lt; Set Background Color(RGB Color(93, 173, 226)),
								t5 &amp;lt;&amp;lt; Set Width (w+pad_baie) &amp;lt;&amp;lt; Set Font Size (sf),
								b6 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t6 = Text Box (filtered_top5_ict_baie[5])),
								b6 &amp;lt;&amp;lt; Set Background Color(RGB Color(93, 173, 226)),
								t6 &amp;lt;&amp;lt; Set Width (w+pad_baie) &amp;lt;&amp;lt; Set Font Size (sf)
							),
							//Colonne Ref. Produit
							V List Box(
								b7 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t7 = Text Box ("Product. Ref")),
								b7 &amp;lt;&amp;lt; Set Background Color(RGB Color(133, 193, 233)),
								t7 &amp;lt;&amp;lt; Set Width (w+pad_ref) &amp;lt;&amp;lt; Set Font Size (sf)&amp;lt;&amp;lt; Set Font Style ("Bold"),
								b8 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t8 = Text Box (filtered_top5_ict_ref_pdt[1])),
								b8 &amp;lt;&amp;lt; Set Background Color(RGB Color(133, 193, 233)),
								t8 &amp;lt;&amp;lt; Set Width (w+pad_ref) &amp;lt;&amp;lt; Set Font Size (sf),
								b9 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t9 = Text Box (filtered_top5_ict_ref_pdt[2])),
								b9 &amp;lt;&amp;lt; Set Background Color(RGB Color(133, 193, 233)),
								t9 &amp;lt;&amp;lt; Set Width (w+pad_ref) &amp;lt;&amp;lt; Set Font Size (sf),
								b10 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t10 = Text Box (filtered_top5_ict_ref_pdt[3])),
								b10 &amp;lt;&amp;lt; Set Background Color(RGB Color(133, 193, 233)),
								t10 &amp;lt;&amp;lt; Set Width (w+pad_ref) &amp;lt;&amp;lt; Set Font Size (sf),
								b11 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t11 = Text Box (filtered_top5_ict_ref_pdt[4])),
								b11 &amp;lt;&amp;lt; Set Background Color(RGB Color(133, 193, 233)), 
								t11 &amp;lt;&amp;lt; Set Width (w+pad_ref) &amp;lt;&amp;lt; Set Font Size (sf),
								b12 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t12 = Text Box (filtered_top5_ict_ref_pdt[5])),
								b12 &amp;lt;&amp;lt; Set Background Color(RGB Color(133, 193, 233)),
								t12 &amp;lt;&amp;lt; Set Width (w+pad_ref) &amp;lt;&amp;lt; Set Font Size (sf),
							),
							//Colonne Nb. de tests
							V List Box(
								b13 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t13 = Text Box ("Tests. Nb")),
								b13 &amp;lt;&amp;lt; Set Background Color(RGB Color(174, 214, 241)),
								t13 &amp;lt;&amp;lt; Set Width (w) &amp;lt;&amp;lt; Set Font Size (sf)&amp;lt;&amp;lt; Set Font Style ("Bold"),
								b14 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t14 = Text Box (filtered_total_ict[1])),
								b14 &amp;lt;&amp;lt; Set Background Color(RGB Color(174, 214, 241)),
								t14 &amp;lt;&amp;lt; Set Width (w) &amp;lt;&amp;lt; Set Font Size (sf),
								b15 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t15 = Text Box (filtered_total_ict[2])),
								b15 &amp;lt;&amp;lt; Set Background Color(RGB Color(174, 214, 241)),
								t15 &amp;lt;&amp;lt; Set Width (w) &amp;lt;&amp;lt; Set Font Size (sf),
								b16 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t16 = Text Box (filtered_total_ict[3])),
								b16 &amp;lt;&amp;lt; Set Background Color(RGB Color(174, 214, 241)),
								t16 &amp;lt;&amp;lt; Set Width (w) &amp;lt;&amp;lt; Set Font Size (sf),
								b17 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t17 = Text Box (filtered_total_ict[4])),
								b17 &amp;lt;&amp;lt; Set Background Color(RGB Color(174, 214, 241)),
								t17 &amp;lt;&amp;lt; Set Width (w) &amp;lt;&amp;lt; Set Font Size (sf),
								b18 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t18 = Text Box (filtered_total_ict[5])),
								b18 &amp;lt;&amp;lt; Set Background Color(RGB Color(174, 214, 241)),
								t18 &amp;lt;&amp;lt; Set Width (w) &amp;lt;&amp;lt; Set Font Size (sf),
							),
							//Colonne %NOK
							V List Box (
								b19 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t19 = Text Box ("%NOK")),
								b19 &amp;lt;&amp;lt; Set Background Color(RGB Color(214, 234, 248)),
								t19 &amp;lt;&amp;lt; Set Width (w+pad_nok) &amp;lt;&amp;lt; Set Font Size (sf)&amp;lt;&amp;lt; Set Font Style ("Bold"),
								b20 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t20 = Text Box (Substr(Char(filtered_top5_ict_nb[1]), 1, 4))),
								b20 &amp;lt;&amp;lt; Set Background Color(RGB Color(214, 234, 248)),
								t20 &amp;lt;&amp;lt; Set Width (w+pad_nok) &amp;lt;&amp;lt; Set Font Size (sf),
								b21 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t21 = Text Box (Substr(Char(filtered_top5_ict_nb[2]), 1, 4))),	
								b21 &amp;lt;&amp;lt; Set Background Color(RGB Color(214, 234, 248)),
								t21 &amp;lt;&amp;lt; Set Width (w+pad_nok) &amp;lt;&amp;lt; Set Font Size (sf),
								b22 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t22 = Text Box (Substr(Char(filtered_top5_ict_nb[3]), 1, 4))),
								b22 &amp;lt;&amp;lt; Set Background Color(RGB Color(214, 234, 248)),
								t22 &amp;lt;&amp;lt; Set Width (w+pad_nok) &amp;lt;&amp;lt; Set Font Size (sf),
								b23 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t23 = Text Box (Substr(Char(filtered_top5_ict_nb[4]), 1, 4))),
								b23 &amp;lt;&amp;lt; Set Background Color(RGB Color(214, 234, 248)),
								t23 &amp;lt;&amp;lt; Set Width (w+pad_nok) &amp;lt;&amp;lt; Set Font Size (sf),
								b24 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t24 = Text Box (Substr(Char(filtered_top5_ict_nb[5]), 1, 4))),
								b24 &amp;lt;&amp;lt; Set Background Color(RGB Color(214, 234, 248)),
								t24 &amp;lt;&amp;lt; Set Width (w+pad_nok) &amp;lt;&amp;lt; Set Font Size (sf),
							),
							//Colonne Code Erreur (nb. NOK)
							V List Box (
								b25 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t25 = Text Box ("Error Code (NOK. nb)")),
								b25 &amp;lt;&amp;lt; Set Background Color(RGB Color(235, 245, 251)),
								t25 &amp;lt;&amp;lt; Set Width (w+pad_code) &amp;lt;&amp;lt; Set Font Size (sf)&amp;lt;&amp;lt; Set Font Style ("Bold"),
								b26 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t26 = Text Box (filtered_top5_code_ict[1])),
								b26 &amp;lt;&amp;lt; Set Background Color(RGB Color(235, 245, 251)),
								t26 &amp;lt;&amp;lt; Set Width (w+pad_code) &amp;lt;&amp;lt; Set Font Size (sf),
								b27 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t27 = Text Box (filtered_top5_code_ict[2])),	
								b27 &amp;lt;&amp;lt; Set Background Color(RGB Color(235, 245, 251)),
								t27 &amp;lt;&amp;lt; Set Width (w+pad_code) &amp;lt;&amp;lt; Set Font Size (sf),
								b28 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t28 = Text Box (filtered_top5_code_ict[3])),
								b28 &amp;lt;&amp;lt; Set Background Color(RGB Color(235, 245, 251)),
								t28 &amp;lt;&amp;lt; Set Width (w+pad_code) &amp;lt;&amp;lt; Set Font Size (sf),
								b29 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t29 = Text Box (filtered_top5_code_ict[4])),
								b29 &amp;lt;&amp;lt; Set Background Color(RGB Color(235, 245, 251)),
								t29 &amp;lt;&amp;lt; Set Width (w+pad_code) &amp;lt;&amp;lt; Set Font Size (sf),
								b30 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t30 = Text Box (filtered_top5_code_ict[5])),
								b30 &amp;lt;&amp;lt; Set Background Color(RGB Color(235, 245, 251)),
								t30 &amp;lt;&amp;lt; Set Width (w+pad_code) &amp;lt;&amp;lt; Set Font Size (sf),
							),
							//Colonne Product Name (Prod. Name)
							V List Box (
								bpnt = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), tbpnt = Text Box ("Prod. Name")),
								bpnt &amp;lt;&amp;lt; Set Background Color(RGB Color(235, 245, 251)),
								tbpnt &amp;lt;&amp;lt; Set Width (w+pad_prod) &amp;lt;&amp;lt; Set Font Size (sf)&amp;lt;&amp;lt; Set Font Style ("Bold"),
								bpnt1 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), tbpnt1 = Text Box (filtered_top5_ict_prd_name[1])),
								bpnt1 &amp;lt;&amp;lt; Set Background Color(RGB Color(235, 245, 251)),
								tbpnt1 &amp;lt;&amp;lt; Set Width (w+pad_prod) &amp;lt;&amp;lt; Set Font Size (sf),
								bpnt2 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), tbpnt2 = Text Box (filtered_top5_ict_prd_name[2])),	
								bpnt2 &amp;lt;&amp;lt; Set Background Color(RGB Color(235, 245, 251)),
								tbpnt2 &amp;lt;&amp;lt; Set Width (w+pad_prod) &amp;lt;&amp;lt; Set Font Size (sf),
								bpnt3 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), tbpnt3 = Text Box (filtered_top5_ict_prd_name[3])),
								bpnt3 &amp;lt;&amp;lt; Set Background Color(RGB Color(235, 245, 251)),
								tbpnt3 &amp;lt;&amp;lt; Set Width (w+pad_prod) &amp;lt;&amp;lt; Set Font Size (sf),
								bpnt4 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), tbpnt4 = Text Box (filtered_top5_ict_prd_name[4])),
								bpnt4 &amp;lt;&amp;lt; Set Background Color(RGB Color(235, 245, 251)),
								tbpnt4 &amp;lt;&amp;lt; Set Width (w+pad_prod) &amp;lt;&amp;lt; Set Font Size (sf),
								bpnt5 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), tbpnt5 = Text Box (filtered_top5_ict_prd_name[5])),
								bpnt5 &amp;lt;&amp;lt; Set Background Color(RGB Color(235, 245, 251)),
								tbpnt5 &amp;lt;&amp;lt; Set Width (w+pad_prod) &amp;lt;&amp;lt; Set Font Size (sf),
							)
						)
					)
				),

				

				Border Box(Left(25), Top(50), Bottom(200),
					//TOP 5 FCT
					V List Box(
						tb4 = Text Box( "Top 5 NOK results for FCT"),
						tb4 &amp;lt;&amp;lt; Set Base Font( "Title" ),
						tb4 &amp;lt;&amp;lt; Set Font Scale (2),
						H List Box(
							//Colonne Baie
							V List Box (
								b25b = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t25b = Text Box ("Bay")),
								b25b &amp;lt;&amp;lt; Set Background Color(RGB Color(245, 176, 65)),
								t25b &amp;lt;&amp;lt; Set Width (w+pad_baie) &amp;lt;&amp;lt; Set Font Size (sf)&amp;lt;&amp;lt; Set Font Style ("Bold"),
								b26b = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t26b = Text Box (filtered_top5_fct_baie[1])),
								b26b &amp;lt;&amp;lt; Set Background Color(RGB Color(245, 176, 65)),
								t26b &amp;lt;&amp;lt; Set Width (w+pad_baie) &amp;lt;&amp;lt; Set Font Size (sf),
								b27b = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t27b = Text Box (filtered_top5_fct_baie[2])),
								b27b&amp;lt;&amp;lt; Set Background Color(RGB Color(245, 176, 65)),
								t27b &amp;lt;&amp;lt; Set Width (w+pad_baie) &amp;lt;&amp;lt; Set Font Size (sf),
								b28b = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t28b = Text Box (filtered_top5_fct_baie[3])),
								b28b &amp;lt;&amp;lt; Set Background Color(RGB Color(245, 176, 65)),
								t28b &amp;lt;&amp;lt; Set Width (w+pad_baie) &amp;lt;&amp;lt; Set Font Size (sf),
								b29b = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t29b = Text Box (filtered_top5_fct_baie[4])),
								b29b &amp;lt;&amp;lt; Set Background Color(RGB Color(245, 176, 65)),
								t29b &amp;lt;&amp;lt; Set Width (w+pad_baie) &amp;lt;&amp;lt; Set Font Size (sf),
								b30b = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t30b = Text Box (filtered_top5_fct_baie[5])),
								b30b &amp;lt;&amp;lt; Set Background Color(RGB Color(245, 176, 65)),
								t30b &amp;lt;&amp;lt; Set Width (w+pad_baie) &amp;lt;&amp;lt; Set Font Size (sf)
							),
							//Colonne Ref. Produit
							V List Box(
								b31 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t31 = Text Box ("Product. Ref")),
								b31 &amp;lt;&amp;lt; Set Background Color(RGB Color(248, 196, 113)),
								t31 &amp;lt;&amp;lt; Set Width (w+pad_ref) &amp;lt;&amp;lt; Set Font Size (sf)&amp;lt;&amp;lt; Set Font Style ("Bold"),
								b32 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t32 = Text Box (filtered_top5_fct_ref_pdt[1])),
								b32 &amp;lt;&amp;lt; Set Background Color(RGB Color(248, 196, 113)),
								t32 &amp;lt;&amp;lt; Set Width (w+pad_ref) &amp;lt;&amp;lt; Set Font Size (sf),
								b33 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t33 = Text Box (filtered_top5_fct_ref_pdt[2])),
								b33 &amp;lt;&amp;lt; Set Background Color(RGB Color(248, 196, 113)),
								t33 &amp;lt;&amp;lt; Set Width (w+pad_ref) &amp;lt;&amp;lt; Set Font Size (sf),
								b34 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t34 = Text Box (filtered_top5_fct_ref_pdt[3])),
								b34 &amp;lt;&amp;lt; Set Background Color(RGB Color(248, 196, 113)),
								t34 &amp;lt;&amp;lt; Set Width (w+pad_ref) &amp;lt;&amp;lt; Set Font Size (sf),
								b35 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t35 = Text Box (filtered_top5_fct_ref_pdt[4])),
								b35 &amp;lt;&amp;lt; Set Background Color(RGB Color(248, 196, 113)), 
								t35 &amp;lt;&amp;lt; Set Width (w+pad_ref) &amp;lt;&amp;lt; Set Font Size (sf),
								b36 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t36 = Text Box (filtered_top5_fct_ref_pdt[5])),
								b36 &amp;lt;&amp;lt; Set Background Color(RGB Color(248, 196, 113)),
								t36 &amp;lt;&amp;lt; Set Width (w+pad_ref) &amp;lt;&amp;lt; Set Font Size (sf),
							),
							//Colonne Nb. de tests
							V List Box(
								b37 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t37 = Text Box ("Tests. Nb")),
								b37 &amp;lt;&amp;lt; Set Background Color(RGB Color(250, 215, 160)),
								t37 &amp;lt;&amp;lt; Set Width (w) &amp;lt;&amp;lt; Set Font Size (sf)&amp;lt;&amp;lt; Set Font Style ("Bold"),
								b38 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t38 = Text Box (filtered_total_fct[1])),
								b38 &amp;lt;&amp;lt; Set Background Color(RGB Color(250, 215, 160)),
								t38 &amp;lt;&amp;lt; Set Width (w) &amp;lt;&amp;lt; Set Font Size (sf),
								b39 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t39 = Text Box (filtered_total_fct[2])),
								b39 &amp;lt;&amp;lt; Set Background Color(RGB Color(250, 215, 160)),
								t39 &amp;lt;&amp;lt; Set Width (w) &amp;lt;&amp;lt; Set Font Size (sf),
								b40 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t40 = Text Box (filtered_total_fct[3])),
								b40 &amp;lt;&amp;lt; Set Background Color(RGB Color(250, 215, 160)),
								t40 &amp;lt;&amp;lt; Set Width (w) &amp;lt;&amp;lt; Set Font Size (sf),
								b41 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t41 = Text Box (filtered_total_fct[4])),
								b41 &amp;lt;&amp;lt; Set Background Color(RGB Color(250, 215, 160)),
								t41 &amp;lt;&amp;lt; Set Width (w) &amp;lt;&amp;lt; Set Font Size (sf),
								b42 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t42 = Text Box (filtered_total_fct[5])),
								b42 &amp;lt;&amp;lt; Set Background Color(RGB Color(250, 215, 160)),
								t42 &amp;lt;&amp;lt; Set Width (w) &amp;lt;&amp;lt; Set Font Size (sf),
							),
							//Colonne %NOK
							V List Box (
								b43 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t43 = Text Box ("%NOK")),
								b43 &amp;lt;&amp;lt; Set Background Color(RGB Color(253, 235, 208)),
								t43 &amp;lt;&amp;lt; Set Width (w+pad_nok) &amp;lt;&amp;lt; Set Font Size (sf)&amp;lt;&amp;lt; Set Font Style ("Bold"),
								b44 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t44 = Text Box (Substr(Char(filtered_top5_fct_nb[1]), 1, 4))),
								b44 &amp;lt;&amp;lt; Set Background Color(RGB Color(253, 235, 208)),
								t44 &amp;lt;&amp;lt; Set Width (w+pad_nok) &amp;lt;&amp;lt; Set Font Size (sf),
								b45 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t45 = Text Box (Substr(Char(filtered_top5_fct_nb[2]), 1, 4))),	
								b45 &amp;lt;&amp;lt; Set Background Color(RGB Color(253, 235, 208)),
								t45 &amp;lt;&amp;lt; Set Width (w+pad_nok) &amp;lt;&amp;lt; Set Font Size (sf),
								b46 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t46 = Text Box (Substr(Char(filtered_top5_fct_nb[3]), 1, 4))),
								b46 &amp;lt;&amp;lt; Set Background Color(RGB Color(253, 235, 208)),
								t46 &amp;lt;&amp;lt; Set Width (w+pad_nok) &amp;lt;&amp;lt; Set Font Size (sf),
								b47 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t47 = Text Box (Substr(Char(filtered_top5_fct_nb[4]), 1, 4))),
								b47 &amp;lt;&amp;lt; Set Background Color(RGB Color(253, 235, 208)),
								t47 &amp;lt;&amp;lt; Set Width (w+pad_nok) &amp;lt;&amp;lt; Set Font Size (sf),
								b48 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t48 = Text Box (Substr(Char(filtered_top5_fct_nb[5]), 1, 4))),
								b48 &amp;lt;&amp;lt; Set Background Color(RGB Color(253, 235, 208)),
								t48 &amp;lt;&amp;lt; Set Width (w+pad_nok) &amp;lt;&amp;lt; Set Font Size (sf),
							),
							//Colonne Code Erreur (nb. NOK)
							V List Box(
								b49 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t49 = Text Box ("Error Code (NOK. nb)")),
								b49 &amp;lt;&amp;lt; Set Background Color(RGB Color(254, 245, 231)),
								t49 &amp;lt;&amp;lt; Set Width (w+pad_code) &amp;lt;&amp;lt; Set Font Size (sf)&amp;lt;&amp;lt; Set Font Style ("Bold"),
								b50 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t50 = Text Box (filtered_top5_code_fct[1])),
								b50 &amp;lt;&amp;lt; Set Background Color(RGB Color(254, 245, 231)),
								t50 &amp;lt;&amp;lt; Set Width (w+pad_code) &amp;lt;&amp;lt; Set Font Size (sf),
								b51 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t51 = Text Box (filtered_top5_code_fct[2])),
								b51 &amp;lt;&amp;lt; Set Background Color(RGB Color(254, 245, 231)),
								t51 &amp;lt;&amp;lt; Set Width (w+pad_code) &amp;lt;&amp;lt; Set Font Size (sf),
								b52 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t52 = Text Box (filtered_top5_code_fct[3])),
								b52 &amp;lt;&amp;lt; Set Background Color(RGB Color(254, 245, 231)),
								t52 &amp;lt;&amp;lt; Set Width (w+pad_code) &amp;lt;&amp;lt; Set Font Size (sf),
								b53 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t53 = Text Box (filtered_top5_code_fct[4])),
								b53 &amp;lt;&amp;lt; Set Background Color(RGB Color(254, 245, 231)),
								t53 &amp;lt;&amp;lt; Set Width (w+pad_code) &amp;lt;&amp;lt; Set Font Size (sf),
								b54 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), t54 = Text Box (filtered_top5_code_fct[5])),
								b54 &amp;lt;&amp;lt; Set Background Color(RGB Color(254, 245, 231)),
								t54 &amp;lt;&amp;lt; Set Width (w+pad_code) &amp;lt;&amp;lt; Set Font Size (sf),
							),
							V List Box (
								bpnt6 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), tbpnt6 = Text Box ("Prod. Name")),
								bpnt6 &amp;lt;&amp;lt; Set Background Color(RGB Color(254, 245, 231)),
								tbpnt6 &amp;lt;&amp;lt; Set Width (w+pad_prod) &amp;lt;&amp;lt; Set Font Size (sf)&amp;lt;&amp;lt; Set Font Style ("Bold"),
								bpnt7 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), tbpnt7 = Text Box (filtered_top5_fct_prd_name[1])),
								bpnt7 &amp;lt;&amp;lt; Set Background Color(RGB Color(254, 245, 231)),
								tbpnt7 &amp;lt;&amp;lt; Set Width (w+pad_prod) &amp;lt;&amp;lt; Set Font Size (sf),
								bpnt8 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), tbpnt8 = Text Box (filtered_top5_fct_prd_name[2])),	
								bpnt8 &amp;lt;&amp;lt; Set Background Color(RGB Color(254, 245, 231)),
								tbpnt8 &amp;lt;&amp;lt; Set Width (w+pad_prod) &amp;lt;&amp;lt; Set Font Size (sf),
								bpnt9 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), tbpnt9 = Text Box (filtered_top5_fct_prd_name[3])),
								bpnt9 &amp;lt;&amp;lt; Set Background Color(RGB Color(254, 245, 231)),
								tbpnt9 &amp;lt;&amp;lt; Set Width (w+pad_prod) &amp;lt;&amp;lt; Set Font Size (sf),
								bpnt10 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), tbpnt10 = Text Box (filtered_top5_fct_prd_name[4])),
								bpnt10 &amp;lt;&amp;lt; Set Background Color(RGB Color(254, 245, 231)),
								tbpnt10 &amp;lt;&amp;lt; Set Width (w+pad_prod) &amp;lt;&amp;lt; Set Font Size (sf),
								bpnt11 = Border Box( Left( l ), Right( r ), Top( t ), Bottom( b ), Sides( s ), tbpnt11 = Text Box (filtered_top5_fct_prd_name[5])),
								bpnt11 &amp;lt;&amp;lt; Set Background Color(RGB Color(254, 245, 231)),
								tbpnt11 &amp;lt;&amp;lt; Set Width (w+pad_prod) &amp;lt;&amp;lt; Set Font Size (sf),
							)
						)
					)
				)
			)
		)
	);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Jul 2024 08:37:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automatically-Resize-Column-Widths-in-a-results-display/m-p/773820#M95519</guid>
      <dc:creator>Yass</dc:creator>
      <dc:date>2024-07-18T08:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Resize Column Widths in a results display</title>
      <link>https://community.jmp.com/t5/Discussions/Automatically-Resize-Column-Widths-in-a-results-display/m-p/773830#M95520</link>
      <description>&lt;P&gt;I would suggest you check out &lt;A href="https://www.jmp.com/support/help/en/18.0/#page/jmp/differences-between-new-window-and-the-deprecated-dialog.shtml#ww741685" target="_blank" rel="noopener"&gt;Lineup Box()&lt;/A&gt;&amp;nbsp;as it can make stuff like this much easier.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 08:39:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automatically-Resize-Column-Widths-in-a-results-display/m-p/773830#M95520</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-18T08:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Resize Column Widths in a results display</title>
      <link>https://community.jmp.com/t5/Discussions/Automatically-Resize-Column-Widths-in-a-results-display/m-p/773832#M95521</link>
      <description>&lt;P&gt;Thank you for your response. I am currently trying to understand how to apply these function in my situation.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 10:15:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automatically-Resize-Column-Widths-in-a-results-display/m-p/773832#M95521</guid>
      <dc:creator>Yass</dc:creator>
      <dc:date>2024-07-18T10:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Resize Column Widths in a results display</title>
      <link>https://community.jmp.com/t5/Discussions/Automatically-Resize-Column-Widths-in-a-results-display/m-p/773841#M95522</link>
      <description>&lt;P&gt;Other option could be to utilize Table Box() with Col Box(). Then inside Col Box() you can use Text Boxes (I would suggest using String Col Box() but it most likely isn't flexible enough for your use).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below are few very quickly created examples&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

nw = New Window("A",
	V List Box(
		Text Box("Title1", &amp;lt;&amp;lt; Set Font Style("Italic")),
		tb = Table Box(
			cb1 = Col Box("Bay", {}),
			cb2 = Col Box("Product. Ref", {}),
			cb3 = Col Box("Tests", {}),
		),
		Spacer Box(Size(0, 100)),
		Text Box("Title2", &amp;lt;&amp;lt; Set Font Style("Italic")),
		lub = Lineup Box(N Col(3), 
			Text Box("Bay"),
			Text Box("Product. Ref"),
			Text Box("Tests")
		)
	)
);


cb1 &amp;lt;&amp;lt; Background Color("Red");
cb1 &amp;lt;&amp;lt; Append(Text Box("21025"));
cb1 &amp;lt;&amp;lt; Append(Text Box("21025"));
cb1 &amp;lt;&amp;lt; Append(Text Box("21025"));

cb2 &amp;lt;&amp;lt; Background Color("Green");
cb2 &amp;lt;&amp;lt; Append(Text Box("AAA"));
cb2 &amp;lt;&amp;lt; Append(Text Box("BBB"));
cb2 &amp;lt;&amp;lt; Append(Text Box("CCC"));

cb3 &amp;lt;&amp;lt; Background Color("Blue");
cb3 &amp;lt;&amp;lt; Append(Text Box("AAAAAAAAAAAAAAAAAAA"));
cb3 &amp;lt;&amp;lt; Append(Text Box("BBBBBBBBBBBBBBBBBBB"));
cb3 &amp;lt;&amp;lt; Append(Text Box("CCCCCCCCCCCCCCCCCCC"));


lub &amp;lt;&amp;lt; Append(Text Box("21025"));
lub &amp;lt;&amp;lt; Append(Text Box("AAA"));
lub &amp;lt;&amp;lt; Append(Text Box("AAAAAAAAAAAAAAAAAAA"));
lub &amp;lt;&amp;lt; Append(Text Box("21025"));
lub &amp;lt;&amp;lt; Append(Text Box("BBB"));
lub &amp;lt;&amp;lt; Append(Text Box("BBBBBBBBBBBBBBBBBBB"));
lub &amp;lt;&amp;lt; Append(Text Box("21025"));
lub &amp;lt;&amp;lt; Append(Text Box("CCC"));
lub &amp;lt;&amp;lt; Append(Text Box("CCCCCCCCCCCCCCCCCCC"));

tbs = lub &amp;lt;&amp;lt; XPath("//TextBox");

tbs[1::N ITems(tbs)::3] &amp;lt;&amp;lt; Background Color("Red");
tbs[2::N ITems(tbs)::3] &amp;lt;&amp;lt; Background Color("Green");
tbs[3::N ITems(tbs)::3] &amp;lt;&amp;lt; Background Color("Blue");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1721305843160.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66288i45D29BEE9521C39A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1721305843160.png" alt="jthi_0-1721305843160.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 12:31:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automatically-Resize-Column-Widths-in-a-results-display/m-p/773841#M95522</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-18T12:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Resize Column Widths in a results display</title>
      <link>https://community.jmp.com/t5/Discussions/Automatically-Resize-Column-Widths-in-a-results-display/m-p/773842#M95523</link>
      <description>&lt;P&gt;And then there are spacer boxes which you can use to force widths/heights/spacing. and many more options but it depends in the end what type of report you wish to have. To your existing code, implementing Spacer Boxes might be the easiest solution.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 12:45:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automatically-Resize-Column-Widths-in-a-results-display/m-p/773842#M95523</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-18T12:45:09Z</dc:date>
    </item>
  </channel>
</rss>

