Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Scripts - BOX Command

Former Member
0 Likes
1,228

HI all,

I have main window in my script. I have some text which will be written at the bottom of the main window using bottom and endbottom command. Now I want a box around this text. Can anyone explain how do I write my box command.

Regards,

Varun.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,202

Hi Varun,

Use as below..

/: BOX XPOS '11.21' MM YPOS '5.31' MM HEIGHT '10' MM WIDTH '20' MM INTENSITY 10 FRAME 0 TW

12 REPLIES 12
Read only

Former Member
0 Likes
1,203

Hi Varun,

Use as below..

/: BOX XPOS '11.21' MM YPOS '5.31' MM HEIGHT '10' MM WIDTH '20' MM INTENSITY 10 FRAME 0 TW

Read only

0 Likes
1,202

HI,

Where should I write this box command? Should I include it in bottom and endbottom.

Regards,

Varun.

Read only

0 Likes
1,202

hi Varun,

Yes. You have to include between Bottom and End Bottom.

Lanka

Read only

0 Likes
1,202

HI Lanka Murthy,

This is the code I have written in my editor for main window.

/: BOX FRAME 10 TW

/: BOTTOM

/: BOX FRAME 5 TW

/: * conditions apply as per company norms.

/: ENDBOTTOM

But it doesnot come in a box.

PLease Help Me.

Regards,

Varun.

Read only

0 Likes
1,202

Hi Varun,

Since you are creating box not of length of the whole window.You whould provide the Positions of XPOS & YPOS.

The code you gave will create the box for the whole window.

Message was edited by: Phani Kiran Nudurupati

Read only

0 Likes
1,202

Hi Varun,

Please specify the X and Y coordinates of the box that you have defined.

/: BOTTOM

/: BOX XPOS '15.00' CH YPOS '1.25' LN WIDTH 60 CH HEIGHT '5.00' LN FRAME 10

/: * conditions apply as per company norms.

/: ENDBOTTOM

This will give you a box starts at 15CH (from Left) having height of 1.25 LN width of 60CH

Lanka

Read only

0 Likes
1,202

HI,

I have modified the box command as

/: BOX XPOS '2' CM YPOS '16' CM FRAME 5 TW. Stuill I do not get a box.

Regards,

Varun.

Read only

0 Likes
1,202

Hi varun,

Your Ypos is too big ie 16 CM which is going beyond your lenght of the window.Try to change it.

Read only

0 Likes
1,202

Hi Varun,

Please define your Coordinates with less dimesions. You are using CM . Try with "CH" OR "MM". Please define the height also.

I think In your case your box is going beyond your page limits.

Try :

/: BOX XPOS '2' CM YPOS '5' CM HEIGHT '12' CM FRAME 10 TW

Lanka

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,202

Hi. Welcome to SDN. You can use the following coding to do boxes.

/:   BOX FRAME 10 TW                                                         
/:   BOX XPOS '1.5'  CM WIDTH 0 TW HEIGHT '12.7' CM FRAME 10 TW              
/:   BOX XPOS '12.75' CM WIDTH 0 TW HEIGHT '12.7' CM FRAME 10 TW             
/:   BOX XPOS '17.75' CM WIDTH 0 TW HEIGHT '12.7' CM FRAME 10 TW 

Regards,

Rich Heilman

Read only

Former Member
0 Likes
1,202

Hi Varun,

You can define box as :

/: BOX WIDTH '72.50' CH HEIGHT '14.0' FRAME 10 TW

Lanka

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,202

You can also create a window just for your box, and have some of this code.



/*                                                       
/*   The top line                                        
/:   POSITION PAGE                                       
/*   First horozontal line                               
/:   POSITION XORIGIN '1.0' CH YORIGIN '24.0' LN         
/:   SIZE WIDTH '79.0' CH HEIGHT '0' LN                  
/:   BOX HEIGHT '1.5' LN INTENSITY 10                    
/:   BOX FRAME 10 TW                                     
/*                                                       
/*   Second horozontal line                              
/:   POSITION PAGE                                       
/:   POSITION XORIGIN '1.0' CH YORIGIN '25.5' LN         
/:   SIZE WIDTH '79.0' CH HEIGHT '0' LN                  
/:   BOX FRAME 10 TW                                     
/*                                                       
/*   Bottom of Code Box                                  
/*   POSITION PAGE                                       
/*   POSITION XORIGIN '1.0' CH YORIGIN '51.0' LN         
/*   SIZE WIDTH '79.0' CH HEIGHT '0' LN                  
/*   BOX FRAME 10 TW                                     
/*                                                       
/*   The 1st vertical line                               
/:   POSITION PAGE                                       
/:   POSITION XORIGIN '1.0' CH YORIGIN '24.0' LN         
/:   SIZE WIDTH '0' CH HEIGHT '41.0' LN                  
/:   BOX FRAME 10 TW                                     
/*                                                       
/*   The 2nd vertical line                               
/:   POSITION PAGE                                       
/:   POSITION XORIGIN '20.0' CH YORIGIN '24.0' LN        
/:   SIZE WIDTH '0' CH HEIGHT '33.0' LN                  
/:   BOX FRAME 10 TW   
/*   The 3th vertical line                                        
/:   POSITION PAGE                                                
/:   POSITION XORIGIN '40.0' CH YORIGIN '24.0' LN                 
/:   SIZE WIDTH '0' CH HEIGHT '33.0' LN                           
/:   BOX FRAME 10 TW                                              
/*                                                                
/*   The 4th vertical line                                        
/:   POSITION PAGE                                                
/:   POSITION XORIGIN '60.0' CH YORIGIN '24.0' LN                 
/:   SIZE WIDTH '0' CH HEIGHT '33.0' LN                           
/:   BOX FRAME 10 TW                                              
/*                                                                
/*   The 5th vertical line                                        
/:   POSITION PAGE                                                
/:   POSITION XORIGIN '80.0' CH YORIGIN '24.0' LN                 
/:   SIZE WIDTH '0' CH HEIGHT '41.0' LN                           
/:   BOX FRAME 10 TW                                              
/*                                                                
/*   Top of signature Box                                         
/:   POSITION PAGE                                                
/:   POSITION XORIGIN '1.0' CH YORIGIN '57.0' LN                  
/:   SIZE WIDTH '79.0' CH HEIGHT '0' LN                           
/:   BOX FRAME 10 TW                                              
*                                                                 
/*   Bottom of signature Box                                      
/:   POSITION PAGE                                                
/:   POSITION XORIGIN '1.0' CH YORIGIN '65.0' LN                  
/:   SIZE WIDTH '79.0' CH HEIGHT '0' LN                           
/:   BOX FRAME 10 TW                                                                                

Regards,

Rich Heilman