//	M160 : `FbN{bNX̐^

define	mode = 1;
define	chk_no = 0;

function main()
{
	_Cls();

	_PrintF("̃ECḧʒuƃTCY x=%d, y=%d, cx=%d, cy=%d\n", _GetWndPosX(), _GetWndPosY(), _GetWndWidth(), _GetWndHeight());
	_PrintF("eLXg̃TCY cx=%d, cy=%dCs=%d\n\n", _GetCharWidth(), _GetCharHeight(), _GetCharHeight());

	_PrintF("`FbN{bNX쐬Ǎ㏇`FbN{bNX𖳌A܂\n\n");

	_TimerStart(1, 1000);

	_Stop();
}

//	^C}Cxg
function _OnTimer(tid)
{
	define	$txt;

	$txt = $_SPrintF("CHK-%d", chk_no);
	if		(mode == 1) _ChkBoxOpen  (chk_no, $txt);
	else if (mode == 2) _ChkBoxEnable(chk_no, _FALSE);
	else if (mode == 3) _ChkBoxClose (chk_no);
	
	if (++chk_no > 7) {
		chk_no = 0;
		if (++mode > 3) {
			_Restart();
		}
	}
}

//	`FbN{bNXCxg
function _OnChkBox(ChkBoxNo, status)
{
	_PrintF("CheckBox %d, status=%d\n", ChkBoxNo, status);
}
