SAP Control framework系列(14)
定义数据:
data: fline type i, tline type i, fpos type i, tpos type i, gfline type i, gtline type i, gfpos type i, gtpos type i. |
处理ok_code:
when 'SSP'. CALL METHOD text_editor->SET_SELECTION_POS EXPORTING FROM_LINE = fline FROM_POS = fpos TO_LINE = tline TO_POS = tpos EXCEPTIONS ERROR_CNTL_CALL_METHOD = 1 others = 2 . when 'GSP'. CALL METHOD text_editor->GET_SELECTION_POS IMPORTING FROM_LINE = gfline FROM_POS = gfpos TO_LINE = gtline TO_POS = gtpos EXCEPTIONS ERROR_CNTL_CALL_METHOD = 1 others = 2 . |
5.5.3 SET_READONLY_MODE
这个方法设置text editor为只读模式,你在创建好text editor之后调用就可以。
CALL METHOD TEXT_EDITOR->SET_READONLY_MODE
EXPORTING
READONLY_MODE = 1 “0:可以修改 1:只读
EXCEPTIONS
ERROR_CNTL_CALL_METHOD = 1
INVALID_PARAMETER = 2
others = 3 .
1.1 总结
因为text editor比较简单,而且使用的不是很频繁,所以就不多介绍,估计这些也就够用了。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/190059/viewspace-476659/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/190059/viewspace-476659/