Video Mixer - UserControls not visible ? (1 Viewer)

kroko

Portal Pro
February 4, 2007
428
420
55
Itzehoe
Home Country
Germany Germany
Hi,

I have a strange problem. I added a usercontrol to my plugin. Everything is fine in the 0.2.2.0 and older svn. Right now in the actual svn the usercontrol seems to be in the background or is not rendered correctly. I add the control like this:

public static MyOSD osd; // MyOSD is a usercontrol
..
OnPageLoad()
..
osd = new MyOSD();

GUIGraphicsContext.form.Controls.Add(osd);
GUIGraphicsContext.form.Focus();


It works in windowed mode without any problem. Only in fullscreen this problem appear. If I disable DirectX exclusive mode it also works but the MP is rendered wrong on my desktop.

Has anything changed so far ? Any suggestions ?

Greetz
kroko
 

kroko

Portal Pro
February 4, 2007
428
420
55
Itzehoe
Home Country
Germany Germany
I played arround a little bit and found a workaround ->

disable the directX exclusive mode on page_load

Log.Info("DBox2 plugin: Disabling DX9 exclusive mode");
GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_SWITCH_FULL_WINDOWED, 0, 0, 0, 0, 0, null);
GUIWindowManager.SendMessage(msg);

Now it works, but still very strange what has been changed....

Greetz
kroko
 

Users who are viewing this thread

Top Bottom