이미지박스 » Event

on_enddrag

Description

드래그 시작한 곳의 개체 안에 마우스 드롭 완료 시 호출되는 이벤트이며, 자세한 내용은 샘플 소스를 참조한다.

Parameters

Parameters Type Description
objInst INSTANCE 이벤트가 발생한 이미지박스 오브젝트

Return Value

Type Description
void

Remark

* 주의 : on_dropcomplete 이벤트는 다른 컨트롤에서 드래그 시작해 현재 컨트롤에 드롭 완료시 호출됨

* on_enddrag 이벤트는 컨트롤의 dragble 속성을 True로 해주어야만 호출된다.

Example

/**
 * 이미지박스 아이템 드래그 완료 이벤트
 * 이미지박스 내에서 드래그 및 드랍된 경우에 발생하는 이벤트이다.
 * 
 * @param {Object} objInst 이미지박스 컴포넌트 인스턴스
 * @param {number} nXPoint 이미지박스 기준의 x좌표
 * @param {number} nYPoint 이미지박스 기준의 y좌표
 * @param {number} nPageXPoint 페이지 기준의 x좌표
 * @param {number} nPageYPoint 페이지 기준의 y좌표
 * @param {number} nWinXPoint 컴퓨터 스크린 좌측 상단 기준 Left좌표
 * @param {number} nWinYPoint 컴퓨터 스크린 좌측 상단 기준 Top 좌표
 */
function imagebox_on_enddrag(objInst, nXPoint, nYPoint, nPageXPoint, nPageYPoint, nWinXPoint, nWinYPoint)
{
	factory.consoleprint("on_enddrag> Start");
	factory.consoleprint("on_enddrag> ImageBox Object Name = " + objInst.getname());
	factory.consoleprint("on_enddrag> nXPoint = " + nXPoint);
	factory.consoleprint("on_enddrag> nYPoint = " + nYPoint);
	factory.consoleprint("on_enddrag> nPageXPoint = " + nPageXPoint);
	factory.consoleprint("on_enddrag> nPageYPoint = " + nPageYPoint);
	factory.consoleprint("on_enddrag> nWinXPoint = " + nWinXPoint);
	factory.consoleprint("on_enddrag> nWinYPoint = " + nWinYPoint);
}

See Also

on_begindrag
on_dropcomplete

Viewer Ver.

9.1.1.1

Update Date

20230714