cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar
OneNorthJMP
Level V

text box new line

Hi JMP expert,

 

Is there a function in JSL to display text box in new line? Below script still want display the text in horizontal direction. Thanks

 

nw = New Window("Reports", <<Journal,
  hlb = H List Box(
    lub = Lineup Box(
      tb1 = Text Box( "Zone1:Cpk<1.33 && DSA>1.5" ) ,
      tb2 = Text Box( "Zone2:Cpk<1.33 && DSA<1.5" ) ,  
      tb3 = Text Box( "Zone3:Cpk>1.33 && DSA>1.5" ) ,  
      tb4 = Text Box( "Zone4:Cpk>1.33 && DSA<1.5" ) ,           
    );
  );
);

2 ACCEPTED SOLUTIONS

Accepted Solutions
thomasz
Level IV

Re: text box new line

Do you mean like this?

nw = New Window("Reports", <<Journal,
  hlb = V List Box(
      tb1 = Text Box( "Zone1:Cpk<1.33 && DSA>1.5" ) ,
      tb2 = Text Box( "Zone2:Cpk<1.33 && DSA<1.5" ) ,  
      tb3 = Text Box( "Zone3:Cpk>1.33 && DSA>1.5" ) ,  
      tb4 = Text Box( "Zone4:Cpk>1.33 && DSA<1.5" ) ,           
  );
);

View solution in original post

pmroz
Super User

Re: text box new line

One text box with embedded newlines will work:

nw = New Window("Reports", 
  tb1 = Text Box( 
"Zone1:Cpk<1.33 && DSA>1.5
Zone2:Cpk<1.33 && DSA<1.5  
Zone3:Cpk>1.33 && DSA>1.5
Zone4:Cpk>1.33 && DSA<1.5") ,           
);

View solution in original post

4 REPLIES 4
thomasz
Level IV

Re: text box new line

Do you mean like this?

nw = New Window("Reports", <<Journal,
  hlb = V List Box(
      tb1 = Text Box( "Zone1:Cpk<1.33 && DSA>1.5" ) ,
      tb2 = Text Box( "Zone2:Cpk<1.33 && DSA<1.5" ) ,  
      tb3 = Text Box( "Zone3:Cpk>1.33 && DSA>1.5" ) ,  
      tb4 = Text Box( "Zone4:Cpk>1.33 && DSA<1.5" ) ,           
  );
);
OneNorthJMP
Level V

Re: text box new line

Thanks for advice. Change from H List Box to V List Box kind of do the tricks.

 

Is that possible that i only have 1 text box but will show 4 new separate line?

txnelson
Super User

Re: text box new line

insert V List Box() around the elements you want in a vertical orientation
Jim
pmroz
Super User

Re: text box new line

One text box with embedded newlines will work:

nw = New Window("Reports", 
  tb1 = Text Box( 
"Zone1:Cpk<1.33 && DSA>1.5
Zone2:Cpk<1.33 && DSA<1.5  
Zone3:Cpk>1.33 && DSA>1.5
Zone4:Cpk>1.33 && DSA<1.5") ,           
);