parent= cl_gui_container=>default_screen.ENDMETHOD."設置text edit內容METHODm_text_string."通過字符串設置lo_textedit->set_textstream( text =iv_text ).ENDMETHOD.METHODm_text_table."通過內表設置,換行需要特定換行符控制lo_textedit->set_text_as_stream( text =it_text ).ENDMETHOD.METHODm_text_...
PARENT = CONTAINER WORDWRAP_MODE = CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION WORDWRAP_POSITION = 256 WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>TRUE. ENDIF. CALL METHOD EDITOR->SET_TEXT_AS_R3TABLE EXPORTING TABLE = M1. ENDMODULE. " STATUS_0100 OUTPUT...
148. 使用 SAPGUI 的 Docking 控件将屏幕划分成若干子区域 当时我们完成了一个例子,一个完整的屏幕,被划分成了左上,左下和右边三个区域,分别显示了三个 Text Editor 区域,通过 CL_GUI_TEXTEDIT 控件实现。 在本教程第 89 篇文章里,我们介绍了 SAP ABAP 系统的 MIME Repository 仓库和 API 的使用方式。 89...
cl_gui_textedit=>wordwrap_at_fixed_position wordwrap_position = line_length wordwrap_to_linebreak_mode = cl_gui_textedit=>true parent = custom_container EXCEPTIONS error_cntl_create = 1 error_cntl_init = 2 error_cntl_link = 3 error_dp_create = 4 gui_type_not_supported = 5 others =...
* Create reference to the TextEdit control 1. editor TYPE REF TO cl_gui_textedit, 1. repid LIKE sy-repid. 1. START-OF-SELECTION. 1. SET SCREEN '100'. 1. *---* 1. * MODULE USER_COMMAND_0100 INPUT * 1. *---* 1. MODULE user_command_0100 INPUT. 1. CASE...
当时我们完成了一个例子,一个完整的屏幕,被划分成了左上,左下和右边三个区域,分别显示了三个 Text Editor 区域,通过 CL_GUI_TEXTEDIT 控件实现。
wordwrap_to_linebreak_mode = cl_gui_textedit=>true parent = custom_container EXCEPTIONS error_cntl_create = 1 error_cntl_init = 2 error_cntl_link = 3 error_dp_create = 4 gui_type_not_supported = 5 others = 6 . IF sy-subrc <> 0. ...
DATA EDITOR TYPE REF TO CL_GUI_TEXTEDIT. DATA: INIT, M1(256) TYPE C OCCURS 0, LINE(256) TYPE C. LINE = '请输入:'. "默认文字 APPEND LINE TO M1. CALL SCREEN 1000. REFRESH M1. CALL METHOD EDITOR->GET_TEXT_AS_R3TABLE "获取数据” ...
TEXT_EDITOR TYPE REF TO CL_GUI_TEXTEDIT, TEXT TYPE STRING. DATA: LINE_LENGTH TYPE I VALUE 254, EDITOR_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER, TEXT_EDITOR TYPE REF TO CL_GUI_TEXTEDIT, TEXT TYPE STRING. Then call the screen (can be any number) [plain] view plaincopyprint...
WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>TRUE "可以回车换行 * FILEDROP_MODE = DROPFILE_EVENT_OFF PARENT = LCL_CONTAINER * LIFETIME = * NAME = EXCEPTIONS ERROR_CNTL_CREATE = 1 ERROR_CNTL_INIT = 2 ERROR_CNTL_LINK = 3