2006 Nov 02 2:30 PM
I am calling modal dialog screen(9002) from my normal screen(9001).
In the modal dialog i have container which iam using class TEXTEDIT_CUSTOM_CONTAINER for displaying long text.
My question's are,
1) In the normal screen i.e 9001 in user command i am using a button called text to call 9002.
I tried to change values as below , i didnot noticed any difference in my out put.
call screen '9002' starting at 1 1
ending at 111 5.
call screen '9002' starting at 7 30
ending at 1 50.
2) my word wrap length is 80, iam able to see only 50 and to see the next 30 character i need to use horizontal scroll bar, which is ok.
But my requirement is i want to see all the 80 characters without using horizontal scroll.
I thought of increasing the container width but the window size is limiting the container view.
so at max i can viewing 50 char per line without using horizontal bar.
if i reduce the container , i see less than 50 char per line then i have to use horizontal scroll to see remains char in the line.
i have to see 80 chars without using the horizontal scroll.
can anyone tell what the solution for this.
i THOUGHT OF THIS
1)Increasing the size of container in layout.
2) Incresing the values in call screen starting code.
3)Is there any thing that i can use just like we use
WORDWRAP_POSITION = '85' to limit the 85 char per line
Let me know.
SWATHI
I am calling modal dialog screen(9002) from my normal screen(9001).
In the modal dialog i have container which iam using class TEXTEDIT_CUSTOM_CONTAINER for displaying long text.
My question's are,
1) In the normal screen i.e 9001 in user command i am using a button called text to call 9002.
I tried to change values as below , i didnot noticed any difference in my out put.
call screen '9002' starting at 1 1
ending at 111 5.
call screen '9002' starting at 7 30
ending at 1 50.
2) my word wrap length is 80, iam able to see only 50 and to see the next 30 character i need to use horizontal scroll bar, which is ok.
But my requirement is i want to see all the 80 characters without using horizontal scroll.
I thought of increasing the container width but the window size is limiting the container view.
so at max i can viewing 50 char per line without using horizontal bar.
if i reduce the container , i see less than 50 char per line then i have to use horizontal scroll to see remains char in the line.
i have to see 80 chars without using the horizontal scroll.
can anyone tell what the solution for this.
i THOUGHT OF THIS
1)Increasing the size of container in layout.
2) Incresing the values in call screen starting code.
3)Is there any thing that i can use just like we use
WORDWRAP_POSITION = '85' to limit the 85 char per line
Let me know.
SWATHI
2006 Nov 02 6:35 PM
2006 Nov 02 6:42 PM
Hi Swati ,
I think increasing the size of container in layout will solve the prob..
Just try and let us know...
2006 Nov 02 6:43 PM
2006 Nov 02 6:46 PM
Hi Rich and all,
My text editor handles 85 char.
You said
you may have to increate the screen size
How do you this all i have on the screen is container.
How can we increase the size of modal dialog screen.
CREATE OBJECT EDITOR
EXPORTING
PARENT = TEXTEDIT_CUSTOM_CONTAINER
WORDWRAP_POSITION = '85'
WORDWRAP_MODE = CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION
WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>FALSE
EXCEPTIONS
2006 Nov 02 6:59 PM
2006 Nov 02 7:15 PM
For example, I have gotton this to work in my system, but changing the screen size to 82 columns, then making my control 82 wide. Then here is my code.
report zrich_0001 .
data: text_container type ref to cl_gui_custom_container,
text_editor type ref to cl_gui_textedit.
<b>call screen 100 starting at 1 1
ending at 80 20.</b>
*&---------------------------------------------------------------------*
*& Module STATUS_0100 OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
module STATUS_0100 output.
* SET PF-STATUS 'xxxxxxxx'.
* SET TITLEBAR 'xxx'.
create object text_container
exporting
container_name = 'TEXT_CONTAINER' .
CREATE OBJECT text_EDITOR
EXPORTING
PARENT = TEXT_CONTAINER
<b>WORDWRAP_POSITION = '79'</b>
WORDWRAP_MODE = CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION
WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>false.
endmodule. " STATUS_0100 OUTPUT
*&---------------------------------------------------------------------*
*& Module USER_COMMAND_0100 INPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
module USER_COMMAND_0100 input.
leave program.
endmodule. " USER_COMMAND_0100 INPUT
Works good, 80 characters and no scroll bar.
Regards,
Rich Heilman
2006 Nov 02 7:30 PM
Hi rich,
call screen '9911' starting at 1 1
ending at 190 90.
in screen attributes i have
lines/column for maintained as
50 240.
I have changed all number but the modal dialog box doesn't increase. IS THERE A LIMITAION TO THE WIDTH OF DIALOG BOX.
IT DOESN'T EVEN MOVE UP WHEN I CHAGE THE NUMBERS.
ITS STARTING FROM THE MIDDLE OF THE SCREEN.
THANKS
2006 Nov 02 7:36 PM
2006 Nov 02 7:52 PM
HI RICH,
Nope its starting from middle of the screen.
does it have anything to do with lines /column occupied.
In my screen the lines/column for occupied are
12 /50 and its greyed out so i cannot change them.
THANKS
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |