home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Language specific support
Deutsches MediaPortal Forum
Plugins & Skins für das MediaPortal
Plugins & Erweiterungen
Einsteiger Fragen bei PlugIns
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Zarra" data-source="post: 251130" data-attributes="member: 70851"><p>Hi,</p><p></p><p>Danke für dein Antwort,</p><p>Ja ich habe WIKI gelsen, und ein PlugIn zu programmieren habe ich auch sschon geschafft,</p><p></p><p>Mein Probelem das ich jedes mal ein andere GUI (WIndow oder XML) benutzen will wenn ich auf den Button drucken </p><p></p><p>will dafür benutze ich die Methode wie es in WIKI steht:</p><p></p><p></p><p>GUIWindowManager.ActivateWindow(8110, true);</p><p></p><p>und die Klasse in C# für den 2 Window sieht so aus:</p><p></p><p>This is the code for the second window what i try to call from the first window</p><p></p><p> </p><p>HTML-Code:</p><p> </p><p> </p><p> </p><p>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); } }</p><p></p><p>Aber wenn ich auf den Button drucke dann geht er wieder zur Hauptmenü und nicht zur neue Window.</p><p></p><p>Hast du einer Idee wäre sehr dankbar</p><p></p><p>Gruß</p></blockquote><p></p>
[QUOTE="Zarra, post: 251130, member: 70851"] Hi, Danke für dein Antwort, Ja ich habe WIKI gelsen, und ein PlugIn zu programmieren habe ich auch sschon geschafft, Mein Probelem das ich jedes mal ein andere GUI (WIndow oder XML) benutzen will wenn ich auf den Button drucken will dafür benutze ich die Methode wie es in WIKI steht: GUIWindowManager.ActivateWindow(8110, true); und die Klasse in C# für den 2 Window sieht so aus: 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); } } Aber wenn ich auf den Button drucke dann geht er wieder zur Hauptmenü und nicht zur neue Window. Hast du einer Idee wäre sehr dankbar Gruß [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Language specific support
Deutsches MediaPortal Forum
Plugins & Skins für das MediaPortal
Plugins & Erweiterungen
Einsteiger Fragen bei PlugIns
Contact us
RSS
Top
Bottom