|
2008/3/17(Mon) 18:58:51|NO.14362
screen 0,1016,706,4,0,0
font "MSゴシック",20,1
color 0,0,255
mes "てすと"
a = ""
#uselib "user32"
#func ShowScrollBar "ShowScrollBar" int, int, int
#define SB_BOTH 3
pos 0,0
mesbox a, 700, 500, 5,0
mesbox_hwnd = objinfo(stat, 2)
ShowScrollBar objinfo (stat, 2), SB_BOTH, 3
a = ""
pos 700,0
mesbox a, 316, 500, 4, 0
mesbox_hwnd = objinfo(stat, 2)
ShowScrollBar objinfo (stat, 2), SB_BOTH, 3
a = ""
pos 500,500
mesbox a, 516, 100, 5, 0
mesbox_hwnd = objinfo(stat, 2)
ShowScrollBar objinfo (stat, 2), SB_BOTH, 3
pos 0,500
button "開く", *load
pos 65,500
button "保存", *hozon
pos 130,500
button "時刻", *label
pos 195,500
button "終わる",*owari
pos 260,500
button "新規作成",*saizu
pos 325,500
button "メモ全消し", *kesi
pos 0, 525
button gosub "切り取り", *cut
pos 65, 525
button gosub "コピー", *copy
pos 130, 525
button gosub "貼り付け", *paste
pos 195, 525
button gosub "削除", *clear
pos 260,525
button "初期全消し", *saizu2
pos 325,525
button "時間表示", *migi
stop
*cut
sendmsg mesbox_hwnd, 0x0300
return
*copy
sendmsg mesbox_hwnd, 0x0301
return
*paste
sendmsg mesbox_hwnd, 0x0302
return
*clear
sendmsg mesbox_hwnd, 0x0303
return
*load
dialog "txt", 16, "テキスト"
if stat = 0 : stop
notesel a
noteload refstr
objprm 0, a
objprm 1, a
stop
*hozon
dialog "txt", 17, "テキスト"
if stat = 0 : stop
notesel a
notesave refstr
objprm 0, a
stop
*owari
dialog "終了しますか?",3, "終了"
if stat = 6 {
end
} else {
}
stop
*label
youbi="日","月","火","水","木","金","土"
time =""+gettime(0)+"年"
time+=""+gettime(1)+"月"
time+=""+gettime(3)+"日"
time+=""+youbi(gettime(2))+"曜日"
time+="\n"
time+=""+gettime(4)+"時"
time+=""+gettime(5)+"分"
time+=""+gettime(6)+"秒"
time+="\n"
a+=""+time
objprm 0,a
stop
*saizu
dialog "今の文章を消しても良いですか?",3, "新規作成"
if stat = 6 {
clrobj 0,0
a = ""
pos 0,0
mesbox a, 700, 500, 5,0
mesbox_hwnd = objinfo(stat, 2)
ShowScrollBar objinfo (stat, 2), SB_BOTH, 3
} else {
}
stop
*saizu2
dialog "初期ボックスの文字を消しても良いですか?",3, "初期ボックス全消し"
if stat = 6 {
clrobj 1,0
a = ""
pos 700,0
mesbox a, 316, 500, 4,0
mesbox_hwnd = objinfo(stat, 2)
ShowScrollBar objinfo (stat, 2), SB_BOTH, 3
} else {
}
stop
*kesi
dialog "今のメモを消しても良いですか?",3, "メモ全消し"
if stat = 6 {
clrobj 2,0
a = ""
pos 500,500
mesbox a, 516, 100, 5,0
mesbox_hwnd = objinfo(stat, 2)
ShowScrollBar objinfo (stat, 2), SB_BOTH, 3
} else {
}
stop
*migi
youbi="日","月","火","水","木","金","土"
time =""+gettime(0)+"年"
time+=""+gettime(1)+"月"
time+=""+gettime(3)+"日"
time+=""+youbi(gettime(2))+"曜日"
time+="\n"
time+=""+gettime(4)+"時"
time+=""+gettime(5)+"分"
time+=""+gettime(6)+"秒"
dialog ""+time,1, "時間"
stop
| |