콤보박스 » Event

on_click

Description

마우스로 항목을 클릭할 경우 호출 이벤트, 자세한 내용은 샘플 소스 참조한다.

Parameters

Parameters Type Description
objInst INSTANCE 이벤트가 발생한 콤보박스 오브젝트
buttonclick short 버튼 클릭 여부 플래그(0/1)

Return Value

Type Description
short 버튼 클릭시, 기본 동작 수행 처리 방식

Example

/**
 * 콤보박스 마우스 클릭 이벤트
 * 
 * @param {Object} objInst 콤보박스 컴포넌트 인스턴스
 * @param {number} buttonclick 버튼 클릭 여부 플래그(0/1)
 *
 * @returns {number} buttonclick 파라미터가 1인 경우에, 버튼 기본 동작 유형
 * 	1 - 기본 동값 수행 (기본값)
 * 	0 - 기본 동값 수행을 수행하지 않음
 */
function combobox_on_click(objInst, buttonclick)
{
	var mouse_event_pos_info;
	
	factory.consoleprint("on_click> Start");
	factory.consoleprint("on_click> ComboBox Object Name = " + objInst.getname());
	factory.consoleprint("on_click> buttonclick = " + buttonclick);
	
	// mouse_event_pos_info 정보에 대한 자세한 내용은 getmouseeventpos API 도움말 참조
	mouse_event_pos_info = factory.getmouseeventpos();
	
	// buttonclick 파라미터가 1인 경우에만 유효
	return 1;
}

Viewer Ver.

9.1.1.1

Update Date

20240314