on 06-18-2009 8:01 PM
Hi All,
I'm placing a long text fied on the container through calling the method.
But on the container I want the long text field as not editable . i.e I dont want to edit the long text field.
Where as now I'm able to edit the long text whichis placed on the container.
Please help me in this.
Thank you!
Hi all,
Here are the steps to display the long text in container
and its properites are like this
u2022 for long text to display on container as below
u2022 Used to create the element on the container
u2022 To edit the text on the container
u2022 To display or SET the text in the input text box.
Declaring the input field as below
DATA: line(1000) TYPE c,
long_TEXT LIKE STANDARD TABLE OF LINE,
w_long_text type line.
DATA: init,
container TYPE REF TO cl_gui_custom_container,
editor TYPE REF TO cl_gui_textedit.
CREATE OBJECT: container EXPORTING container_name = 'CONTAINER1',
editor EXPORTING parent = container,
handle.
CALL METHOD: editor->set_registered_events
EXPORTING events = event_tab.
CALL METHOD editor->set_text_as_stream
EXPORTING
text = container_text.
Prasad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.