window:
	res:
		windowType	wplainbox
		switch $(COLOR)
			case COLOR:
			case GRAY:
				topShadow	CadetBlue
				bottomShadow	LightBlue
				break
		endswitch
	endres:
endwindow:
dialog: dialogs
	res:
		defaultDistance		$(fWidth)
		dialogType		modal
		defaultButton		ok
	endres:
	ditem: msg
		res:
			itemType	bitmap
			leftLabel	x
			leftKanjiFont	$(kanjiFont)
			leftFont	$(kanaFont)
			autoAdjust	true
			vertDistance	$(fWidth)
			horizDistance	$(fWidth)
		endres:
	endditem:
	ditem: ok
		res:
			itemType	button
			label		' O K '
			kanjiFont	$(kanjiFont)
			font		$(kanaFont)
			fromVert	msg
			vertDistance	#(fWidth)*2
			horizDistance	#(fWidth)*2
		endres:
		act:
			put ok $(answer)
			close
		endact:
	endditem:
	ditem: cancel
		res:
			itemType	button
			label		Cancel
			kanjiFont	$(kanjiFont)
			font		$(kanaFont)
			fromVert	msg
			fromHoriz	ok
			vertDistance	#(fWidth)*2
			horizDistance	#(fWidth)*2
		endres:
		act:
			put cancel $(answer)
			close
		endact:
	endditem:
enddialog:
proc: open
	setval msg leftLabel $(confirm_msg1)
endproc:
