aardio 文档

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

web.sciter.event 成员列表

web.sciter.event.KEY_PARAMS()

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

返回对象:scKeyParamsObject

web.sciter.event.MOUSE_PARAMS()

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

返回对象:scMouseParamsObject

scKeyParamsObject 成员列表

scKeyParamsObject.alt_state

控制键状态

scKeyParamsObject.cmd

命令ID

scKeyParamsObject.key_code

虚拟键码

scKeyParamsObject.pointer

结构体指针地址

scKeyParamsObject.target

触发事件节点

scMouseParamsObject 成员列表

scMouseParamsObject.alt_state

控制键状态

scMouseParamsObject.button_state

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

scMouseParamsObject.cmd

命令ID

scMouseParamsObject.cursor_type

指针

scMouseParamsObject.dragging

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

scMouseParamsObject.dragging_mode

拖动类型,
1 _HL_DRAGGING_MOVE 或 _HL_DRAGGING_COPY

scMouseParamsObject.is_on_icon

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

scMouseParamsObject.isdragging

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

scMouseParamsObject.pointer

结构体指针地址

scMouseParamsObject.pos

节点坐标

返回对象:pointObject

scMouseParamsObject.pos_document

文档坐标

返回对象:pointObject

scMouseParamsObject.target

触发事件节点

websciterObject 成员列表

websciterObject.onActiveChild

websciterObject.onActiveChild = function (scTarget,scOwner,reason,behaviorParams) {  

}

websciterObject.onAnimation

websciterObject.onAnimation = function (scTarget,scOwner,reason,behaviorParams) {  

}

websciterObject.onApplicationEvent

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

websciterObject.onAttach

websciterObject.onAttach = function( scOwner ){

    return true 
}

websciterObject.onAttributeChange

websciterObject.onAttributeChange = function (scTarget,scOwner,name,value) {  
    /*属性变更*/  
}

websciterObject.onButtonClick

websciterObject.onButtonClick = function (scTarget,scOwner,reason,behaviorParams) {  

}

websciterObject.onButtonPress

websciterObject.onButtonPress = function (scTarget,scOwner,reason,behaviorParams) {  

}

websciterObject.onButtonStateChanged

websciterObject.onButtonStateChanged = function (scTarget,scOwner,reason,behaviorParams) {  

}

websciterObject.onClosePopup

websciterObject.onClosePopup = function (scTarget,scOwner,reason,behaviorParams) {  

}

websciterObject.onContextMenuRequest

websciterObject.onContextMenuRequest = function (scTarget,scOwner,reason,behaviorParams) {  
    var ltPopupOwner = ..web.sciter.element( behaviorParams.he )  

}

websciterObject.onContextMenuSetup

websciterObject.onContextMenuSetup = function (scTarget,scOwner,reason,behaviorParams) {  
    var ltPopupOwner = ..web.sciter.element( behaviorParams.he )  

}

websciterObject.onCustomEvent

websciterObject.onCustomEvent = function (scTarget,scOwner,reason,behaviorParams) {  

}

websciterObject.onDataArrived

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

websciterObject.onDetach

websciterObject.onDetach = function( scOwner ){

    return true 
}

websciterObject.onDisabledStateChanged

websciterObject.onDisabledStateChanged = function (scTarget,scOwner,reason,behaviorParams) {  

}

websciterObject.onDocumentParsed

onDocumentParsed = function (scTarget,scOwner,reason,behaviorParams) {  
    /*页面已完成DOM解析,在onDocumentReady以前触发*/  
}

websciterObject.onDocumentReady

onDocumentReady = function (scTarget,scOwner,reason,behaviorParams) {  
    /*文档脚本等已加载完成并准备就绪*/n  
}

websciterObject.onDragEnter

websciterObject.onDragEnter = function (scTarget,scOwner,x,y,scMouseParams) {  

}

websciterObject.onDragLeave

websciterObject.onDragLeave = function (scTarget,scOwner,x,y,scMouseParams) {  

}

websciterObject.onDragRequest

websciterObject.onDragRequest = function (scTarget,scOwner,x,y,scMouseParams) {  

}

websciterObject.onDrawBackground

websciterObject.onDrawBackground = function(scOwner,hdc,rc){

}

websciterObject.onDrawContent

websciterObject.onDrawContent = function(scOwner,hdc,rc){

}

websciterObject.onDrawForeground

websciterObject.onDrawForeground = function(scOwner,hdc,rc){

}

websciterObject.onDrop

websciterObject.onDrop = function (scTarget,scOwner,x,y,scMouseParams) {  

}

websciterObject.onEditValueChanged

websciterObject.onEditValueChanged = function (scTarget,scOwner,reason,behaviorParams) {  

}

websciterObject.onEditValueChanging

websciterObject.onEditValueChanging = function (scTarget,scOwner,reason,behaviorParams) {  

}

websciterObject.onElementCollapsed

websciterObject.onElementCollapsed = function (scTarget,scOwner,reason,behaviorParams) {  

}

websciterObject.onElementControlCreated

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

websciterObject.onElementExpanded

websciterObject.onElementExpanded = function (scTarget,scOwner,reason,behaviorParams) {  

}

websciterObject.onFocusGot

websciterObject.onFocusGot = function (scTarget,scOwner,focusParams) {  

}

websciterObject.onFocusLost

websciterObject.onFocusLost = function (scTarget,scOwner,focusParams) {  

}

websciterObject.onFormReset

websciterObject.onFormReset = function (scTarget,scOwner,reason,behaviorParams) {  

}

websciterObject.onFormSubmit

websciterObject.onFormSubmit = function (scTarget,scOwner,reason,behaviorParams) {  
    var formData = behaviorParams.data.getValue();  
}

websciterObject.onFrameDocumentComplete

websciterObject.onFrameDocumentComplete = function (scTarget,scOwner,reason,behaviorParams) {  

}

websciterObject.onGesturePan

websciterObject.onGesturePan = function (scTarget,scOwner,scGestureParams) {  
    /*平移*/  
}

websciterObject.onGestureRequest

websciterObject.onGestureRequest = function (scTarget,scOwner,scGestureParams) {  
    scGestureParams.flags = 0xFFFF/*_HL_GESTURE_FLAGS_ALL*/  
    return true;  
}

websciterObject.onGestureRotate

websciterObject.onGestureRotate = function (scTarget,scOwner,scGestureParams) {  
    /*旋转*/  
}

websciterObject.onGestureTap1

websciterObject.onGestureTap1 = function (scTarget,scOwner,scGestureParams) {  
    /*单击*/  
}

websciterObject.onGestureTap2

websciterObject.onGestureTap2 = function (scTarget,scOwner,scGestureParams) {  
    /*双击*/  
}

websciterObject.onGestureZoom

websciterObject.onGestureZoom = function (scTarget,scOwner,scGestureParams) {  
    /*缩放*/  
}

websciterObject.onHyperlinkClick

websciterObject.onHyperlinkClick = function (scTarget,scOwner,reason,behaviorParams) {  

}

websciterObject.onInitDataView

websciterObject.onInitDataView = function (scTarget,scOwner,reason,behaviorParams) {  

}

websciterObject.onKeyChar

websciterObject.onKeyChar = function (scTarget,scOwner,keyCode, altState, scKeyParams) {  

}

websciterObject.onKeyDown

websciterObject.onKeyDown = function (scTarget,scOwner,keyCode, altState, scKeyParams) {  

}

websciterObject.onKeyUp

websciterObject.onKeyUp = function (scTarget,scOwner,keyCode, altState, scKeyParams) {  

}

websciterObject.onMenuItemActive

websciterObject.onMenuItemActive = function (scTarget,scOwner,reason,behaviorParams) {  
    var ltPopupOwner = ..web.sciter.element( behaviorParams.he )  

}

websciterObject.onMenuItemClick

websciterObject.onMenuItemClick = function (scTarget,scOwner,reason,behaviorParams) {  
    var ltPopupOwner = ..web.sciter.element( behaviorParams.he )  

}

websciterObject.onMouseClick

websciterObject.onMouseClick = function (scTarget,scOwner,x,y,scMouseParams) {  

}

websciterObject.onMouseDblClick

websciterObject.onMouseDblClick = function (scTarget,scOwner,x,y,scMouseParams) {  

}

websciterObject.onMouseDown

websciterObject.onMouseDown = function (scTarget,scOwner,x,y,scMouseParams) {  

}

websciterObject.onMouseEnter

websciterObject.onMouseEnter = function (scTarget,scOwner,x,y,scMouseParams) {  

}

websciterObject.onMouseIdle

websciterObject.onMouseIdle = function (scTarget,scOwner,x,y,scMouseParams) {  

}

websciterObject.onMouseLeave

websciterObject.onMouseLeave = function (scTarget,scOwner,x,y,scMouseParams) {  

}

websciterObject.onMouseMove

websciterObject.onMouseMove = function (scTarget,scOwner,x,y,scMouseParams) {  

}

websciterObject.onMouseTick

websciterObject.onMouseTick = function (scTarget,scOwner,x,y,scMouseParams) {  

}

websciterObject.onMouseUp

websciterObject.onMouseUp = function (scTarget,scOwner,x,y,scMouseParams) {  

}

websciterObject.onMouseWheel

websciterObject.onMouseWheel = function (scTarget,scOwner,x,y,scMouseParams) {  

}

websciterObject.onPopupDismissed

websciterObject.onPopupDismissed = function (scTarget,scOwner,reason,behaviorParams) {  
    var ltPopupOwner = ..web.sciter.element( behaviorParams.he )  

}

websciterObject.onPopupDismissing

websciterObject.onPopupDismissing = function (scTarget,scOwner,reason,behaviorParams) {  

}

websciterObject.onPopupReady

websciterObject.onPopupReady = function (scTarget,scOwner,reason,behaviorParams) {  
    var ltPopupOwner = ..web.sciter.element( behaviorParams.he )  

}

websciterObject.onPopupRequest

websciterObject.onPopupRequest = function (scTarget,scOwner,reason,behaviorParams) {  
    var ltPopupOwner = ..web.sciter.element( behaviorParams.he )  

}

websciterObject.onRequestTooltip

websciterObject.onRequestTooltip = function (scTarget,scOwner,reason,behaviorParams) {  

}

websciterObject.onRowsDataRequest

websciterObject.onRowsDataRequest = function (scTarget,scOwner,reason,behaviorParams) {  

}

websciterObject.onScrollEnd

websciterObject.onScrollEnd = function (scTarget,scOwner,pos,scrollParams) {  

}

websciterObject.onScrollHome

websciterObject.onScrollHome = function (scTarget,scOwner,pos,scrollParams) {  

}

websciterObject.onScrollPageMinus

websciterObject.onScrollPageMinus = function (scTarget,scOwner,pos, scrollParams) {  

}

websciterObject.onScrollPagePlus

websciterObject.onScrollPagePlus = function (scTarget,scOwner,pos, scrollParams) {  

}

websciterObject.onScrollPos

websciterObject.onScrollPos = function (scTarget,scOwner,pos, scrollParams) {  

}

websciterObject.onScrollStepMinus

websciterObject.onScrollStepMinus = function (scTarget,scOwner,pos, scrollParams) {  

}

websciterObject.onScrollStepPlus

websciterObject.onScrollStepPlus = function (scTarget,scOwner,pos, scrollParams) {  

}

websciterObject.onSelectSelectionChanged

websciterObject.onSelectSelectionChanged = function (scTarget,scOwner,reason,behaviorParams) {  
    var ltOption = ..web.sciter.element( behaviorParams.he )  

}

websciterObject.onSelectStateChanged

function (scTarget,scOwner,reason,behaviorParams) {  
    var ltOption = ..web.sciter.element( behaviorParams.he )  
    __  
}

websciterObject.onSize

websciterObject.onSize = function (scOwner) {  

}

websciterObject.onSliderRelease

websciterObject.onSliderRelease = function (scTarget,scOwner,pos, scrollParams) {  

}

websciterObject.onTableHeaderClick

websciterObject.onTableHeaderClick = function (scTarget,scOwner,cellIndex,behaviorParams) {  

}

websciterObject.onTableRowClick

websciterObject.onTableRowClick = function (scTarget,scOwner,rowIndex,behaviorParams) {  

}

websciterObject.onTableRowDblClick

websciterObject.onTableRowDblClick = function (scTarget,scOwner,rowIndex,behaviorParams) {  

}

websciterObject.onTimer

websciterObject.onTimer = function (scOwner,timerId) {  

}

websciterObject.onUiStateChanged

websciterObject.onUiStateChanged = function (scTarget,scOwner,reason,behaviorParams) {  

}

websciterObject.onVisualStateChanged

websciterObject.onVisualStateChanged = function (scTarget,scOwner,shown,behaviorParams) {  

}

自动完成常量

_SC_DD_MODE_COPY=1
_SC_DD_MODE_COPY_OR_MOVE=3
_SC_DD_MODE_LINK=4
_SC_DD_MODE_MOVE=2
_SC_DD_MODE_NONE=0

Markdown 格式