quote:
Originally posted by Volv
Sorry Cookie, but Matty is right this time... btnCancel is coded into MsgPlus to automatically close the window without requiring any script code, and this is the easiest way to do it.
I never said he was wrong with the btnCancel being a build-in id, I even confirmed it.
(I said "nevertheless, blahblah"). But, that is not the mistake DarkGhost has made.
I said it doesn't matter what you name the button as long as you use the same id in the script itself. You can use whatever name you like, including for a close button. The only thing you wont have is the auto-closing when you click and you need to code it yourself, just as DarkGhost did. DarkGhost didn't do anything wrong there.
The close button didn't worked because he named his event function wrong. All the other code, including the xml, is correct code.