SAP Control framework系列(07)
3).定义event handler
class lcl_event_handler definition.
public section.
class-methods:
catch_dbclick for event dblclick
of cl_gui_textedit importing sender.
endclass.
class lcl_event_handler implementation.
method catch_dbclick.
event_type = 'Event dbclick Raised!'.
endmethod.
endclass.
Note:该如何确定control里面都有什么事件呢?常用的event列表如下:
DBLCLICK | double click |
F1 | F1 pressed |
F4 | F4 pressed |
CONTEXT_MENU | Context Menu requested (by pressing right mouse) |
CONTEXT_MENU_SELECTED | Context Menu item selected |
ON_DROP | drop occured |
ON_DRAG | drag occured |
ON_DROP_COMPLETE | complete drag and drop operation |
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/190059/viewspace-476642/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/190059/viewspace-476642/