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

Gray out Text editor.

SG141
Active Participant
0 Likes
1,057

How can i gray out the text editor, so that additional data cannot be entered.

CREATE OBJECT GT_TEXTBOX  "cc_container
             EXPORTING
                   CONTAINER_NAME    = 'GT_TEXTBOX'.

    CREATE OBJECT TEXT_EDITOR
    EXPORTING
    PARENT = GT_TEXTBOX.  "cc_container.

This is how i created the Text Editor

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
771

Hi,


    call method gt_textbox->set_readonly_mode
      exporting
        readonly_mode = 1.

3 REPLIES 3
Read only

former_member194669
Active Contributor
0 Likes
772

Hi,


    call method gt_textbox->set_readonly_mode
      exporting
        readonly_mode = 1.

Read only

0 Likes
771

Getting an error which says that the method is unknown.

Read only

0 Likes
771

Are you using the CL_GUI_TEXTEDIT for text editor?

If yes, than this SET_READONLY_MODE method should be there.

If not, let us know, which class you are using?

regards,

Naimesh Patel