创建鼠标事件结构体参数,
创建鼠标事件结构体参数,
控制键状态
命令ID
虚拟键码
结构体指针地址
触发事件节点
控制键状态
按键状态
在onMouseWheel事件中表示滚轮数据
命令ID
指针
正在被拖放的节点,节点要在CSS属性draggable中启用拖动
该节点不为空值是,isdragging为真
拖动类型,
1 _HL_DRAGGING_MOVE 或 _HL_DRAGGING_COPY
是否位于图标上,
这里指的是前景图片,并具有 no-repeat 样式
是否正在拖动,无论节点CSS是否指定draggable属性
结构体指针地址
节点坐标
文档坐标
触发事件节点
weblayoutObject.onActiveChild = function (ltTarget,ltOwner,reason,behaviorParams) {
}
weblayoutObject.onAnimation = function (ltTarget,ltOwner,reason,behaviorParams) {
}
weblayoutObject.onApplicationEvent = function (ltTarget,ltOwner,reason,behaviorParams) {
/*postEvent或sendEvent发出一大于0x100的消息*/
}
weblayoutObject.onAttach = function( ltOwner ){
return true
}
weblayoutObject.onButtonClick = function (ltTarget,ltOwner,reason,behaviorParams) {
}
weblayoutObject.onButtonPress = function (ltTarget,ltOwner,reason,behaviorParams) {
}
weblayoutObject.onButtonStateChanged = function (ltTarget,ltOwner,reason,behaviorParams) {
}
weblayoutObject.onClosePopup = function (ltTarget,ltOwner,reason,behaviorParams) {
}
weblayoutObject.onContextMenuRequest = function (ltTarget,ltOwner,reason,behaviorParams) {
var ltPopupOwner = ..web.layout.element( behaviorParams.he )
}
weblayoutObject.onContextMenuSetup = function (ltTarget,ltOwner,reason,behaviorParams) {
var ltPopupOwner = ..web.layout.element( behaviorParams.he )
}
weblayoutObject.onDataArrived = function(ltTarget,ltOwner,data,dataType,status,url){
return true;/*返回true撤消数据不显示内容*/
}
weblayoutObject.onDetach = function( ltOwner ){
return true
}
weblayoutObject.onDisabledStateChanged = function (ltTarget,ltOwner,reason,behaviorParams) {
}
weblayoutObject.onDragEnter = function (ltTarget,ltOwner,x,y,ltMouseParams) {
}
weblayoutObject.onDragLeave = function (ltTarget,ltOwner,x,y,ltMouseParams) {
}
weblayoutObject.onDragRequest = function (ltTarget,ltOwner,x,y,ltMouseParams) {
}
weblayoutObject.onDrawBackground = function(ltOwner,hdc,rc){
}
weblayoutObject.onDrawContent = function(ltOwner,hdc,rc){
}
weblayoutObject.onDrawForeground = function(ltOwner,hdc,rc){
}
weblayoutObject.onDrop = function (ltTarget,ltOwner,x,y,ltMouseParams) {
}
weblayoutObject.onEditValueChanged = function (ltTarget,ltOwner,reason,behaviorParams) {
}
weblayoutObject.onEditValueChanging = function (ltTarget,ltOwner,reason,behaviorParams) {
}
weblayoutObject.onElementCollapsed = function (ltTarget,ltOwner,reason,behaviorParams) {
}
weblayoutObject.onElementControlCreated = function (ltTarget,ltOwner,reason,behaviorParams) {
var ltCtrl = ltOwner.getCtrl();/*自定义控件已创建*/
}
weblayoutObject.onElementExpanded = function (ltTarget,ltOwner,reason,behaviorParams) {
}
weblayoutObject.onExchangeDrag = function( ltTarget,ltOwner,x,y,cmd,dataTypes,fetchData,exParams ) {
return true;/*这里返回true才会显示可拖放鼠标指针*/
}
weblayoutObject.onExchangeDragEnter = function( ltTarget,ltOwner,x,y,cmd,dataTypes,fetchData,exParams ) {
return true;
}
weblayoutObject.onExchangeDragLeave = function( ltTarget,ltOwner,x,y,cmd,dataTypes,fetchData,exParams ) {
return true;
}
weblayoutObject.onExchangeDrop = function( ltTarget,ltOwner,x,y,cmd,dataTypes,fetchData,exParams ) {
var data,dataType = fetchData( _HL_EXF/*可选指定支持的拖放数据类型*/ );
if( data ) {
return true;
}
}
weblayoutObject.onFocusGot = function (ltTarget,ltOwner,focusParams) {
}
weblayoutObject.onFocusLost = function (ltTarget,ltOwner,focusParams) {
}
weblayoutObject.onFormReset = function (ltTarget,ltOwner,reason,behaviorParams) {
}
weblayoutObject.onFormSubmit = function (ltTarget,ltOwner,reason,behaviorParams) {
var formData = behaviorParams.data.getValue();
}
weblayoutObject.onFrameDocumentComplete = function (ltTarget,ltOwner,reason,behaviorParams) {
}
weblayoutObject.onGesturePan = function (ltTarget,ltOwner,ltGestureParams) {
/*平移*/
}
weblayoutObject.onGestureRequest = function (ltTarget,ltOwner,ltGestureParams) {
ltGestureParams.flags = 0xFFFF/*_HL_GESTURE_FLAGS_ALL*/
return true;
}
weblayoutObject.onGestureRotate = function (ltTarget,ltOwner,ltGestureParams) {
/*旋转*/
}
weblayoutObject.onGestureTap1 = function (ltTarget,ltOwner,ltGestureParams) {
/*单击*/
}
weblayoutObject.onGestureTap2 = function (ltTarget,ltOwner,ltGestureParams) {
/*双击*/
}
weblayoutObject.onGestureZoom = function (ltTarget,ltOwner,ltGestureParams) {
/*缩放*/
}
weblayoutObject.onHyperlinkClick = function (ltTarget,ltOwner,reason,behaviorParams) {
}
weblayoutObject.onInitDataView = function (ltTarget,ltOwner,reason,behaviorParams) {
}
weblayoutObject.onKeyChar = function (ltTarget,ltOwner,keyCode, altState, ltKeyParams) {
}
weblayoutObject.onKeyDown = function (ltTarget,ltOwner,keyCode, altState, ltKeyParams) {
}
weblayoutObject.onKeyUp = function (ltTarget,ltOwner,keyCode, altState, ltKeyParams) {
}
weblayoutObject.onMenuItemActive = function (ltTarget,ltOwner,reason,behaviorParams) {
var ltPopupOwner = ..web.layout.element( behaviorParams.he )
}
weblayoutObject.onMenuItemClick = function (ltTarget,ltOwner,reason,behaviorParams) {
var ltPopupOwner = ..web.layout.element( behaviorParams.he )
}
weblayoutObject.onMouseClick = function (ltTarget,ltOwner,x,y,ltMouseParams) {
}
weblayoutObject.onMouseDblClick = function (ltTarget,ltOwner,x,y,ltMouseParams) {
}
weblayoutObject.onMouseDown = function (ltTarget,ltOwner,x,y,ltMouseParams) {
}
weblayoutObject.onMouseEnter = function (ltTarget,ltOwner,x,y,ltMouseParams) {
}
weblayoutObject.onMouseIdle = function (ltTarget,ltOwner,x,y,ltMouseParams) {
}
weblayoutObject.onMouseLeave = function (ltTarget,ltOwner,x,y,ltMouseParams) {
}
weblayoutObject.onMouseMove = function (ltTarget,ltOwner,x,y,ltMouseParams) {
}
weblayoutObject.onMouseTick = function (ltTarget,ltOwner,x,y,ltMouseParams) {
}
weblayoutObject.onMouseUp = function (ltTarget,ltOwner,x,y,ltMouseParams) {
}
weblayoutObject.onMouseWheel = function (ltTarget,ltOwner,x,y,ltMouseParams) {
}
weblayoutObject.onPopupDismissed = function (ltTarget,ltOwner,reason,behaviorParams) {
var ltPopupOwner = ..web.layout.element( behaviorParams.he )
}
weblayoutObject.onPopupDismissing = function (ltTarget,ltOwner,reason,behaviorParams) {
}
weblayoutObject.onPopupReady = function (ltTarget,ltOwner,reason,behaviorParams) {
var ltPopupOwner = ..web.layout.element( behaviorParams.he )
}
weblayoutObject.onPopupRequest = function (ltTarget,ltOwner,reason,behaviorParams) {
var ltPopupOwner = ..web.layout.element( behaviorParams.he )
}
weblayoutObject.onRequestTooltip = function (ltTarget,ltOwner,reason,behaviorParams) {
}
weblayoutObject.onRowsDataRequest = function (ltTarget,ltOwner,reason,behaviorParams) {
}
weblayoutObject.onScrollEnd = function (ltTarget,ltOwner,pos,scrollParams) {
}
weblayoutObject.onScrollHome = function (ltTarget,ltOwner,pos,scrollParams) {
}
weblayoutObject.onScrollPageMinus = function (ltTarget,ltOwner,pos, scrollParams) {
}
weblayoutObject.onScrollPagePlus = function (ltTarget,ltOwner,pos, scrollParams) {
}
weblayoutObject.onScrollPos = function (ltTarget,ltOwner,pos, scrollParams) {
}
weblayoutObject.onScrollStepMinus = function (ltTarget,ltOwner,pos, scrollParams) {
}
weblayoutObject.onScrollStepPlus = function (ltTarget,ltOwner,pos, scrollParams) {
}
weblayoutObject.onSelectSelectionChanged = function (ltTarget,ltOwner,reason,behaviorParams) {
var ltOption = ..web.layout.element( behaviorParams.he )
}
function (ltTarget,ltOwner,reason,behaviorParams) {
var ltOption = ..web.layout.element( behaviorParams.he )
__
}
weblayoutObject.onSize = function (ltOwner) {
}
weblayoutObject.onSliderRelease = function (ltTarget,ltOwner,pos, scrollParams) {
}
weblayoutObject.onTableHeaderClick = function (ltTarget,ltOwner,cellIndex,behaviorParams) {
}
weblayoutObject.onTableRowClick = function (ltTarget,ltOwner,rowIndex,behaviorParams) {
}
weblayoutObject.onTableRowDblClick = function (ltTarget,ltOwner,rowIndex,behaviorParams) {
}
weblayoutObject.onTimer = function (ltOwner,timerId) {
}
weblayoutObject.onUiStateChanged = function (ltTarget,ltOwner,reason,behaviorParams) {
}
weblayoutObject.onVisualStateChanged = function (ltTarget,ltOwner,shown,behaviorParams) {
}
_HL_ACTIVATE_CHILD=0x92
_HL_ALT_KEY_PRESSED=4
_HL_ANIMATION=0xA0
_HL_BUBBLING=0
_HL_BUTTON_CLICK=0
_HL_BUTTON_PRESS=1
_HL_BUTTON_STATE_CHANGED=2
_HL_BY_CODE=0
_HL_BY_DEL_CHAR=5
_HL_BY_DEL_CHARS=6
_HL_BY_INS_CHAR=3
_HL_BY_INS_CHARS=4
_HL_BY_KEY_CLICK=1
_HL_BY_KEY_NEXT=2
_HL_BY_KEY_PREV=3
_HL_BY_MOUSE=1
_HL_BY_MOUSE_CLICK=0
_HL_CLOSE_POPUP=0x9E
_HL_CONTEXT_MENU_REQUEST=0x10
_HL_CONTEXT_MENU_SETUP=0xF
_HL_CONTROL_KEY_PRESSED=1
_HL_CURSOR_APPSTARTING=0xB
_HL_CURSOR_ARROW=0
_HL_CURSOR_CROSS=3
_HL_CURSOR_DRAG_COPY=0xF
_HL_CURSOR_DRAG_MOVE=0xE
_HL_CURSOR_HAND=0xD
_HL_CURSOR_HELP=0xC
_HL_CURSOR_IBEAM=1
_HL_CURSOR_NO=0xA
_HL_CURSOR_SIZEALL=9
_HL_CURSOR_SIZENESW=6
_HL_CURSOR_SIZENS=8
_HL_CURSOR_SIZENWSE=5
_HL_CURSOR_SIZEWE=7
_HL_CURSOR_UPARROW=4
_HL_CURSOR_WAIT=2
_HL_DISABLED_STATUS_CHANGED=0x12
_HL_DOCUMENT_COMPLETE=0x98
_HL_DO_CLICK=0
_HL_DO_SWITCH_TAB=0x92
_HL_DRAGGING=0x100
_HL_DRAGGING_COPY=2
_HL_DRAGGING_MOVE=1
_HL_DRAG_ENTER=0xA
_HL_DRAG_LEAVE=0xB
_HL_DRAG_REQUEST=0xC
_HL_DRAW_BACKGROUND=0
_HL_DRAW_CONTENT=1
_HL_DRAW_FOREGROUND=2
_HL_DROP=9
_HL_EDIT_VALUE_CHANGED=4
_HL_EDIT_VALUE_CHANGING=3
_HL_ELEMENT_COLLAPSED=0x90
_HL_ELEMENT_EXPANDED=0x91
_HL_EXC_COPY=1
_HL_EXC_LINK=4
_HL_EXC_MOVE=2
_HL_EXC_NONE=0
_HL_EXF_FILE=0x10
_HL_EXF_HTML=2
_HL_EXF_HYPERLINK=4
_HL_EXF_JSON=8
_HL_EXF_TEXT=1
_HL_EXF_UNDEFINED=0
_HL_FIRST_APPLICATION_EVENT_CODE=0x100
_HL_FIRST_APPLICATION_METHOD_ID=0x100
_HL_FORM_RESET=0x97
_HL_FORM_SUBMIT=0x96
_HL_GESTURE_FLAGS_ALL=0xFFFF
_HL_GESTURE_FLAG_PAN_HORIZONTAL=8
_HL_GESTURE_FLAG_PAN_VERTICAL=4
_HL_GESTURE_FLAG_PAN_WITH_GUTTER=0x4000
_HL_GESTURE_FLAG_PAN_WITH_INERTIA=0x8000
_HL_GESTURE_FLAG_ROTATE=2
_HL_GESTURE_FLAG_TAP1=0x10
_HL_GESTURE_FLAG_TAP2=0x20
_HL_GESTURE_FLAG_ZOOM=1
_HL_GESTURE_PAN=2
_HL_GESTURE_REQUEST=0
_HL_GESTURE_ROTATE=3
_HL_GESTURE_STATE_BEGIN=1
_HL_GESTURE_STATE_END=4
_HL_GESTURE_STATE_INERTIA=2
_HL_GESTURE_TAP1=4
_HL_GESTURE_TAP2=5
_HL_GESTURE_ZOOM=1
_HL_GET_TEXT_VALUE=1
_HL_GET_VALUE=0xFD
_HL_HANDLED=0x10000
_HL_HISTORY_DROP=0x9A
_HL_HISTORY_NEXT=0x9C
_HL_HISTORY_PRIOR=0x9B
_HL_HISTORY_PUSH=0x99
_HL_HISTORY_STATE_CHANGED=0x9D
_HL_HYPERLINK_CLICK=0x80
_HL_INIT_DATA_VIEW=0x93
_HL_IS_EMPTY=0xFC
_HL_KEY_CHAR=2
_HL_KEY_DOWN=0
_HL_KEY_UP=1
_HL_MAIN_MOUSE_BUTTON=1
_HL_MENU_ITEM_ACTIVE=0xA
_HL_MENU_ITEM_CLICK=0xB
_HL_MIDDLE_MOUSE_BUTTON=4
_HL_MOUSE_CLICK=0xFF
_HL_MOUSE_DCLICK=5
_HL_MOUSE_DOWN=4
_HL_MOUSE_ENTER=0
_HL_MOUSE_IDLE=8
_HL_MOUSE_LEAVE=1
_HL_MOUSE_MOVE=2
_HL_MOUSE_TICK=7
_HL_MOUSE_UP=3
_HL_MOUSE_WHEEL=6
_HL_NO_DRAGGING=0
_HL_POPUP_DISMISSED=9
_HL_POPUP_DISMISSING=0x13
_HL_POPUP_READY=8
_HL_POPUP_REQUEST=7
_HL_PROP_MOUSE_BUTTON=2
_HL_REQUEST_TOOLTIP=0x9F
_HL_ROWS_DATA_REQUEST=0x94
_HL_SCROLL_BAR_GET_VALUE=6
_HL_SCROLL_BAR_SET_VALUE=7
_HL_SELECT_SELECTION_CHANGED=5
_HL_SELECT_STATE_CHANGED=6
_HL_SET_TEXT_VALUE=2
_HL_SET_VALUE=0xFE
_HL_SHIFT_KEY_PRESSED=2
_HL_SINKING=0x8000
_HL_SYNTHESIZED=2
_HL_TABLE_HEADER_CLICK=0x81
_HL_TABLE_ROW_CLICK=0x82
_HL_TABLE_ROW_DBL_CLICK=0x83
_HL_TEXT_EDIT_CHAR_POS_AT_XY=0xB
_HL_TEXT_EDIT_GET_CARET_POSITION=8
_HL_TEXT_EDIT_GET_SELECTION=3
_HL_TEXT_EDIT_GET_SELECTION_HTML=0xA
_HL_TEXT_EDIT_GET_SELECTION_TEXT=9
_HL_TEXT_EDIT_REPLACE_SELECTION=5
_HL_TEXT_EDIT_SET_SELECTION=4
_HL_UI_STATE_CHANGED=0x95
_HL_VISIUAL_STATUS_CHANGED=0x11
_HL_X1_MOUSE_BUTTON=8
_HL_X2_MOUSE_BUTTON=0x10
_HL_XCALL=0xFF
_HL_X_DRAG=2
_HL_X_DRAG_ENTER=0
_HL_X_DRAG_LEAVE=1
_HL_X_DROP=3