Shoutbox

[Solved] Xml windows with Frame - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Solved] Xml windows with Frame (/showthread.php?tid=83369)

[Solved] Xml windows with Frame by Tiller on 04-24-2008 at 02:54 PM

quote:
Hello,

I'm new in scripting so i've got a question ;o

Well.. I would like to know how can i put a Frame (like <iframe> for exemple in html) in a windows (Xml file)
So, i just want to got a siteweb in my windows...

I searched but not found...

If someone can help me, thanks!

Ps: Sorry for my badly english

quote:
Thanks a lot for your answers!

I congrated!

But i've got an other question ^^

How can I remove the Right scrolling of the BrowserControl?

Thanks!

Thanks again for all answer, it's all done ;o
RE: [Question] Xml windows with Frame by MeEtc on 04-24-2008 at 03:06 PM

I'm not quite sure what you mean by a frame in your XML, I can think of 2 possible explanations.

First is a browsercontrol that is a web browser inside a script window. This is documented in the schema documentation. The window can be controlled with calls using the object retrieved with Browser_GetInterface() and information about the control at http://msdn2.microsoft.com/en-us/library/aa752084.aspx

The second thing I can think of is a child XML window, or a window within a window. This is constructed in the same way as a regular window, but one of the elements in the window properties is <ChildTmpl /> which is an empty element that replaces either of <WindowTmpl> or <DialogTmpl>. A child window can then be created on another existing parent with a call to MsgPlus.CreateChildWnd()

Hope that helps :)


RE: [Question] Xml windows with Frame by Tiller on 04-24-2008 at 03:55 PM

Huum, i think it's that but i don't see how i can use it :/
I will read again that link ;o

An example (Made with paint >.>):
[Image: sans_titre92042.jpg]

If someone know exactly how i can do that or know a script withit inside... Thanks!


RE: [Question] Xml windows with Frame by matty on 04-24-2008 at 03:58 PM

You need to create a browser control in your XML and use the Browser_GetInterface() function to control it.


RE: [Question] Xml windows with Frame by Tiller on 04-24-2008 at 04:07 PM

Yes it's that, i would like to know how put this control ^^

code:
<Control xsi:type="~" Id="Nav">

RE: [Question] Xml windows with Frame by matty on 04-24-2008 at 04:20 PM

quote:
Originally posted by Tiller
Yes it's that, i would like to know how put this control ^^
code:
<Control xsi:type="~" Id="Nav">

Did you read the Scripting Documentation?
RE: [Question] Xml windows with Frame by Tiller on 04-24-2008 at 04:27 PM

Yes... http://mpscripts.net/docs/ that?

Maybe sould I read it again? ^^


RE: [Question] Xml windows with Frame by matty on 04-24-2008 at 04:29 PM

Look over the attachment.

XML Schemas Reference > Interface Windows > Schema Documentation > Browser Control

The above is all you need to know about creating the browser control in XML.


RE: [Question] Xml windows with Frame by Matti on 04-24-2008 at 04:33 PM

In your XML, you can use something like this:

code:
<Control xsi:type="BrowserControl" Id="Nav">
   <Position Left="5" Top="5" Width="200" Height="150"/>
   <!-- These are some extra attributes. You don't need them to make it work, but it's just to show you how you should put them in the XML. Take a look at the scripting documentation! -->
   <Attributes>
      <HasBorder>true</HasBorder>
      <AllowFindText>true</AllowFindText>
      <AllowPrint>true</AllowPrint>
   </Attributes>
</Control>
where Nav is the desired control ID, and use the following JScript to make it do something useful:
code:
var BrowserInterface = PlusWnd.Browser_GetInterface("Nav");
BrowserInterface.Navigate2("http://www.google.com/");

or shorter:
code:
PlusWnd.Browser_GetInterface("Nav").Navigate2("http://www.google.com/");
where PlusWnd is the PlusWnd object containing the Nav browser control.

For more information about what you can do with this BrowserInterface object, go to the MSDN InternetExplorer Object reference.

ALTHOUGH I HIGHLY RECOMMEND YOU TO TRY FIRST BEFORE ASKING, AS TRYING SOMETHING IS THE ONLY WAY TO LEARN IT!!!
RE: [Question] Xml windows with Frame by Tiller on 04-24-2008 at 04:46 PM

Thanks you a lot all! ^_^


RE: [Solved] Xml windows with Frame by MeEtc on 04-24-2008 at 07:49 PM

Here's a script created by roflmao456 that may help you out a lot, its a web browser script.


RE: [Solved] Xml windows with Frame by Tiller on 04-25-2008 at 05:44 PM

Thanks a lot for your answers!

I congrated!

But i've got an other question ^^

How can I remove the Right scrolling of the BrowserControl?

Thanks!


RE: [Question] Xml windows with Frame by roflmao456 on 04-26-2008 at 12:27 AM

here's a more clearer example of the BrowserControl :)


RE: [Question] Xml windows with Frame by Tiller on 04-26-2008 at 07:32 AM

Thanks you but I don't see inside how I can remove the scrolling ^^

I think you wanna answer to my first post ^^


RE: [Question] Xml windows with Frame by felipEx on 04-26-2008 at 10:13 AM

@Tiller: the easiest and dodgiest way: set the "scroll" attribute for the "body" tag in your html code  :P

code:
...
<body scroll="no">
...

RE: [Question] Xml windows with Frame by Tiller on 04-26-2008 at 10:42 AM

...Thanks ^^
   
I never thought it was the HTML, I thought it depended on the object ^^


RE: [Solved] Xml windows with Frame by Matti on 04-26-2008 at 11:40 AM

Or, by using the more standardised method using CSS:

code:
<head>
...
<style type="text/css">
html, body {
   overflow: hidden;
}
</style>
...
</head>
It's more recommended to use the above method, as <body scroll="no"> is deprecated and only recognised by Internet Explorer. This might not sound as a problem, as Plus! uses an InternetExplorer object, but it's better to use standards to make your web page validate the W3C (X)HTML standards, to make it compatible with other browsers and to make it "future-proof". ;)