Hi!
I want to bind a Treeview.ImageList and an ImageList object on client.
in VB : set Treeview1.ImageList=ImageList1 is good
but in VBScript I have a message "Invalid Object"
see my code:
<%@ LANGUAGE="VBSCRIPT" %>
<HTML>
<BODY>
<OBJECT id=ImageList1 classid=clsid:2C247F23-8591-11D1-B16A-00C0F0283628 VIEWASTEXT>
<PARAM NAME="_ExtentX" VALUE="1005">
<PARAM NAME="_ExtentY" VALUE="1005">
<PARAM NAME="BackColor" VALUE="-2147483643">
<PARAM NAME="ImageWidth" VALUE="16">
<PARAM NAME="ImageHeight" VALUE="13">
<PARAM NAME="MaskColor" VALUE="12632256">
<PARAM NAME="UseMaskColor" VALUE="-1">
<PARAM NAME="_Version" VALUE="393216"></OBJECT>
<OBJECT id=TreeView1 style="LEFT: 0px; TOP: 0px" height=400 width=300 classid="CLSID:0713E8A2-850A-101B-AFC0-4210102A8DA7" VIEWASTEXT>
<PARAM NAME="_ExtentX" VALUE="7938">
<PARAM NAME="_ExtentY" VALUE="10583">
<PARAM NAME="_Version" VALUE="327682">
<PARAM NAME="HideSelection" VALUE="1">
<PARAM NAME="Indentation" VALUE="529">
<PARAM NAME="LabelEdit" VALUE="1">
<PARAM NAME="LineStyle" VALUE="1">
<PARAM NAME="PathSeparator" VALUE="\">
<PARAM NAME="Sorted" VALUE="0">
<PARAM NAME="Style" VALUE="7">
<PARAM NAME="ImageList" VALUE="">
<PARAM NAME="BorderStyle" VALUE="0">
<PARAM NAME="Appearance" VALUE="1">
<PARAM NAME="MousePointer" VALUE="0">
<PARAM NAME="Enabled" VALUE="1">
<PARAM NAME="OLEDragMode" VALUE="0">
<PARAM NAME="OLEDropMode" VALUE="0"></OBJECT>
<SCRIPT LANGUAGE="VBScript">
ImageList1.Enabled=True
set TreeView1.ImageList = ImageList1
TreeView1.Font.Name = "Arial"
TreeView1.Font.Size = 7
</SCRIPT>
</BODY>
</HTML>
If I comment "set TreeView1.ImageList = ImageList1" I don't have an error.
I want to bind a Treeview.ImageList and an ImageList object on client.
in VB : set Treeview1.ImageList=ImageList1 is good
but in VBScript I have a message "Invalid Object"
see my code:
<%@ LANGUAGE="VBSCRIPT" %>
<HTML>
<BODY>
<OBJECT id=ImageList1 classid=clsid:2C247F23-8591-11D1-B16A-00C0F0283628 VIEWASTEXT>
<PARAM NAME="_ExtentX" VALUE="1005">
<PARAM NAME="_ExtentY" VALUE="1005">
<PARAM NAME="BackColor" VALUE="-2147483643">
<PARAM NAME="ImageWidth" VALUE="16">
<PARAM NAME="ImageHeight" VALUE="13">
<PARAM NAME="MaskColor" VALUE="12632256">
<PARAM NAME="UseMaskColor" VALUE="-1">
<PARAM NAME="_Version" VALUE="393216"></OBJECT>
<OBJECT id=TreeView1 style="LEFT: 0px; TOP: 0px" height=400 width=300 classid="CLSID:0713E8A2-850A-101B-AFC0-4210102A8DA7" VIEWASTEXT>
<PARAM NAME="_ExtentX" VALUE="7938">
<PARAM NAME="_ExtentY" VALUE="10583">
<PARAM NAME="_Version" VALUE="327682">
<PARAM NAME="HideSelection" VALUE="1">
<PARAM NAME="Indentation" VALUE="529">
<PARAM NAME="LabelEdit" VALUE="1">
<PARAM NAME="LineStyle" VALUE="1">
<PARAM NAME="PathSeparator" VALUE="\">
<PARAM NAME="Sorted" VALUE="0">
<PARAM NAME="Style" VALUE="7">
<PARAM NAME="ImageList" VALUE="">
<PARAM NAME="BorderStyle" VALUE="0">
<PARAM NAME="Appearance" VALUE="1">
<PARAM NAME="MousePointer" VALUE="0">
<PARAM NAME="Enabled" VALUE="1">
<PARAM NAME="OLEDragMode" VALUE="0">
<PARAM NAME="OLEDropMode" VALUE="0"></OBJECT>
<SCRIPT LANGUAGE="VBScript">
ImageList1.Enabled=True
set TreeView1.ImageList = ImageList1
TreeView1.Font.Name = "Arial"
TreeView1.Font.Size = 7
</SCRIPT>
</BODY>
</HTML>
If I comment "set TreeView1.ImageList = ImageList1" I don't have an error.