이미지 » Api

setsize

Description

컴포넌트의 크기를 변경하는 API이다.

Parameters

Parameters Type Description
width short 너비 값 또는 -1
height long 높이 값 또는 -1

Return Value

Type Description
void

Remark

width, height 파라미터의 값이 -1인 경우, 해당 부분에 대한 크기는 변경하지 않는다.

width_unit, height_unit 속성에 따라 해당 값이 적용된다.

Example

function btn_setsize_on_mouseup() { // width를 400px, 높이를 500px로 변경 btnTest.setsize(400, 500); }

See Also

setwidth
setheight

Viewer Ver.

9.1.1.1

Update Date

20181224