View Single Post
Old 2008-04-02, 14:48   #1 (permalink)
Zarra
Portal Member
 
Join Date: Mar 2008
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default activate a second window please help

i m writing a plugin and i have some question please help me because i m trying for two week and i dont find a

solution:

1. How can i Activate new window i use this Method

GUIWindowManager.ActivateWindow(8110, true);

but it didint work, i become a black window:

This is the code for the second window what i try to call from the first window

HTML Code:
  class Media2: GUIWindow
    {

        public Media2()
        {

        }
        public override int GetID
        {
            get
            {
                return 8110;
            }
            set
            {
                base.GetID = value;
            }
        }

        public override bool Init()
        {
            return Load(GUIGraphicsContext.Skin + @"\Oerflaeche2b.xml");
        }

        protected override void OnPageLoad()
        {
            MessageBox.Show("Oberflaeche2 " );
            base.OnPageLoad();
        }

        protected override void OnPageDestroy(int new_windowId)
        {

            base.OnPageDestroy(new_windowId);
        }

        protected override void OnClicked(int controlId, GUIControl control, Action.ActionType actionType)
        {

            base.OnClicked(controlId, control, actionType);
        }

        public override bool OnMessage(GUIMessage message)
        {
            if (message.Message == GUIMessage.MessageType.GUI_MSG_ITEM_FOCUS || message.Message == GUIMessage.MessageType.GUI_MSG_ITEM_FOCUS_CHANGED)
            {

            }
            return base.OnMessage(message);
        }
    }
please help me and thank you

please havent sonme one any idea, i m waiting

Last edited by Zarra; 2008-04-02 at 17:20. Reason: Automerged Doublepost
Zarra is offline   Reply With Quote