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
MediaPortal 1
MediaPortal 1 Plugins
Help needed: Writing own GUIDialog for Plugin
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="junkixl" data-source="post: 380305" data-attributes="member: 54963"><p>Hi,</p><p></p><p>I'm playing around with my first window plugin and now I got some problems with the GUIDialogs.</p><p>To be more precise, I try to write my own one.</p><p></p><p>I created a new class and inherited MediaPortal.Dialogs.GUIDialogWindow (the whole class is nearly a copy of GUIDialogYesNo). Then, I created my own skinfile (also, nearly a copy of dialogYesNo.xml).</p><p></p><p>to load and show the dialog, i tried it with the following code</p><p>[CODE]</p><p>GUIDialogMyOwnOne dlg = new GUIDialogMyOwnOne();</p><p>dlg.DoModal(GetID);</p><p>[/CODE]</p><p>But it failed (of course <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /> )</p><p>It seems, that I have to use the GUIWindowManager. But I have no idea how to do that.</p><p>If I want to load and show one of the existing ones, the GUIWindowManager gives me an Instance of a specified dialog. I just have to pass him some kind of WindowID. </p><p>But my own Dialog has no such WindowID.</p><p>How could I add my own WindowID to the existing ones?</p><p>Is there a simpler way to display a completely customised dialog (I would like to use any control I could use for skins)?</p><p></p><p>Any ideas?</p><p></p><p>Greez</p><p>JunkiXL</p></blockquote><p></p>
[QUOTE="junkixl, post: 380305, member: 54963"] Hi, I'm playing around with my first window plugin and now I got some problems with the GUIDialogs. To be more precise, I try to write my own one. I created a new class and inherited MediaPortal.Dialogs.GUIDialogWindow (the whole class is nearly a copy of GUIDialogYesNo). Then, I created my own skinfile (also, nearly a copy of dialogYesNo.xml). to load and show the dialog, i tried it with the following code [CODE] GUIDialogMyOwnOne dlg = new GUIDialogMyOwnOne(); dlg.DoModal(GetID); [/CODE] But it failed (of course :( ) It seems, that I have to use the GUIWindowManager. But I have no idea how to do that. If I want to load and show one of the existing ones, the GUIWindowManager gives me an Instance of a specified dialog. I just have to pass him some kind of WindowID. But my own Dialog has no such WindowID. How could I add my own WindowID to the existing ones? Is there a simpler way to display a completely customised dialog (I would like to use any control I could use for skins)? Any ideas? Greez JunkiXL [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Help needed: Writing own GUIDialog for Plugin
Contact us
RSS
Top
Bottom