GUIWindow derived class property problem. (1 Viewer)

gljubojevic

Portal Member
September 25, 2006
18
0
52
Home Country
Croatia Croatia
Hi !

I have class declared like this:
Code:
public class FSVideoCut : GUIWindow, IRenderLayer

I create object like this:

Code:
// Create and init window
this._videoCutWindow = new FSVideoCut();
this._videoCutWindow.Init();
// Set file to cut
this._videoCutWindow.CutVideoFile = filePath;

Why cant I acess value of property "CutVideoFile"
OnMessage "GUI_MSG_WINDOW_INIT" ?

When I pass value in class constructor everything works fine ...

Other question is, Why "GUIWindowManager.Add(ref win);" requires passing GUIWindow object by reference it is strange because object instance is allready reference ?

Thanks, I'm loosing my mind here :(
 

gljubojevic

Portal Member
September 25, 2006
18
0
52
Home Country
Croatia Croatia
problem solved, more questions ...

Hi !

I have found that GUIWindowManager allready has instance of window I was trying to open and set property.

I'm new to writing MP plugins and I didn't know that Media Portal will Instance all my GUIWindows in plugin.

Anyway I would like someone to explain me few things:
1.) Why MP instances all GUIWidows from plugin?
2.) Is it possible to change that behaviour (to preserve resources)?
 

Users who are viewing this thread

Top Bottom