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:
zogo
Junior Member
**

Avatar
all you are doomed

Posts: 98
Reputation: 1
30 / Male / Flag
Joined: Feb 2008
O.P. window close button
can you script a window without a close button but can be closed by different code and if so what are the codes??????
people have negativly rated me saying i'm spamming just to get 100 posts... i'm not! i'm 100% realy stuck... somtimes
02-11-2008 01:41 PM
Profile E-Mail PM Web Find Quote Report
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
zogo
Junior Member
**

Avatar
all you are doomed

Posts: 98
Reputation: 1
30 / Male / Flag
Joined: Feb 2008
O.P. RE: window close button
thanks for your help
people have negativly rated me saying i'm spamming just to get 100 posts... i'm not! i'm 100% realy stuck... somtimes
02-11-2008 02:11 PM
Profile E-Mail PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: window close button
You can also close PlusWnds using the Esc button and by setting a seperate button with the Id "BtnCancel" (although I doubt the latter is what you are after)
<Eljay> "Problems encountered: shit blew up" :zippy:
02-11-2008 04:33 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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