shortenned again..
menu menubar,channel,status {
-
mIRC Notepad:dialog $iif($dialog(notes),-v,-mod) notes notes notes
}
dialog Notes {
title "mIRC Notepad"
size -1 -1 569 505
option pixels
edit "", 1, -3 0 573 476, autovs multi return vsbar
button "Exit", 2, 493 479 65 22, ok
check "Save When Closed", 3, 5 482 112 17
}
on *:dialog:notes:init:*:{
.loadbuf -o notes 1 mIRC-Notes.mtxt
if ($group(#SaveOnClose) == on) did -c notes 3
}
on *:dialog:notes:sclick:3: $+(.,$iif($group(#SaveOnClose) == on,disable,enable)) #SaveOnClose
#SaveOnClose off
on *:dialog:notes:close:*:{
.savebuf -o notes 1 mIRC-Notes.mtxt
.echo -a 3* Your data has been saved.
}
#SaveOnClose end