ITPub博客

首页 > Linux操作系统 > Linux操作系统 > SAP Control framework系列(07)转

SAP Control framework系列(07)转

原创 Linux操作系统 作者:ultraluck 时间:2019-04-14 14:24:06 0 删除 编辑

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博客 ” ,链接:https://blog.itpub.net/190059/viewspace-476642/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2004-12-03

  • 博文量
    170
  • 访问量
    176243