패널 » Api

getchildinstancefirst

Description

지정한 패널내 1차 자식 컴포넌트들중 처음 생성된 컨트롤의 인스턴스를 가져오는 API이다.

Return Value

Type Description
INSTANCE 해당 컨트롤의 instance

Example

function btnGetFirstCtrlName_on_mouseup() { // 패널에 맨 처음 그려진 컨트롤의 인스턴스를 가져온다. var obj = panel.getchildinstancefirst(); if(factory.isobject(obj) == true) { // 해당 컨트롤이 존재하면 컨트롤의 이름을 alert으로 띄운다. screen.alert(obj.getname()); } else { screen.alert("해당 컨트롤이 존재하지 않습니다."); } }

See Also

getchildinstancenext

Viewer Ver.

9.1.1.1

Update Date

20190708