08-03-2006 1:04 PM
Hi,
I have created an Object Editor in a Module Pool program.
Code for the Object Editor is
DATA: ok_code LIKE sy-ucomm,
container TYPE REF TO cl_gui_custom_container,
editor TYPE REF TO cl_gui_textedit,
t_thead LIKE thead, "OCCURS 0 WITH HEADER LINE,
line_length TYPE i.
DATA: t_tline LIKE tline OCCURS 0 WITH HEADER LINE.
DATA : BEGIN OF t_line OCCURS 0,
line(256) TYPE c,
END OF t_line.
DATA line TYPE i.
CREATE OBJECT container
EXPORTING
container_name = 'MYCONTAINER'.
CREATE OBJECT editor
EXPORTING
parent = container
wordwrap_mode = cl_gui_textedit=>wordwrap_at_fixed_position
wordwrap_position = line_length
wordwrap_to_linebreak_mode = cl_gui_textedit=>true.
What method should i use to read the data entered in the editor.
Thank you,
Ramu N.
08-03-2006 1:26 PM
In the following link you can find an step by step guide to use that:
<a href="http://www.sapgenie.com/abap/controls/textedit.htm">http://www.sapgenie.com/abap/controls/textedit.htm</a>
Regards.