#module
#deffunc setpasschar int, int
mref id, 0 : mref lock, 1
objsend id, 0x00CC, lock * '*', nonuse // パスワードボックス
return
#deffunc getpasschar int
mref id, 0
mref stt, 64
objsend id, 0x00D2, 0, nonuse // 状態を取得
return
#global
sdim s, 32
sdim msg, 10, 2
msg = "施錠", "開錠"
state = 0
pos 10, 10 : input s, 100, 20, 16
pos 10, 40 : button "", *change
*change
state = 1 - state
setpasschar 0, state
objprm 1, msg.state
objsel 0 // パスワードキャラクタのセット・クリア
stop
|