화면 » Event

on_size

Description

화면 표시 윈도우 크기 변경 이벤트이다. 자세한 내용은 샘플 소스를 참조한다.

Parameters

Parameters Type Description
window_width short 화면 표시 윈도우 너비(수직 스크롤 크기 제외)
window_height short 화면 표시 윈도우 높이(수평 스크롤 크기 제외)

Return Value

Type Description
void

Example

/*
 * 화면 표시 윈도우 크기 변경 이벤트
 * 전달되는 파라미터 값은 화면이 표시되고 있는 윈도우 영역의 크기이다.
 * 화면 속성의 width_type, height_type에 따라 화면 크기와 윈도우 크기는 다르게 계산된다.
 *
 * @param {number} window_width 화면 표시 윈도우 너비(수직 스크롤 크기 제외)
 * @param {number} window_height 화면 표시 윈도우 높이(수평 스크롤 크기 제외)
 */
function screen_on_size(window_width, window_height)
{
	factory.consoleprint("screen_on_size> Start");
	factory.consoleprint("screen_on_size> 이벤트 파라미터 크기: " + window_width + ", " + window_height);
	factory.consoleprint("screen_on_size> 윈도우 크기: " + screen.getwindowwidth() + ", " + screen.getwindowheight());	
	factory.consoleprint("screen_on_size> 화면 크기: " + screen.getscreenwidth() + ", " + screen.getscreenheight());
}

Viewer Ver.

9.1.1.1

Update Date

20230504