버튼 » Api
setimagealign
Description
버튼의 이미지 수평정렬과 수직정렬 상태를 설정하는 API이다.
Parameters
Parameters |
Type |
Description |
nHorzAlign |
short |
image_horz_align 속성값 (-1인 경우, 변경하지 않음) |
nVertAlign |
short |
image_vert_align 속성값 (-1인 경우, 변경하지 않음) |
Return Value
Type |
Description |
BOOL |
정상 적용 여부(true, false) |
Remark
* 파라미터로 전달 가능한 상수값
- nHorzAlign
XFD_HORZALIGN_LEFT = 0
XFD_HORZALIGN_CENTER = 1
XFD_HORZALIGN_RIGHT = 2
- nVertAlign
XFD_VERTALIGN_TOP = 0
XFD_VERTALIGN_CENTER = 1
XFD_VERTALIGN_BOTTOM = 2
Example
function btn_setimagealign_on_mouseup()
{
// 좌측 중앙 정렬
btn_target.setimagealign(XFD_HORZALIGN_LEFT, XFD_VERTALIGN_CENTER);
}
See Also
getimagehorzalign
getimagevertalign
Viewer Ver.
9.1.1.1
Update Date
20250121