트리메뉴 » Api

ishaschildren

Description

트리메뉴의 특정아이템의 하위메뉴 존재 여부를 반환하는 API이다.

Parameters

Parameters Type Description
nIndex short 아이템 인덱스

Return Value

Type Description
BOOL 하위메뉴 존재 여부

Example

function test_on_mouseup(objInst) { if (treemenu01.ishaschildren(0) == true) { // 하위메뉴가 있으면 배경색을 빨강색처리 treemenu01.setitemcolor(index, factory.rgb(255,0,0), null, null); else { // 하위메뉴가 없으면 배경색을 파랑색처리 treemenu01.setitemcolor(index, factory.rgb(0,0,255), null, null); } }

Viewer Ver.

9.1.1.1

Update Date

20240514