テキストエディタです
;text Editor #define bn_y 20 #define printf print #define maxsize 32000 redraw 2 fn="-" onexit *qq sdim buff,maxsize objsize 100,bn_y pos 0,0 button "名前をつけて保存(ctrl+shift+s)", *new_save objsize 60,bn_y pos 100 button "上書き保存(ctrl+s)",*save pos 160 button "読み込み(ctrl+l)",*load pos 220 button "新規作成(ctrl+n)",*new mesbox buff,winx,winy-24 redraw 3 stop *new_save dialog "txt",17,"txt file" if (stat==0){ dialog "\a保存できません", 1,"error" if t==1 : goto*@forward stop } getpath fn,refstr,1 fn=fn+".txt" notesel buff notesave fn stop *save if (fn=="-"){ printf ("\a") stop } notesel buff notesave fn if t==1 : goto*@forward stop *load dialog "txt",16,"txt file load" if (stat==0){ dialog "読み込めません",1,"error" stop } notesel buff noteload (fn=refstr) strlen num,buff if (num>=maxsize){ dialog "サイズが許容範囲を超えています",1,"error" stop } *new screen 1,240,120 pos 108,20 k="" objsize 200,24 input k clist=".txt\n.c\n.as\n.html" cb=0 pos ,50 combox cb,,clist *qq dialog "セーブしますか?",2,"save?" if (stat==6&&fn!="-"){ t=1 goto *save stop } else if (stat==6){ t=1 goto *new_save } *@ end
まだ全然使えません。
どこを改善していいかわかりません
教えてください。