이미지박스 » Api
setinputtype
Description
컴포넌트의 input_type 속성값을 설정하는 API이다.
Parameters
Parameters |
Type |
Description |
nInputType |
short |
input_type 속성값 |
Return Value
Type |
Description |
BOOL |
정상 처리 여부 |
Remark
**nInputType (입력타입) 파라미터 값
0 : 선택
1 : 필수
2 : 잠금
3 : 잠금+필수
Example
Function btn_setinputtype_on_mouseup()
{
var ret, input_type;
input_type = fld_inputtype.getinputtype();
factory.consoleprint("getinputtype return = " + input_type);
switch(input_type) {
case 0:
factory.consoleprint("input_type = " + input_type + ", 선택");
break;
case 1:
factory.consoleprint("input_type = " + input_type + ", 필수");
break;
case 2:
factory.consoleprint("input_type = " + input_type + ", 잠금");
break;
case 3:
factory.consoleprint("input_type = " + input_type + ", 잠금+필수");
break;
}
// 입력 방식인 "선택"인 경우, "잠금"으로 변경
if (input_type == 0) {
ret = fld_inputtype.setinputtype(2);
}
// 입력 방식인 "잠금"인 경우, "선택"으로 변경
else if (input_type == 2) {
ret = fld_inputtype.setinputtype(0);
}
factory.consoleprint("setinputtype return = " + ret);
}
See Also
getinputtype
getapplyinputtypecolor
setapplyinputtypecolor
Viewer Ver.
9.1.1.1
Update Date
20230807