通过cl_gui_textedit类显示一个文本编辑器。 类方法:Get and Set Text GET_LINE_TEXT 获取对应行文本; GET_SELECTED_TEXT_AS_R3TABLE SET_SELECTED_TEXT_AS_R3TABLE 获取或设置Text使用Table; GET_SELECTED_TEXT_AS_STREAM SET_SELECTED_TEXT_AS_STREAM 获取或设置Text使用stream; GET_TEXT_AS_R3TABLE SET_TE...
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...
custom_container TYPE REF TO cl_gui_custom_container, 1. * 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. *---...
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
当时我们完成了一个例子,一个完整的屏幕,被划分成了左上,左下和右边三个区域,分别显示了三个 Text Editor 区域,通过 CL_GUI_TEXTEDIT 控件实现。
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 "获取数据” ...
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. ...
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
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...