In OnSettingChanged you need to update the local variable...After this line:
Originally Posted by martin_p
Add in something like this:
if (s.Name == (m_EmbedAppString + ".DisplayName")):
m_DisplayName = s.Value;
Also your second for loop should be:
for (int j = 1; j <= 3; j++)
The reason the app doesn't start is because you wrote:
for (int j = 1; i <= 3; j++)
m_exe = settings.getSetting(m_EmbedAppString + "");
Also you wrote:
m_exe = settings.getSetting(m_EmbedAppString + ".Exe");
and it should be:
if (m_Embedded && (arg2 == m_EmbedAppString))
if (!m_Embedded && (arg2 == m_EmbedAppString))
To write something in the debug log file:
host.sendMessage("OMDebug","YourPluginName","The text you want in the debug log")
ok, thanks again for precious help, I think in the week end I will try it and let you know if it works.
Do you think the embedding in this case will be "integrated" into the UI and not separated window?
Now it works, it opens the application but in a separated window.
Attached the DLL and the code, if you like to put it somewhere as example.
Is there a way to phisically embed into the UI?
Move the openMobile window around and you will see that its fully embedded. The window is a resizable window which means it draws its border too...if you want to change the window style you will need to use platform specific API calls such as this on windows:
There is something other I need to learn about Win API calls. This is something similar to the example given by Borte, my problem was to get the window handle of the host to embed the google window.
I will try to play on it.
theHost.UIHandle(screen) returns the window handle
is there a way to cast the type object returned by this method in the int accepted by the SetParent procedure?
Originally Posted by martin_p
in openMobile you should be using the embedApplication function...that takes screen number as an int. If your talking about the windows SetParent API, that takes an IntPtr not an int... and theHost.UIHandle returns an IntPtr on windows (which you cast from an object)
Chat, you help is always precious! But you have to consider that, as my title says, I'm a newbie.
So yes, I can follow you, but sometime there's something that for you is implicit which for me instead is not.
Anyway I believe I fixed the problem as casting UIHandle into IntPtr, and then converting to an Int32 with the type method.
Now google appeared into the menu screen. So now the point is to detect the right screen number of my plug in. THe answer is here around, I'm sure, I only have to find it!
I'll let you know and as soon as I have the PI working I'll post it.
Thanks again for your availability.
I'm still playing with Google. Here attached what I developed to embed the rendering window directly in a OM panel.
I know, there is some "workaround" like win form panel and not using the OM embeding application method.
It's not the right way to code a plug in for OM.
But it works.
I have a couple of questions: is there a way to get the maximum useful dimensions of the panel (regardless of this plug-in)?
How to make the media bar and the volume to overlap to the panel? Probably there is no way if not using OMControls, but.....