‎2008 Nov 20 6:20 PM
How can I do not editable a text area created with cl_gui_textedit?
Is it posible?
I just want insert text inside the program.
‎2008 Nov 20 6:28 PM
Use method SET_READONLY_MODE.
* for change mode
CALL METHOD v_cl_fetitletextedit->set_readonly_mode
EXPORTING
readonly_mode = 0.
Regards,
Naimesh Patel
‎2008 Nov 20 6:28 PM
Use method SET_READONLY_MODE.
* for change mode
CALL METHOD v_cl_fetitletextedit->set_readonly_mode
EXPORTING
readonly_mode = 0.
Regards,
Naimesh Patel
‎2008 Nov 20 6:30 PM
Yes, look at [SAP Textedit|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCITEXTEDIT/BCCITEXTEDIT.pdf] for PROTECT_LINES method.
call method textedit->protect_lines
exporting
from_line = from_line
to_line = to_line
protect_mode = protect_mode
enable_editing_protected_text = enable_editing_protected_text
exceptions
error_cntl_call_method = 1
invalid_parameter = 2.Regards
‎2008 Dec 10 6:38 AM
Hello,
In case if you want the whole textedit to be noneditable use method
SET_READONLY_MODE with parameter true to make read only mode and false to input mode.
In case if you want only some area or lines to be not editable use methods
PROTECT_LINES or PROTECT_SELECTION.
For more details on method see
http://help.sap.com/saphelp_nw70/helpdata/EN/f1/549e36cf0ecb7de10000009b38f889/frameset.htm
you can also go through the demo programs
SAPTEXTEDIT_TEST_2
Best Regards
Rajendra