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
DialogNotify not displaying
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="charli181" data-source="post: 185073" data-attributes="member: 54408"><p>I am trying to write a plugin that just monitors a pop3 account and displays a notification on the screen. In the log files I can see that it is trying to display. This all run on RC2 with svn from 13/9/07. Tried Blue2 normal and wide still with same results.</p><p></p><p>2007-09-25 11:01:51.023392 [Info.][13]: WindowManager:route MediaPortal.GUI.Music.GUIMusicFiles:501->MediaPortal.Dialogs.GUIDialogNotify:2016</p><p>2007-09-25 11:01:54.738734 [Info.][13]: window:MediaPortal.Dialogs.GUIDialogNotify init</p><p></p><p>And Mediaportal when not in fullscreen shows "Notifications" in Title Bar, but nothing shows on the screen. What am I missing or is something broken.</p><p></p><p>Can someone check if I am missing something in the code. for displaying the the screen.</p><p></p><p>dialogNotify = (GUIDialogNotify)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_NOTIFY);</p><p></p><p>private static void ShowMessage(string theName)</p><p> {</p><p> string notifyText = "";</p><p> string notifyImage = "";</p><p> if (dialogNotify != null)</p><p> {</p><p> if (!string.IsNullOrEmpty(theName))</p><p> {</p><p> notifyText = theName + "\n\n";</p><p> //notifyImage = Thumbs.Yac + @"\text-message.jpg";</p><p> }</p><p> else</p><p> {</p><p> notifyText = theName + "\n\n" ;</p><p> //notifyImage = Thumbs.Yac + @"\text-message.jpg";</p><p> }</p><p></p><p> dialogNotify.SetHeading("Voicemail Alert");</p><p> dialogNotify.SetText(notifyText);</p><p> //dialogNotify.SetImage(notifyImage);</p><p></p><p> GUIWindow m_pParentWindow = GUIWindowManager.GetWindow(GUIWindowManager.ActiveWindow);</p><p> if (null == m_pParentWindow) { return; }</p><p> GUIWindowManager.IsSwitchingToNewWindow = true;</p><p> GUIWindowManager.RouteToWindow(dialogNotify.GetID);</p><p> GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_WINDOW_INIT, dialogNotify.GetID, 0, 0, -1, 0, null);</p><p> dialogNotify.OnMessage(msg);</p><p> GUIWindowManager.IsSwitchingToNewWindow = false;</p><p> }</p><p> }</p></blockquote><p></p>
[QUOTE="charli181, post: 185073, member: 54408"] I am trying to write a plugin that just monitors a pop3 account and displays a notification on the screen. In the log files I can see that it is trying to display. This all run on RC2 with svn from 13/9/07. Tried Blue2 normal and wide still with same results. 2007-09-25 11:01:51.023392 [Info.][13]: WindowManager:route MediaPortal.GUI.Music.GUIMusicFiles:501->MediaPortal.Dialogs.GUIDialogNotify:2016 2007-09-25 11:01:54.738734 [Info.][13]: window:MediaPortal.Dialogs.GUIDialogNotify init And Mediaportal when not in fullscreen shows "Notifications" in Title Bar, but nothing shows on the screen. What am I missing or is something broken. Can someone check if I am missing something in the code. for displaying the the screen. dialogNotify = (GUIDialogNotify)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_NOTIFY); private static void ShowMessage(string theName) { string notifyText = ""; string notifyImage = ""; if (dialogNotify != null) { if (!string.IsNullOrEmpty(theName)) { notifyText = theName + "\n\n"; //notifyImage = Thumbs.Yac + @"\text-message.jpg"; } else { notifyText = theName + "\n\n" ; //notifyImage = Thumbs.Yac + @"\text-message.jpg"; } dialogNotify.SetHeading("Voicemail Alert"); dialogNotify.SetText(notifyText); //dialogNotify.SetImage(notifyImage); GUIWindow m_pParentWindow = GUIWindowManager.GetWindow(GUIWindowManager.ActiveWindow); if (null == m_pParentWindow) { return; } GUIWindowManager.IsSwitchingToNewWindow = true; GUIWindowManager.RouteToWindow(dialogNotify.GetID); GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_WINDOW_INIT, dialogNotify.GetID, 0, 0, -1, 0, null); dialogNotify.OnMessage(msg); GUIWindowManager.IsSwitchingToNewWindow = false; } } [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
DialogNotify not displaying
Contact us
RSS
Top
Bottom