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.
So.. I tried to insert a little status-Label about what is happening when logging on to icq. This is part of the code:
Snippet of the xml-File:
When the WarningMessage Event is fired mediaportal just closes without any error message. It must be because of the ICQStatus.Label... 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
If my questions are just too stupid and can be solved by RTFM: Please tell me. Didn't find any stuff about this.
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);
}
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>
When the WarningMessage Event is fired mediaportal just closes without any error message. It must be because of the ICQStatus.Label... 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