いままでの記事を参考にして作成しているのですが
開くなどのものを別ウィンドウにすることにしました
しかし、いざ開こうとすると・・・
たぶんobjprmでボタンを書き換えてしまっているのだと思いますが
解決方法がわかりません^^;
どなたか教えてください
あと、メインウィンドウの初期位置を決める方法も教えてください!
お願いします
↓はスクリプトです
font "MSゴシック",20,1 color 0,0,255 mes "テスト" a = "" #uselib "user32" #func ShowScrollBar "ShowScrollBar" int, int, int #define SB_BOTH 3 pos 2,20 mesbox a, 630, 400, 5,1000 mesbox_hwnd = objinfo(stat, 2) ShowScrollBar objinfo (stat, 2), SB_BOTH, 3 screen 1,300,60,8,200,600 button "開く", *load pos 65,0 button "保存", *hozon pos 130,0 button "時刻", *label pos 195,0 button "終わる",*owari pos 0, 30 button gosub "切り取り", *cut pos 65, 30 button gosub "コピー", *copy pos 130, 30 button gosub "貼り付け", *paste pos 195, 30 button gosub "削除", *clear 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 stop *hozon dialog "txt", 17, "テキスト" if stat = 0 : stop notesel a notesave refstr 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