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
Probs with label control
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="Tomato" data-source="post: 136745" data-attributes="member: 47451"><p>So. Hopefully this time there is an answer.</p><p></p><p>If my questions are just too stupid and can be solved by RTFM: Please tell me. Didn't find any stuff about this.<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite5" alt=":confused:" title="Confused :confused:" loading="lazy" data-shortname=":confused:" /> </p><p></p><p></p><p>So.. I tried to insert a little status-Label about what is happening when logging on to icq. This is part of the code:</p><p></p><p>[CODE] </p><p></p><p> [SkinControlAttribute(1)] protected GUILabelControl ICQStatus = null;</p><p></p><p>(lateron)</p><p></p><p> private void showMsg(string title, ArrayList Lines)</p><p> {</p><p> GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK);</p><p> dlg.SetHeading(title);</p><p> for (int i=0; i<Lines.Count; i++) {</p><p> dlg.SetLine(i+1,(string)Lines[i]);</p><p> }</p><p> dlg.DoModal(GUIWindowManager.ActiveWindow);</p><p> }</p><p></p><p></p><p> private void sess_WarningMessage(Session sess, ServerErrorCode error)</p><p> {</p><p></p><p> ArrayList Msg = new ArrayList();</p><p> Msg.Add(error.ToString());</p><p> </p><p> [B]ICQStatus.Label = error.ToString();[/B]</p><p> showMsg("ICQ Warning!", Msg);</p><p> </p><p> }</p><p></p><p>[/CODE]</p><p></p><p>Snippet of the xml-File:</p><p>[CODE] <control></p><p> <description>ICQ Status</description></p><p> <type>label</type></p><p> <id>1</id></p><p> <posX>250</posX></p><p> <posY>50</posY></p><p> <label>(please wait...)</label></p><p> <font>font16</font></p><p> <align>right</align></p><p> <textcolor>ffffffff</textcolor></p><p> </control></p><p>[/CODE]</p><p></p><p>When the WarningMessage Event is fired mediaportal just closes without any error message. It must be because of the <em>ICQStatus.Label... </em>Part, cause without this line everything works just fine (a messagebox with the desired information pops up).</p><p></p><p>BTW: If there is a messagebox like the GUIDialogxxx that disappears automaticly without pressing a OK-Button; That would a solution for my problem, too.</p><p></p><p>Thx a lot</p></blockquote><p></p>
[QUOTE="Tomato, post: 136745, member: 47451"] So. Hopefully this time there is an answer. If my questions are just too stupid and can be solved by RTFM: Please tell me. Didn't find any stuff about this.:S So.. I tried to insert a little status-Label about what is happening when logging on to icq. This is part of the code: [CODE] [SkinControlAttribute(1)] protected GUILabelControl ICQStatus = null; (lateron) private void showMsg(string title, ArrayList Lines) { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); dlg.SetHeading(title); for (int i=0; i<Lines.Count; i++) { dlg.SetLine(i+1,(string)Lines[i]); } dlg.DoModal(GUIWindowManager.ActiveWindow); } private void sess_WarningMessage(Session sess, ServerErrorCode error) { ArrayList Msg = new ArrayList(); Msg.Add(error.ToString()); [B]ICQStatus.Label = error.ToString();[/B] showMsg("ICQ Warning!", Msg); } [/CODE] Snippet of the xml-File: [CODE] <control> <description>ICQ Status</description> <type>label</type> <id>1</id> <posX>250</posX> <posY>50</posY> <label>(please wait...)</label> <font>font16</font> <align>right</align> <textcolor>ffffffff</textcolor> </control> [/CODE] When the WarningMessage Event is fired mediaportal just closes without any error message. It must be because of the [I]ICQStatus.Label... [/I]Part, cause without this line everything works just fine (a messagebox with the desired information pops up). BTW: If there is a messagebox like the GUIDialogxxx that disappears automaticly without pressing a OK-Button; That would a solution for my problem, too. Thx a lot [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Probs with label control
Contact us
RSS
Top
Bottom