팝메뉴 » Event

on_click

Description

마우스로 항목을 클릭할 경우 호출됨

Parameters

Parameters Type Description
objInst INSTANCE 이벤트가 발생한 오브젝트
index short 아이템 인덱스
depth short 아이템 깊이
text STRING 아이템 텍스트
id STRING 아이템 ID
type STRING 아이템 유형 ('menu'/'separator')
icon_normal STRING 아이템의 좌측 이미지 경로
submenu_width STRING 서브메뉴의 넓이(0: 자동)

Return Value

Type Description
void

Example

function popmenu1_on_click(objInst, index, depth, text, id, type, icon_normal, submenu_width)
{
	var msg = "";
	msg += "선택한 아이템 정보\n";
	msg += "INDEX: " + index + "\n";
	msg += "DEPTH: " + depth + "\n";
	msg += "TEXT: " + text + "\n";
	msg += "ID: " + id + "\n";
	msg += "TYPE: " + type + "\n";
	msg += "ICON_NORMAL: " + icon_normal + "\n";
	msg += "SUBMENU_WIDTH: " + submenu_width;
	
	screen.alert(msg);
}

Viewer Ver.

9.1.1.1

Update Date

20230717