What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Why my OnWindowidEvent_CtrlClicked is not fired up?

Why my OnWindowidEvent_CtrlClicked is not fired up?
Author: Message:
Lobo
New Member
*


Posts: 7
Joined: May 2007
O.P. Huh?  Why my OnWindowidEvent_CtrlClicked is not fired up?
This is my window xml:
code:
<Interfaces xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

        <Window Id="miVentana" Version="1">
            <Attributes>
                <Caption>Test Window</Caption>
            </Attributes>

            <TitleBar>
                <Title><Text>Hello!</Text></Title>
            </TitleBar>

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

            <Controls>
                <Control xsi:type="StaticControl" Id="LblTop">
                    <Position Left="10" Top="10" Width="150"/>
                    <Caption>Hello world!</Caption>
                </Control>

                <Control xsi:type="ButtonControl" Id="BtnClose">
                    <Position Left="112" Top="25" Width="50"/>
                    <Caption>Close</Caption>
                </Control>
            </Controls>
        </Window>

</Interfaces>

Now, this is how I call my Window:
code:
function OnEvent_MenuClicked(MenuItemId, Location, OriginWnd)
{
    if (Location == 2)
    {
        switch (MenuItemId)
        {
            case "op1":
            {
                MsgPlus.DisplayToast("", "Smallville");
                break;
            }
            case "op2":
            {
                MsgPlus.DisplayToast("", "Superman");
                break;
            }
            case "op":
            {
                miVentana = MsgPlus.CreateWnd("JoelWnd.xml", "miVentana");
                break;
            }
        }
    }
}

Now, why my OnWindowidEvent_CtrlClicked doesn't work :-#
code:
function OnWindowidEvent_CtrlClicked(PlusWnd, ControlId)
{
    Debug.trace(ControlId);
}

05-21-2007 07:31 PM
Profile E-Mail PM Find Quote Report
Lobo
New Member
*


Posts: 7
Joined: May 2007
O.P. RE: Why my OnWindowidEvent_CtrlClicked is not fired up?
Nevermind! I read an old post I found my bug =P
05-21-2007 07:49 PM
Profile E-Mail PM Find Quote Report
joey
Senior Member
****

Avatar
Epoc Faileur.

Posts: 734
Reputation: 26
34 / Other / Flag
Joined: Dec 2006
RE: Why my OnWindowidEvent_CtrlClicked is not fired up?
delete the thread then =p

Break my heart all you want, i'm on the NHS.
ever wondered what it's like to ejaculate through your ears...? ;o
05-21-2007 07:52 PM
Profile E-Mail PM Web 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