What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Solved] Xml windows with Frame

Pages: (2): « First [ 1 ] 2 » Last »
[Solved] Xml windows with Frame
Author: Message:
Tiller
New Member
*

Avatar

Posts: 8
Joined: Apr 2008
O.P. [Solved] Xml windows with Frame
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

This post was edited on 04-26-2008 at 10:43 AM by Tiller.
04-24-2008 02:54 PM
Profile E-Mail PM Find Quote Report
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
RE: [Question] Xml windows with Frame
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 :)

This post was edited on 04-24-2008 at 03:06 PM by MeEtc.
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
04-24-2008 03:06 PM
Profile PM Web Find Quote Report
Tiller
New Member
*

Avatar

Posts: 8
Joined: Apr 2008
O.P. RE: [Question] Xml windows with Frame
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!

This post was edited on 04-24-2008 at 03:57 PM by Tiller.
04-24-2008 03:55 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [Question] Xml windows with Frame
You need to create a browser control in your XML and use the Browser_GetInterface() function to control it.
04-24-2008 03:58 PM
Profile E-Mail PM Find Quote Report
Tiller
New Member
*

Avatar

Posts: 8
Joined: Apr 2008
O.P. RE: [Question] Xml windows with Frame
Yes it's that, i would like to know how put this control ^^
code:
<Control xsi:type="~" Id="Nav">

This post was edited on 04-24-2008 at 04:07 PM by Tiller.
04-24-2008 04:07 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [Question] Xml windows with Frame
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?
04-24-2008 04:20 PM
Profile E-Mail PM Find Quote Report
Tiller
New Member
*

Avatar

Posts: 8
Joined: Apr 2008
O.P. RE: [Question] Xml windows with Frame
Yes... http://mpscripts.net/docs/ that?

Maybe sould I read it again? ^^
04-24-2008 04:27 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [Question] Xml windows with Frame
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.

.zip File Attachment: MPLScripting.zip (973.88 KB)
This file has been downloaded 199 time(s).
04-24-2008 04:29 PM
Profile E-Mail PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: [Question] Xml windows with Frame
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!!!

This post was edited on 04-24-2008 at 04:42 PM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
04-24-2008 04:33 PM
Profile E-Mail PM Web Find Quote Report
Tiller
New Member
*

Avatar

Posts: 8
Joined: Apr 2008
O.P. RE: [Question] Xml windows with Frame
Thanks you a lot all! ^_^
04-24-2008 04:46 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On