<?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: Save Presentation &amp;gt; H List Box Placement: How to leave some space at the top of each slide (see testing script)? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Save-Presentation-gt-H-List-Box-Placement-How-to-leave-some/m-p/253581#M49783</link>
    <description>&lt;P&gt;Here is a simple example of how I do the spacing you are looking for&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

Open( "$SAMPLE_DATA/big class.jmp" );

// Create the output you need
biv = bivariate( x( :height ), y( :weight ) );
plot1 = Report( biv );

// Create a display area with the spacer box in it 
vlb = V List Box( nn = V List Box( Spacer Box( size( 1, 50 ) ) ) );

// add in the part of the display that you want to be lower
nn &amp;lt;&amp;lt; append( plot1[Picture Box( 1 )] );

// Add the display area to the outline box that has the title 
plot1[Outline Box( 1 )] &amp;lt;&amp;lt; prepend( vlb &amp;lt;&amp;lt; get picture );

// Delete the area of the display that you have turned
// into a picture object and placed it just below the outline box
plot1[Picture Box( 1 )] &amp;lt;&amp;lt; delete;

plot1 &amp;lt;&amp;lt; Save Presentation( "$TEMP/Z1.pptx", append, Outline Titles( Top Left ) );


Open( "$TEMP/Z1.pptx" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="space.PNG" style="width: 871px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22450i83494567A2FF1B43/image-size/large?v=v2&amp;amp;px=999" role="button" title="space.PNG" alt="space.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 22 Mar 2020 00:40:01 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2020-03-22T00:40:01Z</dc:date>
    <item>
      <title>Save Presentation &gt; H List Box Placement: How to leave some space at the top of each slide (see testing script)?</title>
      <link>https://community.jmp.com/t5/Discussions/Save-Presentation-gt-H-List-Box-Placement-How-to-leave-some/m-p/253577#M49782</link>
      <description>&lt;P&gt;Hi JMP Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a apparently simple problem that I have not been able to resolve: I building a simple script to gather plots from different journals into single slides in a PowerPoint presentation. So far, things are working well except that the plots are all stuck at the top of each slide -&amp;gt; what is the best way to include a Spacer in my H List Box or my Lineup Box to avoid this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here (1);

dummy = H List Box ();

dummy &amp;lt;&amp;lt; Save Presentation ("$Desktop/TEMP PNG/Z1.pptx", Outline Titles (Top Left));

jrn1 = Get Window("FIRST_JOURNAL");
jrn2 = Get Window("SECOND_JOURNAL");

For (i = 1, i &amp;lt;=5, i++, 
	Plot1 = jrn1 [PictureBox(i)];
	Plot2 = jrn2 [PictureBox(i)];

	MylpBox = Lineup Box (N Col (2));
	MylpBox &amp;lt;&amp;lt; Append (Plot1);
	MylpBox &amp;lt;&amp;lt; Append (Plot2);

	myhlb = H List Box ();
	myhlb &amp;lt;&amp;lt; Append (Spacer Box (0,1)); // this does not work
	myhlb &amp;lt;&amp;lt; Append (MylpBox &amp;lt;&amp;lt; get picture);
	myhlb &amp;lt;&amp;lt; Save Presentation ("$Desktop/TEMP PNG/Z1.pptx", append, Outline Titles (Top Left));
	
);	&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;TS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2020 23:15:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Save-Presentation-gt-H-List-Box-Placement-How-to-leave-some/m-p/253577#M49782</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2020-03-21T23:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Save Presentation &gt; H List Box Placement: How to leave some space at the top of each slide (see testing script)?</title>
      <link>https://community.jmp.com/t5/Discussions/Save-Presentation-gt-H-List-Box-Placement-How-to-leave-some/m-p/253581#M49783</link>
      <description>&lt;P&gt;Here is a simple example of how I do the spacing you are looking for&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

Open( "$SAMPLE_DATA/big class.jmp" );

// Create the output you need
biv = bivariate( x( :height ), y( :weight ) );
plot1 = Report( biv );

// Create a display area with the spacer box in it 
vlb = V List Box( nn = V List Box( Spacer Box( size( 1, 50 ) ) ) );

// add in the part of the display that you want to be lower
nn &amp;lt;&amp;lt; append( plot1[Picture Box( 1 )] );

// Add the display area to the outline box that has the title 
plot1[Outline Box( 1 )] &amp;lt;&amp;lt; prepend( vlb &amp;lt;&amp;lt; get picture );

// Delete the area of the display that you have turned
// into a picture object and placed it just below the outline box
plot1[Picture Box( 1 )] &amp;lt;&amp;lt; delete;

plot1 &amp;lt;&amp;lt; Save Presentation( "$TEMP/Z1.pptx", append, Outline Titles( Top Left ) );


Open( "$TEMP/Z1.pptx" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="space.PNG" style="width: 871px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22450i83494567A2FF1B43/image-size/large?v=v2&amp;amp;px=999" role="button" title="space.PNG" alt="space.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Mar 2020 00:40:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Save-Presentation-gt-H-List-Box-Placement-How-to-leave-some/m-p/253581#M49783</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-03-22T00:40:01Z</dc:date>
    </item>
  </channel>
</rss>

