Choose Language Hide Translation Bar
OneNorthJMP
Community Trekker

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" ) ,           
    );
  );
);

0 Kudos
2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
thomasz
Community Trekker

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

0 Kudos
4 REPLIES 4
Highlighted
thomasz
Community Trekker

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

OneNorthJMP
Community Trekker

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?

0 Kudos
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") ,           
);

View solution in original post

0 Kudos