캔버스 » Event

on_dblclick

Description

캔버스에서 마우스 더블클릭 시 호출됨

Parameters

Parameters Type Description
objInst INSTANCE 이벤트가 발생한 캔버스 오브젝트
nXPoint short 캔버스 기준의 x좌표
nYPoint short 캔버스 기준의 y좌표
nPageXPoint short 페이지 기준의 x좌표
nPageYPoint short 페이지 기준의 y좌표
nItemId short 아이템 ID
nTextIndex short 텍스트 인덱스
nImageIndex short 이미지 인덱스

Return Value

Type Description
void

Remark

* 아이템 ID
svg_mode가 true일때만 클릭한 아이템의 ID가 전달됨(false이면 항상 -1)
아이템이 아닌 영역을 클릭한 경우 -1로 전달됨

** 텍스트 인덱스
svg_mode가 true일때만 클릭한 도형에 포함된 텍스트의 인덱스가 전달됨(false이면 항상 -1)
도형에 포함된 텍스트가 아닌 영역을 클릭한 경우 -1로 전달됨

** 이미지 인덱스
svg_mode가 true일때만 클릭한 도형에 포함된 이미지의 인덱스가 전달됨(false이면 항상 -1)
도형에 포함된 이미지가 아닌 영역을 클릭한 경우 -1로 전달됨

Example

/**
 * 캔버스에서 마우스 더블클릭 시 호출 이벤트
 * 
 * @param {Object} objInst 캔버스 컴포넌트 인스턴스
 * @param {number} nXPoint 캔버스 기준의 x좌표
 * @param {number} nYPoint 캔버스 기준의 y좌표
 * @param {number} nPageXPoint 페이지 기준의 x좌표
 * @param {number} nPageYPoint 페이지 기준의 y좌표
 * @param {number} nItemId 아이템 ID
 */
function canvas_on_dblclick(objInst, nXPoint, nYPoint, nPageXPoint, nPageYPoint, nItemId)
{
	var mouse_event_pos_info;
	
	factory.consoleprint("dblclick> Start");
	factory.consoleprint("dblclick> canvas Object Name = " + objInst.getname());
	factory.consoleprint("dblclick> nXPoint = " + nXPoint);
	factory.consoleprint("dblclick> nYPoint = " + nYPoint);
	factory.consoleprint("dblclick> nPageXPoint = " + nPageXPoint);
	factory.consoleprint("dblclick> nPageYPoint = " + nPageYPoint);
	factory.consoleprint("dblclick> nItemId = " + nItemId);
	
	// mouse_event_pos_info 정보에 대한 자세한 내용은 getmouseeventpos API 도움말 참조
	mouse_event_pos_info = factory.getmouseeventpos();
}

Viewer Ver.

9.1.1.1

Update Date

20230713