라인 » Api

setwidth

Description

컨트롤의 너비값(width)과 너비 단위를 변경하는 API이다.

Parameters

Parameters Type Description
width short 컨트롤 너비값(width)
nWidthUnit short [옵션] 너비 단위

Return Value

Type Description
BOOL 정상 처리 여부

Remark

**너비 단위 속성값 상수

0 : pixel
1 : percent(%)

Example

function btn_setwidth_on_mouseup() { // 컨트롤의 width를 500px로 변경 btnTest.setwidth(500); // 컨트롤의 width를 100%로 변경 btnTest.setwidth(100, 1); }

See Also

getwidth

Viewer Ver.

9.1.1.1

Update Date

20211122