<document tinfo>
=======================================================
<data help>

<var document>
A document tag can hold all other tags. 
The attributes of the document tag can used to set 
attribute values to be followed throughout the document.
ex:- 
<document doc1,ver=1.0,bcolor="200,200,200">
<event docload>
</event>
</document>	
</var>

<var form>
A form tag represents a form that can hold GUI components.
ex:- 
<form form1,pos="10,10,900,900",bcolor="100,29,28">
</form>
</var>

<var button>
The button tag is used to create a configurable button.
ex:-
	<button button1,pos="10,10,100,100",uimage=button.gif>
	   <event click>
	   </event>
	</button>
</var>,

<var list>
List tag represents a selectable list of data. The list is initialized either by
placing comma separated elements in the body of the list tag or by
using messages supported by list.
ex:-
	<list list1,pos="10,10,200,500">
	<event select>
	</event>
	</list>
</var>

<var info>
The info tag can show HTML or other textual information.
It can also be used to edit textual information.
The default info tag object displays textual information and is not editable.
ex:-
<info info1,pos="0,0,1000,1000",html=true>
</info>
</var>
<var textf>
textf tag is used for displaying a text field to accept textual information.
ex-:
	<textf text1,pos="100,100,300,200">
	</textf>
</var>
<var image>
The image tag can be used to display a image along with any background with specified 
alignment.
ex:-
<image img1,pos="100,100,400,200",image=orange.gif,align=c>
</image>
</var>

<var label>
The label tag is used to display a text label or an image label.
ex:-
<label label1,pos="100,100,400,200",text=Hello>
</label>
</var>
<var attr>
The attr tag is used to hold attributes to be used by several different tags in one place
so as to reduce the script size and attributes for several tags can be easily changed.
The name of the attr object to be used can be specified as a attribute to any 
other tag.
ex:-

<attr buttonattr>
bcolor="200,230,240",
border=0,
uimage=up.gif,
dimage=down.gif,
rimage=roll.gif,
</attr>
<button b1,pos="2,2,200,200",attr=buttonattr></button>
</var>

<var data>
The data tag can be used to hold data. It can hold strings,
lists of values, and key=value pairs in variables declated within the data tag.
For initializing variables with string consisting of the seperatior ',' the
var subtag can be used.
To initialize a variable with a list of data the dlist sub tag can be used.
To initialize a variable with a map the dmap subtag can be used.
ex:-
<data data1>
text=hello,
<var script> this is head of  button tag<button b1> </var>
<dlist list>one,two,three,four</dlist>
<dmap map>name=harry,age=23,sex=male,occupation=doctor</dmap>
</data>
</var>

<var branch>
The branch tag is used for branching of control.
ex:-
<branch b1>
<event zero>
</event>
<event !zero>
</event>
</branch>
</var>

<var event>
The event tag is used to represent events generated by different controls.
</var>
<var taginfo>
The taginfo tag is used to provide information to the interpreter about new tags.
The information about new tags are provided within the tag body as
tagname interpreterClass,
ex:-
	<taginfo>
	 ani package.Animation,
	 play package.Sound,
	</taginfo>


</var>
<var declare>
The declare tag is used to declare identifiers for remote VSR's that might be used.
Declaration is done in the tag body as.
VSR identifier
ex:-
	<declare>
	 VSR server,
	 VSR mail,
	</declare>
</var>


temp=temp,

</data>

=======================================================
<data attr>
<dlist button>attr, visible,enabled,bcolor,fcolor,pos,border,resize,text,dimage,uimage,rimage,offset,baseurl,toggle
</dlist>,
<dlist form>attr,visible,enabled,bcolor,fcolor,border,pos,bimage,align,zoom,baseurl,resize</dlist>
<dlist image>attr,visible,enabled,bcolor,fcolor,border,pos,bimage,align,zoom,image,resize</dlist>
<dlist document>bcolor,fcolor,border,bordercolor1,bordercolor2,ver</dlist>
<dlist info>attr,visible,enabled,bcolor,fcolor,border,pos,editable,html</dlist>
<dlist label>attr,visible,enabled,bcolor,fcolor,border,pos,text,image,textalign</dlist>
<dlist list>attr,visible,enabled,bcolor,fcolor,border,pos</dlist>
<dlist textf>attr,visible,enabled,bcolor,fcolor,border,pos,text,label,image</dlist>
<dlist attr></dlist>
<dlist data></dlist>
<dlist branch></dlist>
<dlist event></dlist>
<dlist taginfo></dlist>
<dlist declare></dlist>

<dmap  teditor>bcolor=color,fcolor=color,pos=pos,border=border,visible=bool,enabled=bool,
resize=bool,toggle=bool,zoom=bool,editable=bool,html=bool,
bimage=text,baseurl=text,image=text,text=text,label=text,uimage=text,dimage=text,rimage=text,
offset=text,ver=text,textalign=text,attr=text,
align=align,
bordercolor1=color,bordercolor2=color,
</dmap>
====attribute help information=========
<var htextalign>Helps to align the text. Valid values - left,right,center.</var>
<var halign>Determines the alignment of image.</var>
<var hpos>Position of component sepcified as on a 1000 by 1000 pixel screen.</var>
<var hbcolor>Background color. Color values are specified as "r,g,b".</var>
<var hfcolor>Foreground color. Color values are specified as "r,g,b".</var>
<var hborder>Border around the component. Valid values 0 - 6.</var>
<var hzoom>The background image zooms to fit the component size.</var>
<var himage>Specify URL to image. Can be relative to user directory or codebase.</var>
<var hbimage>Background image URL. Can be relative to user directory or codebase.</var>
<var huimage>Up image URL. Can be relative to user directory or codebase.</var>
<var hdimage>Down image URL. Can be relative to user directory or codebase.</var>
<var hrimage>Roll image URL. Can be relative to user directory or codebase.</var>
<var hattr>Used to specify name of attr tag holding attributes and values.</var>


temp=temp,
</data>
=======================================================
<data message>
<dlist document>show,passmsg</dlist>

<dlist button>settext,on,off,show,hide,enable,disable,bcolor,fcolor,border,resize,passmsg
</dlist>,

<dlist form>align,clear,show,hide,enable,disable,bcolor,fcolor,border,resize,passmsg</dlist>
<dlist image>loadimage,align,clear,show,hide,enable,
disable,bcolor,fcolor,border,resize,passmsg</dlist>

<dlist info>
scrolldown,clear,display,insert,append,newline,loadfile,show,hide,enable,disable,bcolor,fcolor,border,resize,passmsg
</dlist>
<dlist label>settext,seticon,show,hide,enable,disable,bcolor,fcolor,border,resize,passmsg</dlist>
<dlist list>clear,add,select,show,hide,enable,disable,bcolor,fcolor,border,resize,passmsg</dlist>
<dlist textf>
clear,settext,setlabeltext,seticon,show,hide,enable,disable,bcolor,fcolor,border,resize,passmsg
</dlist>
<dlist attr>passmsg</dlist>
<dlist data>clear,remove,set,setlist,setmap,assign,addval,add,sub,mul,div,inc,dec,addpos,
passmsg</dlist>

<dlist branch>switch,equals,equalsic,startswith,endswith,eq,lt,gt,lte,gte,passmsg</dlist>
<dlist event></dlist>
<dlist taginfo></dlist>
<dlist declare></dlist>

temp=temp,
</data>

for providing information about messages.
=========================================
msgall used to provide information about common ser of messages.

<data msgall>
<var passmsg>passmsg() - Pass the message to specified destination. It is used in order
	to make sure all place holders are processed before message is send.
	This message is understood by all messagable components.
</var>

<var show>show() - Display the component.</var>
<var hide>hide() - Hide the component.</var>
<var bcolor>bcolor(arg) - Set the background color. 
arg - color value as "x,x,x".
Ex:- bcolor("200,100,100")
</var>
<var fcolor>fcolor(arg) - Set the foreground color. 
arg - color value as "x,x,x". 
Ex:- bcolor("200,100,100")
</var>
<var border>border(arg) - Set the border.
arg - Value in the range 0 - 6.
</var>
<var resize>resize(arg) - Set the position.
arg - Value as "x,x,x,x".
Ex:- resize("100,100,400,400")
</var>
<var enable>enable() - Enable the component.</var>
<var disable>disable() - Disable the component.</var>

<var align>align(arg) - Used to align image displayed in image or form tags.
The argument can be any one of c,l,r,t,b,cl,cr,ct,cb.
</var>
</data>

<data msgdocument>
</data>


<data msgform>
<var  clear>clear() - Used to clear the image displayed in the form.</var>
</data>

<data msgbutton>
<var settext>settext(arg) - Used to set the text on the button.</var>
<var on>on() - Used to switch on a toggle button.</var>
<var off>off() - Used to switch off a toggle button.</var>
</data>


<data msglist>
<var  clear>clear() - Used to clear the contents in the list.</var>
<var  add>add(arg) - Used to add contents to list.
arg - must be comma seperated list of elements.	</var>
<var  select>select(arg) - Used to select element at specified index.
arg - index to be selected.
</var>
</data>


<data msginfo>
<var  clear>clear() - Used to clear the contents.</var>
<var  append>append(arg) - Used to append contents.
arg - can be any textual information.</var>
<var  display>display(arg) - Used to display the specified information.</var>
<var  insert>insert(arg) - Used to insert content at the current cursor position.</var>
<var  loadfile>loadfile(arg) - Used to load the content in the specified url.
arg - the url of the file. If only filename is provided the file
is loaded from working directory or codebase.
</var>
<var  scrolldown>scrolldown() - Used to scroll down to end of text.</var>
<var  newline>newline() - Inserts a new line character.</var>

</data>

<data msgtextf>
<var settext>settext(arg) - Used to set the text on the text field.</var>
<var  seticon>seticonr(arg) - Used to change the icon if present.</var>
<var  clear>clear() - Used to clear the text field.</var>
<var  setlabeltext>setlabeltext(arg) - Used to change the text displayed on the label.</var>
</data>


<data msgimage>
<var clear>clear() - Used to clear the image.</var>
<var align>align(arg) - Used to align the image.
arg - can be one of l,r,t,b,cl,cr,ct,cb </var>
<var loadimage>loadimage(arg) - Used to load the specified image.
arg - the url to the image to be loaded. If full url is not specified the image
is loaded from user directory or codebase.
</var>
</data>


<data msglabel>
<var settext>settext(arg) - Used to set the text for the label.</var>
<var  seticon>seticon(arg) - Used to set the icon for the label.
arg - the url to the image to be loaded. If full url is not specified the image
is loaded from user directory or codebase.
</var>
</data>

<data msgattr>
</data>

<data msgdata>
<var clear>clear(arg) - Clear the contents of the specified variable.
arg - the name of the variable.
</var>
<var remove>remove(arg1,arg2) - Remove value  specified as arg2 from the list or
map specifiedusing arg1.
arg1 - the name of the map or list variable.
arg2 - the value to be removed.
</var>

<var set>set(arg1,arg2) - Set the value of variable specified using arg1 with value
specified with arg2.</var>
<var setlist>setlist(arg1,arg2) - Set the value of variable specified using arg1 with 
list value specified with arg2.The value is expected to be comma seperated elements.</var>

<var setmap>setmap(arg1,arg2) - Set the value of variable specified using arg1 with 
map value specified with arg2.The value is expected to be comma seperated
 key=value elements.</var>

<var assign>assign(arg1,arg2) - Here the value of variable arg1 is assigned to 
variable arg2.
arg1 - the name of first variable.
arg2 - the name of second variable.
</var>

<var addval>addval(arg1,arg2) - The value specified using arg1 is appended
to value of variable arg1.
arg1 - name of variable.
arg2 - value to be appended.
</var>

<var add>add(arg1,arg2,arg3) - The result of adding variables arg1 + arg2 is placed in
variable arg3. arg1,arg2,arg3 are names of variables.</var>
<var sub>sub(arg1,arg2,arg3) - The result of subtracting variables arg1 - arg2 is placed in
variable arg3. arg1,arg2,arg3 are names of variables.</var>
<var mul>mul(arg1,arg2,arg3) - The result of multiplying variables arg1 * arg2 is placed in
variable arg3. arg1,arg2,arg3 are names of variables.</var>
<var div>div(arg1,arg2,arg3) - The result of dividing variables arg1 / arg2 is placed in
variable arg3. arg1,arg2,arg3 are names of variables.</var>

<var inc>inc(arg) - The value of variable arg is incremented by 1.</var>

<var dec>dec(arg) - The value of variable arg is decremented by 1.</var>

<var addpos>addpos(arg1,arg2) -  This helps to increment position value held in arg1 
variable with specified position value in arg2.
The value of arg1 variable  and value specified as arg2 are expected 
to be of the form "x,x,x,x".</var>
</data>

<data msgbranch>
<var switch>switch(arg) - Event corresponding to specified argument is generated.
switch(arg1,arg2) - If a matching event for arg1 is not present then the arg2 event is
 generated.
</var>
<var equals>equals(arg1,arg2,arg3) - If arg1==arg2 then event specified by arg3 is generated.
else !arg3 event is generated. </var>
<var equalsic>equalsic(arg1,arg2,arg3) - same as equals, but the case of the compared strings is 
ignored.</var>
<var startswith>startswith(arg1,arg2,arg3) - If arg1 starts with arg2 then event specified by arg3 is generated.
else !arg3 event is generated. </var>

<var endswith>endswith(arg1,arg2,arg3) - If arg1 ends with arg2 then event specified by arg3 is  generated.
else !arg3 event is generated. </var>

<var eq>eq(arg1,arg2,arg3) - Used for comparing numbers, if arg1 == arg2 then event arg3 is 
 generated.
else !arg3 event is generated. </var>

<var lt>lt(arg1,arg2,arg3) - Used for comparing numbers, if arg1<arg2 then event arg3 is 
 generated.
else !arg3 event is generated. </var>

<var gt>gt(arg1,arg2,arg3) - Used for comparing numbers, if arg1>arg2 then event arg3 is 
 generated.
else !arg3 event is generated. </var>

<var lte>lte(arg1,arg2,arg3) - Used for comparing numbers, if arg1<=arg2 then event arg3 is 
 generated.
else !arg3 event is generated. </var>

<var gte>gte(arg1,arg2,arg3) - Used for comparing numbers, if arg1>=arg2 then event arg3 is 
 generated.
else !arg3 event is generated. </var>

</data>

=======================================================
<data event>
<dlist button>click,mousein,mouseout</dlist>,
<dlist document>docload,docunload</dlist>,
<dlist form>formload,formunload,formshow,formhide</dlist>,
<dlist list>select,mousein,mouseout,click</dlist>,
<dlist info></dlist>,
<dlist textf>action</dlist>,
<dlist image></dlist>,
<dlist label></dlist>,
<dlist attr></dlist>,
<dlist data></dlist>,
<dlist branch>event</dlist>,
<dlist event></dlist>,
<dlist taginfo></dlist>,
<dlist declare></dlist>,
temp=temp,
</data>

<data evtdocument>
<var docload>Generated when the document is loaded.
The event is generated only once.
</var>
<var docunload>Generated when the document is unloaded.
The event is generated only once.
</var>
</data>

<data evtform>
<var formload>Generated once, when form is loaded for the first time.</var>
<var formunload>Generated once, When form is unloaded form memory.</var>
<var formshow>Generated when ever form gets the show message.</var>
<var formhide>When form is hidden. Only the last form that was shown
gets the form hideevent, this might be a form placed within another form.</var>
</data>


<data evtbutton>
<var click>Event is generated when user clicks the button.</var>
<var mousein>Generated when mouse enters the button.</var>
<var mouseout>Generated when mouse leaves the button.</var>
</data>

<data evtlist>
<var select>Event is generated when an item in the list is selected by the user
or as a result of the select message.</var>
<var mousein>When mouse enters the list.</var>
<var mouseout>When mouse leaves the list.</var>
<var click>When mouse is clicked.</var>
</data>

<data evttextf>
<var action>Generated after text is entered into the text field.</var>
</data>


<data evtbranch>
<var event>The generated event depends on the event name specified in the 
messaeg passed to the branch object.</var>
</data>

=======================================================
<data dataval>

<dlist document></dlist>,
<dlist form></dlist>,
<dlist button>data</dlist>,
<dlist list>data,next,prev,index</dlist>,
<dlist info>data,content</dlist>,
<dlist textf>data,labeldata</dlist>,
<dlist image></dlist>,
<dlist label>data</dlist>,
<dlist attr>attribute</dlist>,
<dlist branch></dlist>,
<dlist event></dlist>,
<dlist data>vname,vname.next,vname.prev,vname.curr,vname.index.val,
vname.val,vname.key,vname.val.key,vname.index.int,vname.check.val,</dlist>,
<dlist taginfo></dlist>
<dlist declare></dlist>

temp=temp,
</data>


<data dvbutton>
<var data>The text displayed on the button.</var>
</data>

<data dvlist>
<var data>The current selected item. If no selection null is returned.</var>
<var next>The next item. If no selection null is returned.</var>
<var prev>The previous item. If no selection null is returned.</var>
<var index>The index of selected item. If no selection -1 is returned.</var>
</data>

<data dvinfo>
<var data>The data loaded to the info object is returned.If HTML data is 
loaded the actual HTML script is returned.</var>
<var content>The textual content is returned.</var>
</data>

<data dvtextf>
<var data>The text entered in the text field.</var>
<var labeldata>The text on the label.</var>
</data>


<data dvlabel>
<var data>The text on the label.</var>
</data>

<data dvattr>
<var attribute>All values of all specified attributes can be obtained 
from the attr tag by passing the name of the attribute.
ex:- To get value of bcolor attribute use #.get(bcolor)#.
</var>
</data>

<data dvdata>
<var vname>If the variable name is passed the value associated with the variable 
is returned. 
</var>
</data>

=======================================================
the tags to be added.
<data tags>
<dlist taglist>
document,form,button,list,info,textf,image,label,attr,data,branch,event,taginfo,declare
</dlist>
<var button><button id,></button></var>
<var form><form id,></form></var>
<var document><document id,></document></var>
<var list><list id,></list></var>
<var info><info id,></info></var>
<var textf><textf id,></textf></var>
<var image><image id,></image></var>
<var label><label id,></label></var>
<var attr><attr id></attr></var>
<var data><data id></data></var>
<var branch><branch id></branch></var>
<var event><event id></event></var>
<var taginfo><taginfo></taginfo></var>
<var declare><declare></declare></var>
</data>

</document>

