What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » window close button

window close button
Author: Message:
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
36 / Male / Flag
Joined: Jul 2007
RE: window close button
Well, basically you can hide a Plus window's close button by using code like this:
code:
<Window Id="WndSomeWindow" Version="1">
    <TitleBar>
        <AllowClose>false</AllowClose>
    </TitleBar>
    ...
</Window>
This will hide the [Image: 214126d.png] sign.

However, you can always use scripted code to close the window, like this:
code:
var wndSomeWindow = MsgPlus.CreateWnd("Resources\\wndSomeWindow.xml", "WndSomeWindow");
// do other stuff
// ...
// now we decide it's time to close the window
wndSomeWindow.Close(1);
However, the user can always close the window by pressing Alt+F4 (unless you register a message notification callback function and suppress the window message this way).
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
02-11-2008 02:07 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
window close button - by zogo on 02-11-2008 at 01:41 PM
RE: window close button - by mynetx on 02-11-2008 at 02:07 PM
RE: window close button - by zogo on 02-11-2008 at 02:11 PM
RE: window close button - by Spunky on 02-11-2008 at 04:33 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On