[REQUEST] How to create a window |
Author: |
Message: |
PaulE
Junior Member
Posts: 28
Joined: Jul 2006
|
O.P. [REQUEST] How to create a window
Hi,
This is my first Thread here, so i hope you gyz can read this
I am form The Netherlands so i dont think all that shit like here is right English..
Enough talked, lets come to the point.
I want to create a window like this:
But i dont know how...
I want that when i do '/showconfig' i get a window like that.
And then i want to edit my config for my script in that window.
I hope this is possible, and can help me with this...
Greetings,
Paul
This post was edited on 07-25-2006 at 09:40 AM by PaulE.
|
|
07-24-2006 03:38 PM |
|
|
RaceProUK
Elite Member
Posts: 6073 Reputation: 57
39 / /
Joined: Oct 2003
|
RE: [REQUEST] How to create a window
quote: Originally posted by PaulE
Enough talked
You mean 'enough said' Other than that, your English is good.
With Plus! scripts, windows are written in a dialect of XML. It's fully documented in the scripting documentation.
|
|
07-24-2006 04:01 PM |
|
|
PaulE
Junior Member
Posts: 28
Joined: Jul 2006
|
O.P. RE: RE: [REQUEST] How to create a window
quote: Originally posted by RaceProUK
quote: Originally posted by PaulE
Enough talked
You mean 'enough said' Other than that, your English is good.
With Plus! scripts, windows are written in a dialect of XML. It's fully documented in the scripting documentation.
Hehe
Yes, i saw that but that is not enough informatie for me to create a window like that only a window with Hello Wolrd! in it
|
|
07-24-2006 04:02 PM |
|
|
RaceProUK
Elite Member
Posts: 6073 Reputation: 57
39 / /
Joined: Oct 2003
|
RE: [REQUEST] How to create a window
It is enough information: you just have to make 2+2=5 Just start off by experimenting. Write something you think will create a dialog with a control or two, and see if it works. If it does, cool. If it doesn't, read the docs and see what you did wrong.
Before you know it, you'll be coding windows in your sleep
|
|
07-24-2006 04:06 PM |
|
|
matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: [REQUEST] How to create a window
quote: Originally posted by RaceProUK
It is enough information: you just have to make 2+2=5 Just start off by experimenting. Write something you think will create a dialog with a control or two, and see if it works. If it does, cool. If it doesn't, read the docs and see what you did wrong.
Before you know it, you'll be coding windows in your sleep
You know it might be good to provide examples.
Matty's reply to Cannot CreateChildWnd
|
|
07-24-2006 04:17 PM |
|
|
PaulE
Junior Member
Posts: 28
Joined: Jul 2006
|
O.P. RE: RE: [REQUEST] How to create a window
Look i got this at now:
code: var WndExample;
var WndChildExample;
function OnGetScriptMenu(nLocation){
var sMenu = "<ScriptMenu>";
sMenu += " <MenuEntry Id=\"mnuExample\">Example</MenuEntry>";
sMenu += "</ScriptMenu>";
return sMenu;
}
function OnEvent_MenuClicked(sMenuId, nLocation, ChatWnd){
if(sMenuId == "mnuExample"){
/*
Open up header
*/
WindowOpend [ 0 ] = MsgPlus.CreateWnd( 'gui.xmll', 'Header' );
/*
Open inside parent, child SideBar
*/
WindowOpend [ 1 ] = MsgPlus.CreateChildWnd( WindowOpend [ 0 ], 'gui.xml', 'SideBar', 9, 94, true );
/*
Open inside parent, child Main
*/
WindowOpend [ 2 ] = MsgPlus.CreateChildWnd( WindowOpend [ 0 ], 'gui.xml', 'Main', 180, 113, true );
/*
Open inside parent, child Main
*/
WindowOpend [ 3 ] = MsgPlus.CreateChildWnd( WindowOpend [ 0 ], 'gui.xml', 'Footer', 0, 0, true );
}
}
It is a part of a Robot script..
This xml file is with it:
http://www.webso.nl/msn/gui.xml (Just look in the source )
When i want to open the Example file, nothing happens
This post was edited on 07-24-2006 at 04:55 PM by PaulE.
|
|
07-24-2006 04:37 PM |
|
|
matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: [REQUEST] How to create a window
Is your XML file saved as unicode?
quote: Originally posted by PaulE
code: /*
Open up header
*/
WindowOpend [ 0 ] = MsgPlus.CreateWnd( 'gui.xmll', 'Header' );
should be only 1 letter l in the filename.
This post was edited on 07-24-2006 at 05:10 PM by matty.
|
|
07-24-2006 05:07 PM |
|
|
PaulE
Junior Member
Posts: 28
Joined: Jul 2006
|
O.P. RE: RE: [REQUEST] How to create a window
quote: Originally posted by Matty
Is your XML file saved as unicode?
quote: Originally posted by PaulE
code: /*
Open up header
*/
WindowOpend [ 0 ] = MsgPlus.CreateWnd( 'gui.xmll', 'Header' );
should be only 1 letter l in the filename.
Sorry read your post wrong
This post was edited on 07-24-2006 at 05:15 PM by PaulE.
|
|
07-24-2006 05:11 PM |
|
|
matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: [REQUEST] How to create a window
quote: Originally posted by PaulE
Sorry read your post wrong
When you try and load your XML file you get this error
quote: Originally posted by http://www.webso.nl/msn/gui.xml
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
Switch from current encoding to specified encoding not supported. Error processing resource 'http://www.webso.nl/msn/gui.xml'. Line 1, Position 40
<?xml version="1.0" encoding="UTF-16"?>
|
|
07-24-2006 05:16 PM |
|
|
PaulE
Junior Member
Posts: 28
Joined: Jul 2006
|
O.P. RE: RE: [REQUEST] How to create a window
quote: Originally posted by Matty
quote: Originally posted by PaulE
Sorry read your post wrong
When you try and load your XML file you get this error
quote: Originally posted by http://www.webso.nl/msn/gui.xml
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
Switch from current encoding to specified encoding not supported. Error processing resource 'http://www.webso.nl/msn/gui.xml'. Line 1, Position 40
<?xml version="1.0" encoding="UTF-16"?>
I changed the file name but still nothing happend...
Could you make al litte preview like the MSG Plus! Live configurator for me? I dont think you have time for it.. But i you have i realy like you
|
|
07-24-2006 05:20 PM |
|
|
Pages: (2):
« First
[ 1 ]
2
»
Last »
|
|