<?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: Indentation of COLBOX text in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Indentation-of-COLBOX-text/m-p/46598#M26556</link>
    <description>&lt;P&gt;you can add an H List Box() and Spacer Box() in front of each Text Box() in the ColBox().&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="spacer.PNG" style="width: 317px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8176iA1DDD998FF0AFE34/image-size/large?v=v2&amp;amp;px=999" role="button" title="spacer.PNG" alt="spacer.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = New Window( "Test Col Box Justification",
	tb = Table Box(
		cb = Col Box(
			"Status",
			i1 = Icon Box( "Go" ),
			i2 = Icon Box( "DebuggerRunWithoutBreakpoints" ),
			i3 = Icon Box( "Locked" ),
			i4 = Icon Box( "WinRelaunchAnalysis" ),
			i5 = Icon Box( "Excluded" ),
			i6 = Icon Box( "SASTableMeta" ),
			i7 = Icon Box( "ColStack" ),
			i8 = Icon Box( "DataTableBox" ),
			i9 = Icon Box( "WinFileNewDT" ),
			i10 = Icon Box( "SASExportData" ),

		), 
		
		sb = String Col Box( "Icon Name",
			{"Go", "DebuggerRunWithoutBreakpoints", "Locked", "WinRelaunchAnalysis", "Excluded",
			"SASTableMeta", "ColStack", "DataTableBox", "WinFileNewDT", "SASExportData"}
		),
		tcb = Col Box(
			"Sample Text",
			H List Box( Spacer Box( size( 5, 0 ) ), t1 = Text Box( "The" ) ),
			t2 = Text Box( "quick" ),
			t3 = Text Box( "red" ),
			t4 = Text Box( "fox" ),
			t5 = Text Box( "jumped" ),
			t6 = Text Box( "over" ),
			t7 = Text Box( "the" ),
			t8 = Text Box( "oak" ),
			t9 = Text Box( "brown" ),
			t10 = Text Box( "log" ),

		),

	)
);

t1 &amp;lt;&amp;lt; font color( 51 ) &amp;lt;&amp;lt; Set Font Style( "Bold" ) &amp;lt;&amp;lt; background color( 73 );
t3 &amp;lt;&amp;lt; font color( 51 );
t9 &amp;lt;&amp;lt; font color( 54 );
tb &amp;lt;&amp;lt; set underline headings( 1 ) &amp;lt;&amp;lt; set column borders( 1 ) &amp;lt;&amp;lt; set row borders( 1 ) &amp;lt;&amp;lt;
set shade alternate rows( 1 );
i1 &amp;lt;&amp;lt; Padding( Left( 10 ) );
i2 &amp;lt;&amp;lt; Padding( Left( 10 ) );
i3 &amp;lt;&amp;lt; Padding( Left( 10 ) );
i4 &amp;lt;&amp;lt; Padding( Left( 10 ) );
i5 &amp;lt;&amp;lt; Padding( Left( 10 ) );
i6 &amp;lt;&amp;lt; Padding( Left( 10 ) );
i7 &amp;lt;&amp;lt; Padding( Left( 10 ) );
i8 &amp;lt;&amp;lt; Padding( Left( 10 ) );
i9 &amp;lt;&amp;lt; Padding( Left( 10 ) );
i10 &amp;lt;&amp;lt; Padding( Left( 10 ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 31 Oct 2017 19:10:37 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2017-10-31T19:10:37Z</dc:date>
    <item>
      <title>Indentation of COLBOX text</title>
      <link>https://community.jmp.com/t5/Discussions/Indentation-of-COLBOX-text/m-p/46592#M26553</link>
      <description>&lt;P&gt;I'm using colboxes inside of a tablebox.&amp;nbsp; The colboxes contain a set of text boxes, which allows me to control the foreground and background color as well as bolding of the text.&amp;nbsp; The problem is that the text is too close to the left side of it's column.&amp;nbsp; Here's an example where the first column is a colbox containing icon boxes, the second a stringcolbox, and the third one a colbox containing textboxes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="colbox justification.png" style="width: 361px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8173i29624A7C8CFF79AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="colbox justification.png" alt="colbox justification.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I was able to move the icon boxes in the &lt;STRONG&gt;Status&lt;/STRONG&gt; column over using &lt;STRONG&gt;&amp;lt;&amp;lt; padding(left10))&lt;/STRONG&gt;, but short of adding a leading space or two to the &lt;STRONG&gt;Sample Text&lt;/STRONG&gt; column I don't know how to move it to the right a bit.&amp;nbsp; The &lt;STRONG&gt;Icon Name&lt;/STRONG&gt; column is OK, as it's a stringcolbox.&amp;nbsp; Here's the code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = new window("Test Col Box Justification",
	tb = table box(
		cb = col box("Status",
			i1 = icon box("Go"),
			i2 = icon box("DebuggerRunWithoutBreakpoints"),
			i3 = icon box("Locked"),
			i4 = icon box("WinRelaunchAnalysis"),
			i5 = icon box("Excluded"),
			i6 = icon box("SASTableMeta"),
			i7 = icon box("ColStack"),
			i8 = icon box("DataTableBox"),
			i9 = icon box("WinFileNewDT"),
			i10 = icon box("SASExportData"),
		),
		sb = string col box("Icon Name", {"Go", "DebuggerRunWithoutBreakpoints", 
			"Locked", "WinRelaunchAnalysis", "Excluded", "SASTableMeta", "ColStack", 
			"DataTableBox", "WinFileNewDT", "SASExportData"}),
		tcb = col box("Sample Text",
			t1 = text box("The"),
			t2 = text box("quick"),
			t3 = text box("red"),
			t4 = text box("fox"),
			t5 = text box("jumped"),
			t6 = text box("over"),
			t7 = text box("the"),
			t8 = text box("oak"),
			t9 = text box("brown"),
			t10 = text box("log"),
		),
	)
);

t1 &amp;lt;&amp;lt; font color(51) &amp;lt;&amp;lt; Set Font Style("Bold") &amp;lt;&amp;lt; background color(73);
t3 &amp;lt;&amp;lt; font color(51);
t9 &amp;lt;&amp;lt; font color(54);
tb &amp;lt;&amp;lt; set underline headings(1) &amp;lt;&amp;lt; set column borders(1) &amp;lt;&amp;lt; set row borders(1) &amp;lt;&amp;lt; set shade alternate rows(1);
i1 &amp;lt;&amp;lt; Padding( Left( 10 ));		i2 &amp;lt;&amp;lt; Padding( Left( 10 ));
i3 &amp;lt;&amp;lt; Padding( Left( 10 ));		i4 &amp;lt;&amp;lt; Padding( Left( 10 ));
i5 &amp;lt;&amp;lt; Padding( Left( 10 ));		i6 &amp;lt;&amp;lt; Padding( Left( 10 ));
i7 &amp;lt;&amp;lt; Padding( Left( 10 ));		i8 &amp;lt;&amp;lt; Padding( Left( 10 ));
i9 &amp;lt;&amp;lt; Padding( Left( 10 ));		i10 &amp;lt;&amp;lt; Padding( Left( 10 ));
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Oct 2017 18:41:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Indentation-of-COLBOX-text/m-p/46592#M26553</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2017-10-31T18:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Indentation of COLBOX text</title>
      <link>https://community.jmp.com/t5/Discussions/Indentation-of-COLBOX-text/m-p/46595#M26555</link>
      <description>&lt;P&gt;I would do this by putting a BorderBox around each of the Text Boxes. I have updated your example to use a function to generate the BorderBox containing a TextBox and has a left padding of 10.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;borderedText = Function( {txt},
	Border Box( Left( 10 ), Text Box( txt ) )
);

nw = new window("Test Col Box Justification",
	tb = table box(
		cb = col box("Status",
			i1 = icon box("Go"),
			i2 = icon box("DebuggerRunWithoutBreakpoints"),
			i3 = icon box("Locked"),
			i4 = icon box("WinRelaunchAnalysis"),
			i5 = icon box("Excluded"),
			i6 = icon box("SASTableMeta"),
			i7 = icon box("ColStack"),
			i8 = icon box("DataTableBox"),
			i9 = icon box("WinFileNewDT"),
			i10 = icon box("SASExportData"),
		),
		sb = string col box("Icon Name", {"Go", "DebuggerRunWithoutBreakpoints", 
			"Locked", "WinRelaunchAnalysis", "Excluded", "SASTableMeta", "ColStack", 
			"DataTableBox", "WinFileNewDT", "SASExportData"}),
		tcb = col box("Sample Text",
			t1 = borderedText("The"),
			t2 = borderedText("quick"),
			t3 = borderedText("red"),
			t4 = borderedText("fox"),
			t5 = borderedText("jumped"),
			t6 = borderedText("over"),
			t7 = borderedText("the"),
			t8 = borderedText("oak"),
			t9 = borderedText("brown"),
			t10 = borderedText("log"),
		),
	)
);

t1 &amp;lt;&amp;lt; background color(73);
t1[Text Box(1)] &amp;lt;&amp;lt; font color(51) &amp;lt;&amp;lt; Set Font Style("Bold");
t3[Text Box(1)] &amp;lt;&amp;lt; font color(51);
t9[Text Box(1)] &amp;lt;&amp;lt; font color(54);
tb &amp;lt;&amp;lt; set underline headings(1) &amp;lt;&amp;lt; set column borders(1) &amp;lt;&amp;lt; set row borders(1) &amp;lt;&amp;lt; set shade alternate rows(1);
i1 &amp;lt;&amp;lt; Padding( Left( 10 ));		i2 &amp;lt;&amp;lt; Padding( Left( 10 ));
i3 &amp;lt;&amp;lt; Padding( Left( 10 ));		i4 &amp;lt;&amp;lt; Padding( Left( 10 ));
i5 &amp;lt;&amp;lt; Padding( Left( 10 ));		i6 &amp;lt;&amp;lt; Padding( Left( 10 ));
i7 &amp;lt;&amp;lt; Padding( Left( 10 ));		i8 &amp;lt;&amp;lt; Padding( Left( 10 ));
i9 &amp;lt;&amp;lt; Padding( Left( 10 ));		i10 &amp;lt;&amp;lt; Padding( Left( 10 ));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 444px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8178iE873FD8A9938B44F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Edit:&amp;nbsp; Fixed a mistake in my code due to the t(n) variables now being a BorderBox.&lt;/P&gt;
&lt;P&gt;Edit 2:&amp;nbsp; Made one more change to highlight the whole cell instead of just the TextBox.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 19:14:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Indentation-of-COLBOX-text/m-p/46595#M26555</guid>
      <dc:creator>Justin_Chilton</dc:creator>
      <dc:date>2017-10-31T19:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Indentation of COLBOX text</title>
      <link>https://community.jmp.com/t5/Discussions/Indentation-of-COLBOX-text/m-p/46598#M26556</link>
      <description>&lt;P&gt;you can add an H List Box() and Spacer Box() in front of each Text Box() in the ColBox().&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="spacer.PNG" style="width: 317px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8176iA1DDD998FF0AFE34/image-size/large?v=v2&amp;amp;px=999" role="button" title="spacer.PNG" alt="spacer.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = New Window( "Test Col Box Justification",
	tb = Table Box(
		cb = Col Box(
			"Status",
			i1 = Icon Box( "Go" ),
			i2 = Icon Box( "DebuggerRunWithoutBreakpoints" ),
			i3 = Icon Box( "Locked" ),
			i4 = Icon Box( "WinRelaunchAnalysis" ),
			i5 = Icon Box( "Excluded" ),
			i6 = Icon Box( "SASTableMeta" ),
			i7 = Icon Box( "ColStack" ),
			i8 = Icon Box( "DataTableBox" ),
			i9 = Icon Box( "WinFileNewDT" ),
			i10 = Icon Box( "SASExportData" ),

		), 
		
		sb = String Col Box( "Icon Name",
			{"Go", "DebuggerRunWithoutBreakpoints", "Locked", "WinRelaunchAnalysis", "Excluded",
			"SASTableMeta", "ColStack", "DataTableBox", "WinFileNewDT", "SASExportData"}
		),
		tcb = Col Box(
			"Sample Text",
			H List Box( Spacer Box( size( 5, 0 ) ), t1 = Text Box( "The" ) ),
			t2 = Text Box( "quick" ),
			t3 = Text Box( "red" ),
			t4 = Text Box( "fox" ),
			t5 = Text Box( "jumped" ),
			t6 = Text Box( "over" ),
			t7 = Text Box( "the" ),
			t8 = Text Box( "oak" ),
			t9 = Text Box( "brown" ),
			t10 = Text Box( "log" ),

		),

	)
);

t1 &amp;lt;&amp;lt; font color( 51 ) &amp;lt;&amp;lt; Set Font Style( "Bold" ) &amp;lt;&amp;lt; background color( 73 );
t3 &amp;lt;&amp;lt; font color( 51 );
t9 &amp;lt;&amp;lt; font color( 54 );
tb &amp;lt;&amp;lt; set underline headings( 1 ) &amp;lt;&amp;lt; set column borders( 1 ) &amp;lt;&amp;lt; set row borders( 1 ) &amp;lt;&amp;lt;
set shade alternate rows( 1 );
i1 &amp;lt;&amp;lt; Padding( Left( 10 ) );
i2 &amp;lt;&amp;lt; Padding( Left( 10 ) );
i3 &amp;lt;&amp;lt; Padding( Left( 10 ) );
i4 &amp;lt;&amp;lt; Padding( Left( 10 ) );
i5 &amp;lt;&amp;lt; Padding( Left( 10 ) );
i6 &amp;lt;&amp;lt; Padding( Left( 10 ) );
i7 &amp;lt;&amp;lt; Padding( Left( 10 ) );
i8 &amp;lt;&amp;lt; Padding( Left( 10 ) );
i9 &amp;lt;&amp;lt; Padding( Left( 10 ) );
i10 &amp;lt;&amp;lt; Padding( Left( 10 ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Oct 2017 19:10:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Indentation-of-COLBOX-text/m-p/46598#M26556</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-10-31T19:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Indentation of COLBOX text</title>
      <link>https://community.jmp.com/t5/Discussions/Indentation-of-COLBOX-text/m-p/46601#M26557</link>
      <description>&lt;P&gt;One quick tip. You can apply the padding to all of the IconBoxes in the ColBox using XPath instead of keeping track of variables and sending the Padding variables to each one.&lt;/P&gt;
&lt;P&gt;This does it all in one line:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;(cb &amp;lt;&amp;lt; Xpath( "//IconBox" )) &amp;lt;&amp;lt; Padding( Left( 10 ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Oct 2017 19:19:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Indentation-of-COLBOX-text/m-p/46601#M26557</guid>
      <dc:creator>Justin_Chilton</dc:creator>
      <dc:date>2017-10-31T19:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Indentation of COLBOX text</title>
      <link>https://community.jmp.com/t5/Discussions/Indentation-of-COLBOX-text/m-p/46602#M26558</link>
      <description>Thanks Justin and Jim.  The border box solution is fairly clean.</description>
      <pubDate>Tue, 31 Oct 2017 19:25:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Indentation-of-COLBOX-text/m-p/46602#M26558</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2017-10-31T19:25:15Z</dc:date>
    </item>
  </channel>
</rss>

