[?] Stop the X button from closing a PlusWnd - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: [?] Stop the X button from closing a PlusWnd (/showthread.php?tid=64778) [?] Stop the X button from closing a PlusWnd by Matti on 08-11-2006 at 09:03 AM
Hello again! code: Thanks in advance! RE: [?] Stop the X button from closing a PlusWnd by Mike on 08-11-2006 at 09:07 AM
If I remember correctly, there is a "Cancel" parameter that tells if the window should close or not. RE: [?] Stop the X button from closing a PlusWnd by Ash_ on 08-11-2006 at 09:18 AM
code: is what i use to check if they click the x button, then if they do it cancels my timer, simply change my cancel timer call to wahtever you need (I'd do it myself but i can't be bothered ) RE: [?] Stop the X button from closing a PlusWnd by Matti on 08-11-2006 at 01:47 PM
That did the trick! Never knew there was such special control id available! RE: [?] Stop the X button from closing a PlusWnd by deAd on 08-11-2006 at 02:42 PM
Or, in the OnWndDestroyed thingy or whatever, just return true to cancel the event much easier RE: [?] Stop the X button from closing a PlusWnd by matty on 08-11-2006 at 02:48 PM
code: That is how I do it on Screenshot Sender 4. Remember that TimerLength is the TimerCountdown included in the program. This will also prevent the user from pressing the Esc key on the keyboard to close the window. |