What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Add items to chatwindow

Pages: (2): « First « 1 [ 2 ] Last »
Add items to chatwindow
Author: Message:
PaulE
Junior Member
**


Posts: 28
Joined: Jul 2006
O.P. RE: Add items to chatwindow
quote:
Originally posted by deAd
I didn't read the whole code, but you'll want to just pass ChatWnd.Handle to the GetWindowRect function.
I have changed it to ChatWnd.Handle, and now it works.
But i got an other error:

quote:
> Functieaanroep: "OnEvent_ChatWndCreated"
> Fout gedetecteerd in lijn 37: 'PlusWnds[...]' is leeg of geen object.
  (Code: -2146823281)
> Fout gedetecteerd in "OnEvent_ChatWndCreated".
  (Code: -2147352567)

That means that PlusWnds is empty or not a object. But i did:
PlusWnds[ChatWnd.Handle] = MsgPlus.CreateWnd("Buttons.xml", "Buttons", 2);

:S

EDIT
Changed line 37 to: PlusWnds.Visible = true;

But i dont even see any kind of the timer From TimeZone script :S

This post was edited on 01-14-2007 at 08:23 PM by PaulE.
01-14-2007 08:21 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Add items to chatwindow
quote:
Originally posted by PaulE
PlusWnds[ChatWnd.Handle] =
code:
var PlusWnds[ChatWnd.Handle] = MsgPlus.CreateWnd("Buttons.xml", "Buttons", 2);

I think this works not at home so.
01-14-2007 08:24 PM
Profile E-Mail PM Find Quote Report
PaulE
Junior Member
**


Posts: 28
Joined: Jul 2006
O.P. RE: Add items to chatwindow
I got this:

code:
<Interfaces xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    <Window Id="Buttons" Version="1">

        <Attributes>

            <NoActivate>true</NoActivate>
            <LockOnClick>false</LockOnClick>
            <ShowInTaskbar>false</ShowInTaskbar>

        </Attributes>

        <TitleBar>

            <AllowMinimize>false</AllowMinimize>
            <AllowClose>false</AllowClose>

        </TitleBar>

        <Position Width="180" Height="75"/>

        <Controls>

            // Add here

        </Controls>

    </Window>

</Interfaces>

I dont want that border and BG Color.
And how can i add a image in it, that is clickable?

PaulE
01-14-2007 08:55 PM
Profile PM Find Quote Report
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
32 / Male / Flag
Joined: Mar 2003
Status: Online
RE: Add items to chatwindow
quote:
Originally posted by Ezra
he best way is to make a Plus! window and make it a child of the chatwindow. Place the window on the place where you want the buttons to be and the window should look like it's a part of the chatwindow, while it's not (Smilie)
Actually, that's not the best way, but the easiest way :P
The best way to do it would be to subclass the window, and on repaint messages add your own data to be drawn, so that WLM will treat what you added as it's own control (like MsgPlus! does it: Do a small test and make the window small. You will see that the MsgPlus! icons will hide into the arrow, because it thinks that the controls is its controls. If SetParent was used, then the icons would be there just floating (unless you used some more advanced methods))


:P
YouTube closed-captions ripper (also allows you to download videos!)
01-14-2007 09:14 PM
Profile E-Mail PM Web Find Quote Report
PaulE
Junior Member
**


Posts: 28
Joined: Jul 2006
O.P. RE: RE: Add items to chatwindow
quote:
Originally posted by Mike
quote:
Originally posted by Ezra
he best way is to make a Plus! window and make it a child of the chatwindow. Place the window on the place where you want the buttons to be and the window should look like it's a part of the chatwindow, while it's not (Smilie)
Actually, that's not the best way, but the easiest way :P
The best way to do it would be to subclass the window, and on repaint messages add your own data to be drawn, so that WLM will treat what you added as it's own control (like MsgPlus! does it: Do a small test and make the window small. You will see that the MsgPlus! icons will hide into the arrow, because it thinks that the controls is its controls. If SetParent was used, then the icons would be there just floating (unless you used some more advanced methods))


:P

I'm not a whizz kid about WLM.. So i dont know how to do. The easit way is what i'm doing now :P

So how can i delete that border + bgcolor, and how to add an image?
01-14-2007 09:22 PM
Profile PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« 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