aardio 文档

web.layout.event 库模块帮助文档

web.layout.event 成员列表

web.layout.event.KEY_PARAMS()

创建鼠标事件结构体参数,

返回对象:hlKeyParamsObject

web.layout.event.MOUSE_PARAMS()

创建鼠标事件结构体参数,

返回对象:hlMouseParamsObject

hlKeyParamsObject 成员列表

hlKeyParamsObject.alt_state

控制键状态

hlKeyParamsObject.cmd

命令ID

hlKeyParamsObject.key_code

虚拟键码

hlKeyParamsObject.pointer

结构体指针地址

hlKeyParamsObject.target

触发事件节点

hlMouseParamsObject 成员列表

hlMouseParamsObject.alt_state

控制键状态

hlMouseParamsObject.button_state

按键状态
在onMouseWheel事件中表示滚轮数据

hlMouseParamsObject.cmd

命令ID

hlMouseParamsObject.cursor_type

指针

hlMouseParamsObject.dragging

正在被拖放的节点,节点要在CSS属性draggable中启用拖动
该节点不为空值是,isdragging为真

hlMouseParamsObject.dragging_mode

拖动类型,
1 _HL_DRAGGING_MOVE 或 _HL_DRAGGING_COPY

hlMouseParamsObject.is_on_icon

是否位于图标上,
这里指的是前景图片,并具有 no-repeat 样式

hlMouseParamsObject.isdragging

是否正在拖动,无论节点CSS是否指定draggable属性

hlMouseParamsObject.pointer

结构体指针地址

hlMouseParamsObject.pos

节点坐标

返回对象:pointObject

hlMouseParamsObject.pos_document

文档坐标

返回对象:pointObject

hlMouseParamsObject.target

触发事件节点

weblayoutObject 成员列表

weblayoutObject.onActiveChild

weblayoutObject.onActiveChild = function (ltTarget,ltOwner,reason,behaviorParams) {  

}

weblayoutObject.onAnimation

weblayoutObject.onAnimation = function (ltTarget,ltOwner,reason,behaviorParams) {  

}

weblayoutObject.onApplicationEvent

weblayoutObject.onApplicationEvent = function (ltTarget,ltOwner,reason,behaviorParams) {  
    /*postEvent或sendEvent发出一大于0x100的消息*/  
}

weblayoutObject.onAttach

weblayoutObject.onAttach = function( ltOwner ){

    return true 
}

weblayoutObject.onButtonClick

weblayoutObject.onButtonClick = function (ltTarget,ltOwner,reason,behaviorParams) {  

}

weblayoutObject.onButtonPress

weblayoutObject.onButtonPress = function (ltTarget,ltOwner,reason,behaviorParams) {  

}

weblayoutObject.onButtonStateChanged

weblayoutObject.onButtonStateChanged = function (ltTarget,ltOwner,reason,behaviorParams) {  

}

weblayoutObject.onClosePopup

weblayoutObject.onClosePopup = function (ltTarget,ltOwner,reason,behaviorParams) {  

}

weblayoutObject.onContextMenuRequest

weblayoutObject.onContextMenuRequest = function (ltTarget,ltOwner,reason,behaviorParams) {  
    var ltPopupOwner = ..web.layout.element( behaviorParams.he )  

}

weblayoutObject.onContextMenuSetup

weblayoutObject.onContextMenuSetup = function (ltTarget,ltOwner,reason,behaviorParams) {  
    var ltPopupOwner = ..web.layout.element( behaviorParams.he )  

}

weblayoutObject.onDataArrived

weblayoutObject.onDataArrived = function(ltTarget,ltOwner,data,dataType,status,url){  
    return true;/*返回true撤消数据不显示内容*/  
}

weblayoutObject.onDetach

weblayoutObject.onDetach = function( ltOwner ){

    return true 
}

weblayoutObject.onDisabledStateChanged

weblayoutObject.onDisabledStateChanged = function (ltTarget,ltOwner,reason,behaviorParams) {  

}

weblayoutObject.onDragEnter

weblayoutObject.onDragEnter = function (ltTarget,ltOwner,x,y,ltMouseParams) {  

}

weblayoutObject.onDragLeave

weblayoutObject.onDragLeave = function (ltTarget,ltOwner,x,y,ltMouseParams) {  

}

weblayoutObject.onDragRequest

weblayoutObject.onDragRequest = function (ltTarget,ltOwner,x,y,ltMouseParams) {  

}

weblayoutObject.onDrawBackground

weblayoutObject.onDrawBackground = function(ltOwner,hdc,rc){

}

weblayoutObject.onDrawContent

weblayoutObject.onDrawContent = function(ltOwner,hdc,rc){

}

weblayoutObject.onDrawForeground

weblayoutObject.onDrawForeground = function(ltOwner,hdc,rc){

}

weblayoutObject.onDrop

weblayoutObject.onDrop = function (ltTarget,ltOwner,x,y,ltMouseParams) {  

}

weblayoutObject.onEditValueChanged

weblayoutObject.onEditValueChanged = function (ltTarget,ltOwner,reason,behaviorParams) {  

}

weblayoutObject.onEditValueChanging

weblayoutObject.onEditValueChanging = function (ltTarget,ltOwner,reason,behaviorParams) {  

}

weblayoutObject.onElementCollapsed

weblayoutObject.onElementCollapsed = function (ltTarget,ltOwner,reason,behaviorParams) {  

}

weblayoutObject.onElementControlCreated

weblayoutObject.onElementControlCreated = function (ltTarget,ltOwner,reason,behaviorParams) {  
    var ltCtrl = ltOwner.getCtrl();/*自定义控件已创建*/  
}

weblayoutObject.onElementExpanded

weblayoutObject.onElementExpanded = function (ltTarget,ltOwner,reason,behaviorParams) {  

}

weblayoutObject.onExchangeDrag

weblayoutObject.onExchangeDrag = function( ltTarget,ltOwner,x,y,cmd,dataTypes,fetchData,exParams ) {    
    return true;/*这里返回true才会显示可拖放鼠标指针*/  
}

weblayoutObject.onExchangeDragEnter

weblayoutObject.onExchangeDragEnter = function( ltTarget,ltOwner,x,y,cmd,dataTypes,fetchData,exParams ) {    
    return true;  
}

weblayoutObject.onExchangeDragLeave

weblayoutObject.onExchangeDragLeave = function( ltTarget,ltOwner,x,y,cmd,dataTypes,fetchData,exParams ) {    
    return true;  
}

weblayoutObject.onExchangeDrop

weblayoutObject.onExchangeDrop = function( ltTarget,ltOwner,x,y,cmd,dataTypes,fetchData,exParams ) {   
    var data,dataType = fetchData( _HL_EXF/*可选指定支持的拖放数据类型*/ );  
    if( data ) {  
        return true;  
    }  
}

weblayoutObject.onFocusGot

weblayoutObject.onFocusGot = function (ltTarget,ltOwner,focusParams) {  

}

weblayoutObject.onFocusLost

weblayoutObject.onFocusLost = function (ltTarget,ltOwner,focusParams) {  

}

weblayoutObject.onFormReset

weblayoutObject.onFormReset = function (ltTarget,ltOwner,reason,behaviorParams) {  

}

weblayoutObject.onFormSubmit

weblayoutObject.onFormSubmit = function (ltTarget,ltOwner,reason,behaviorParams) {  
    var formData = behaviorParams.data.getValue();  
}

weblayoutObject.onFrameDocumentComplete

weblayoutObject.onFrameDocumentComplete = function (ltTarget,ltOwner,reason,behaviorParams) {  

}

weblayoutObject.onGesturePan

weblayoutObject.onGesturePan = function (ltTarget,ltOwner,ltGestureParams) {  
    /*平移*/  
}

weblayoutObject.onGestureRequest

weblayoutObject.onGestureRequest = function (ltTarget,ltOwner,ltGestureParams) {  
    ltGestureParams.flags = 0xFFFF/*_HL_GESTURE_FLAGS_ALL*/  
    return true;  
}

weblayoutObject.onGestureRotate

weblayoutObject.onGestureRotate = function (ltTarget,ltOwner,ltGestureParams) {  
    /*旋转*/  
}

weblayoutObject.onGestureTap1

weblayoutObject.onGestureTap1 = function (ltTarget,ltOwner,ltGestureParams) {  
    /*单击*/  
}

weblayoutObject.onGestureTap2

weblayoutObject.onGestureTap2 = function (ltTarget,ltOwner,ltGestureParams) {  
    /*双击*/  
}

weblayoutObject.onGestureZoom

weblayoutObject.onGestureZoom = function (ltTarget,ltOwner,ltGestureParams) {  
    /*缩放*/  
}

weblayoutObject.onHyperlinkClick

weblayoutObject.onHyperlinkClick = function (ltTarget,ltOwner,reason,behaviorParams) {  

}

weblayoutObject.onInitDataView

weblayoutObject.onInitDataView = function (ltTarget,ltOwner,reason,behaviorParams) {  

}

weblayoutObject.onKeyChar

weblayoutObject.onKeyChar = function (ltTarget,ltOwner,keyCode, altState, ltKeyParams) {  

}

weblayoutObject.onKeyDown

weblayoutObject.onKeyDown = function (ltTarget,ltOwner,keyCode, altState, ltKeyParams) {  

}

weblayoutObject.onKeyUp

weblayoutObject.onKeyUp = function (ltTarget,ltOwner,keyCode, altState, ltKeyParams) {  

}

weblayoutObject.onMenuItemActive

weblayoutObject.onMenuItemActive = function (ltTarget,ltOwner,reason,behaviorParams) {  
    var ltPopupOwner = ..web.layout.element( behaviorParams.he )  

}

weblayoutObject.onMenuItemClick

weblayoutObject.onMenuItemClick = function (ltTarget,ltOwner,reason,behaviorParams) {  
    var ltPopupOwner = ..web.layout.element( behaviorParams.he )  

}

weblayoutObject.onMouseClick

weblayoutObject.onMouseClick = function (ltTarget,ltOwner,x,y,ltMouseParams) {  

}

weblayoutObject.onMouseDblClick

weblayoutObject.onMouseDblClick = function (ltTarget,ltOwner,x,y,ltMouseParams) {  

}

weblayoutObject.onMouseDown

weblayoutObject.onMouseDown = function (ltTarget,ltOwner,x,y,ltMouseParams) {  

}

weblayoutObject.onMouseEnter

weblayoutObject.onMouseEnter = function (ltTarget,ltOwner,x,y,ltMouseParams) {  

}

weblayoutObject.onMouseIdle

weblayoutObject.onMouseIdle = function (ltTarget,ltOwner,x,y,ltMouseParams) {  

}

weblayoutObject.onMouseLeave

weblayoutObject.onMouseLeave = function (ltTarget,ltOwner,x,y,ltMouseParams) {  

}

weblayoutObject.onMouseMove

weblayoutObject.onMouseMove = function (ltTarget,ltOwner,x,y,ltMouseParams) {  

}

weblayoutObject.onMouseTick

weblayoutObject.onMouseTick = function (ltTarget,ltOwner,x,y,ltMouseParams) {  

}

weblayoutObject.onMouseUp

weblayoutObject.onMouseUp = function (ltTarget,ltOwner,x,y,ltMouseParams) {  

}

weblayoutObject.onMouseWheel

weblayoutObject.onMouseWheel = function (ltTarget,ltOwner,x,y,ltMouseParams) {  

}

weblayoutObject.onPopupDismissed

weblayoutObject.onPopupDismissed = function (ltTarget,ltOwner,reason,behaviorParams) {  
    var ltPopupOwner = ..web.layout.element( behaviorParams.he )  

}

weblayoutObject.onPopupDismissing

weblayoutObject.onPopupDismissing = function (ltTarget,ltOwner,reason,behaviorParams) {  

}

weblayoutObject.onPopupReady

weblayoutObject.onPopupReady = function (ltTarget,ltOwner,reason,behaviorParams) {  
    var ltPopupOwner = ..web.layout.element( behaviorParams.he )  

}

weblayoutObject.onPopupRequest

weblayoutObject.onPopupRequest = function (ltTarget,ltOwner,reason,behaviorParams) {  
    var ltPopupOwner = ..web.layout.element( behaviorParams.he )  

}

weblayoutObject.onRequestTooltip

weblayoutObject.onRequestTooltip = function (ltTarget,ltOwner,reason,behaviorParams) {  

}

weblayoutObject.onRowsDataRequest

weblayoutObject.onRowsDataRequest = function (ltTarget,ltOwner,reason,behaviorParams) {  

}

weblayoutObject.onScrollEnd

weblayoutObject.onScrollEnd = function (ltTarget,ltOwner,pos,scrollParams) {  

}

weblayoutObject.onScrollHome

weblayoutObject.onScrollHome = function (ltTarget,ltOwner,pos,scrollParams) {  

}

weblayoutObject.onScrollPageMinus

weblayoutObject.onScrollPageMinus = function (ltTarget,ltOwner,pos, scrollParams) {  

}

weblayoutObject.onScrollPagePlus

weblayoutObject.onScrollPagePlus = function (ltTarget,ltOwner,pos, scrollParams) {  

}

weblayoutObject.onScrollPos

weblayoutObject.onScrollPos = function (ltTarget,ltOwner,pos, scrollParams) {  

}

weblayoutObject.onScrollStepMinus

weblayoutObject.onScrollStepMinus = function (ltTarget,ltOwner,pos, scrollParams) {  

}

weblayoutObject.onScrollStepPlus

weblayoutObject.onScrollStepPlus = function (ltTarget,ltOwner,pos, scrollParams) {  

}

weblayoutObject.onSelectSelectionChanged

weblayoutObject.onSelectSelectionChanged = function (ltTarget,ltOwner,reason,behaviorParams) {  
    var ltOption = ..web.layout.element( behaviorParams.he )  

}

weblayoutObject.onSelectStateChanged

function (ltTarget,ltOwner,reason,behaviorParams) {  
    var ltOption = ..web.layout.element( behaviorParams.he )  
    __  
}

weblayoutObject.onSize

weblayoutObject.onSize = function (ltOwner) {  

}

weblayoutObject.onSliderRelease

weblayoutObject.onSliderRelease = function (ltTarget,ltOwner,pos, scrollParams) {  

}

weblayoutObject.onTableHeaderClick

weblayoutObject.onTableHeaderClick = function (ltTarget,ltOwner,cellIndex,behaviorParams) {  

}

weblayoutObject.onTableRowClick

weblayoutObject.onTableRowClick = function (ltTarget,ltOwner,rowIndex,behaviorParams) {  

}

weblayoutObject.onTableRowDblClick

weblayoutObject.onTableRowDblClick = function (ltTarget,ltOwner,rowIndex,behaviorParams) {  

}

weblayoutObject.onTimer

weblayoutObject.onTimer = function (ltOwner,timerId) {  

}

weblayoutObject.onUiStateChanged

weblayoutObject.onUiStateChanged = function (ltTarget,ltOwner,reason,behaviorParams) {  

}

weblayoutObject.onVisualStateChanged

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

Markdown 格式